-
Notifications
You must be signed in to change notification settings - Fork 5
/
chance_weight.cwt
49 lines (38 loc) · 1.37 KB
/
chance_weight.cwt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
enums = {
enum[weight_chance_modifier_operators] = {
add
factor
}
}
# TODO: Figure out if the chance-weight difference is really needed
single_alias[chance_block] = {
# TODO: Requires further testing, might necessiate splitting into chance_block and chance_block_with_base or something
## cardinality = 0..1
base = float
## cardinality = 0..inf
### Appears in the tooltip only if the conditions are fulfilled.
modifier = single_alias_right[weight_chance_modifier]
## cardinality = 0..inf
### Always appears in the tooltip, if any.
always_modifier = single_alias_right[weight_chance_modifier]
## cardinality = 0..inf
<scripted_modifier> = yes
}
single_alias[weight_block] = {
## cardinality = 0..1
base = float
## cardinality = 0..inf
### Appears in the tooltip only if the conditions are fulfilled.
modifier = single_alias_right[weight_chance_modifier]
## cardinality = 0..inf
### Always appears in the tooltip, if any.
always_modifier = single_alias_right[weight_chance_modifier]
## cardinality = 0..inf
<scripted_modifier> = yes
}
single_alias[weight_chance_modifier] = {
## cardinality = 0..inf
enum[weight_chance_modifier_operators] = value_field
## cardinality = 0..inf
alias_name[trigger] = alias_match_left[trigger]
}