Skip to content

Commit

Permalink
Fixed two unexpected tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
AngriestBird committed Sep 30, 2024
1 parent 9db52fc commit dc5b827
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
4 changes: 4 additions & 0 deletions Config/common/scripted_guis.cwt
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ scripted_gui = {
## cardinality = 0..1
parent_window_token = enum[parent_window_token]

## cardinality = 0..1
### Define any scripted gui as the parent gui. This is more performant than using something like parent_window_token/parent_window_name for nested GUIs.
parent_scripted_gui = <scripted_gui>

## cardinality = 0..1
### Any GUI container name. Use only if parent_window_token doesn't have a corresponding token.
parent_window_name = <containerWindowType>
Expand Down
12 changes: 8 additions & 4 deletions Config/effects.cwt
Original file line number Diff line number Diff line change
Expand Up @@ -399,15 +399,19 @@ alias[effect:set_variable] = {
tooltip = localisation
}

### A random effect.
### A possible random effect that can occur.
## scope = any
alias[effect:random] = {
## cardinality = 1..2
chance = variable_field
## cardinality = 1..2
chance = int

alias_name[modifier_rule] = alias_match_left[modifier_rule]
alias_name[effect] = alias_match_left[effect]
}

### A random effect.
### A list of possible random effects to trigger in this effect.
## scope = any
alias[effect:random_list] = {
## cardinality = 0..1
Expand Down Expand Up @@ -754,7 +758,7 @@ alias[effect:remove_ideas] = {
enum[idea_name]
## cardinality = 0..inf
value[advisor_token]
## cardinality = 0..inf
## cardinality = 0..inf
value[variable]
}

Expand Down Expand Up @@ -2319,7 +2323,7 @@ alias[effect:set_war_support] = variable_field[0..1]

### Executes children effects on random unit leader that fulfills the "limit" trigger.
## scope = country
## push_scope = unit_leader
## push_scope = unit_leader
alias[effect:random_unit_leader] = {
## cardinality = 0..1
limit = {
Expand Down

0 comments on commit dc5b827

Please sign in to comment.