Skip to content

Commit

Permalink
Merge pull request #189 from Kaiserreich/master
Browse files Browse the repository at this point in the history
Update Hoi4 CWTools config - address MIO issues
  • Loading branch information
Pelmen323 authored Jun 25, 2024
2 parents ff2ad08 + 3391968 commit 6d35387
Show file tree
Hide file tree
Showing 8 changed files with 246 additions and 71 deletions.
40 changes: 20 additions & 20 deletions Config/common/military_industrial_organizations.cwt
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ military_industrial_organization = {
## cardinality = 0..1
initial_trait = {
## cardinality = 0..1
token = value_set[mio_token]
token = value_set[mio_trait_token]
## cardinality = 0..1
name = scalar
## cardinality = 0..1
Expand Down Expand Up @@ -151,7 +151,7 @@ military_industrial_organization = {

## cardinality = 0..inf
trait = {
token = value_set[mio_token]
token = value_set[mio_trait_token]
### Same naming rules as with MIO itself
## cardinality = 0..1
name = scalar
Expand All @@ -169,7 +169,7 @@ military_industrial_organization = {
parent = {
traits = {
## cardinality = 1..inf
value[mio_token]
value[mio_trait_token]
}
### The number of parents that needs to be unlocked, default 1
## cardinality = 0..1
Expand All @@ -179,21 +179,21 @@ military_industrial_organization = {
## cardinality = 0..inf
any_parent = {
## cardinality = 1..inf
value[mio_token]
value[mio_trait_token]
}
### Short hand for "parent = { traits = { parent traits } num_parents_needed = N }" where N is the number of parent traits
## cardinality = 0..inf
all_parents = {
## cardinality = 1..inf
value[mio_token]
value[mio_trait_token]
}

### The trait can be mutually exclusive with another (or more)
### Note that the other trait should also have the mutually_exclusive parameter set
## cardinality = 0..1
mutually_exclusive = {
## cardinality = 1..inf
value[mio_token]
value[mio_trait_token]
}

## cardinality = 0..1
Expand Down Expand Up @@ -245,7 +245,7 @@ military_industrial_organization = {
### By default position is the absolute coordinate in the tree grid.
### If relative_position_id is provided, it becomes a delta applied to the input trait position
## cardinality = 0..1
relative_position_id = value[mio_token]
relative_position_id = value[mio_trait_token]

### AI weight modifier for this trait.
### Warning : if the trait is part of a central tree, the trait's ai_will_do will override the central tree's!
Expand Down Expand Up @@ -300,7 +300,7 @@ military_industrial_organization = {
### Use this parameter to add traits when inheriting another MIO's tree
## cardinality = 0..inf
add_trait = {
token = value_set[mio_token]
token = value_set[mio_trait_token]
### Same naming rules as with MIO itself
## cardinality = 0..1
name = scalar
Expand All @@ -318,7 +318,7 @@ military_industrial_organization = {
parent = {
traits = {
## cardinality = 1..inf
value[mio_token]
value[mio_trait_token]
}
### The number of parents that needs to be unlocked, default 1
## cardinality = 0..1
Expand All @@ -328,21 +328,21 @@ military_industrial_organization = {
## cardinality = 0..inf
any_parent = {
## cardinality = 1..inf
value[mio_token]
value[mio_trait_token]
}
### Short hand for "parent = { traits = { parent traits } num_parents_needed = N }" where N is the number of parent traits
## cardinality = 0..inf
all_parents = {
## cardinality = 1..inf
value[mio_token]
value[mio_trait_token]
}

### The trait can be mutually exclusive with another (or more)
### Note that the other trait should also have the mutually_exclusive parameter set
## cardinality = 0..1
mutually_exclusive = {
## cardinality = 1..inf
value[mio_token]
value[mio_trait_token]
}

## cardinality = 0..1
Expand Down Expand Up @@ -394,7 +394,7 @@ military_industrial_organization = {
### By default position is the absolute coordinate in the tree grid.
### If relative_position_id is provided, it becomes a delta applied to the input trait position
## cardinality = 0..1
relative_position_id = value[mio_token]
relative_position_id = value[mio_trait_token]

### AI weight modifier for this trait.
### Warning : if the trait is part of a central tree, the trait's ai_will_do will override the central tree's!
Expand All @@ -410,12 +410,12 @@ military_industrial_organization = {
## cardinality = 0..inf
remove_trait = {
## cardinality = ~1..inf
value[mio_token]
value[mio_trait_token]
}
### Override specific trait when inheriting another MIO's tree
## cardinality = 0..inf
override_trait = {
token = value[mio_token]
token = value[mio_trait_token]
### Same naming rules as with MIO itself
## cardinality = 0..1
name = scalar
Expand All @@ -433,7 +433,7 @@ military_industrial_organization = {
parent = {
traits = {
## cardinality = 1..inf
value[mio_token]
value[mio_trait_token]
}
### The number of parents that needs to be unlocked, default 1
## cardinality = 0..1
Expand All @@ -443,21 +443,21 @@ military_industrial_organization = {
## cardinality = 0..inf
any_parent = {
## cardinality = 1..inf
value[mio_token]
value[mio_trait_token]
}
### Short hand for "parent = { traits = { parent traits } num_parents_needed = N }" where N is the number of parent traits
## cardinality = 0..inf
all_parents = {
## cardinality = 1..inf
value[mio_token]
value[mio_trait_token]
}

### The trait can be mutually exclusive with another (or more)
### Note that the other trait should also have the mutually_exclusive parameter set
## cardinality = 0..1
mutually_exclusive = {
## cardinality = 1..inf
value[mio_token]
value[mio_trait_token]
}

## cardinality = 0..1
Expand Down Expand Up @@ -510,7 +510,7 @@ military_industrial_organization = {
### By default position is the absolute coordinate in the tree grid.
### If relative_position_id is provided, it becomes a delta applied to the input trait position
## cardinality = 0..1
relative_position_id = value[mio_token]
relative_position_id = value[mio_trait_token]

### AI weight modifier for this trait.
### Warning : if the trait is part of a central tree, the trait's ai_will_do will override the central tree's!
Expand Down
32 changes: 32 additions & 0 deletions Config/effects.cwt
Original file line number Diff line number Diff line change
Expand Up @@ -2770,19 +2770,51 @@ alias[effect:clamp_temp_variable] = {
### Start a border war between two states.
## scope = { state country }
alias[effect:start_border_war] = {
### Overrides the transfer of state at the end of war
change_state_after_war = bool
### Combat width for border war
## cardinality = 0..1
combat_width = int
### Minimum duration for combat
## cardinality = 0..1
minimum_duration_in_days = int
attacker = {
### State to start border war
state = scope[state]
state = <state>
### Number of provinces we want border war to be
num_provinces = int[1..100]
on_win = <event>
on_lose = <event>
## cardinality = ~0..1
on_cancel = <event>
### Score for selecting a leader
## cardinality = 0..1
leader_score = {
## cardinality = 0..1
base = variable_field
## cardinality = 0..inf
enum[add_factor] = float
## cardinality = 0..inf
modifier = {
## cardinality = ~1..inf
alias_name[trigger] = alias_match_left[trigger]
## cardinality = ~1..1
enum[add_factor] = float
}
}
### Dig in modifier factor (default value: 1.0)
## cardinality = 0..1
dig_in_factor = float
### Terrain modifier factor (default value: 1.0)
## cardinality = 0..1
terrain_factor = float
}
defender = {
### State to start border war
state = scope[state]
state = <state>
### Number of provinces we want border war to be
num_provinces = int[1..100]
on_win = <event>
on_lose = <event>
Expand Down
Loading

0 comments on commit 6d35387

Please sign in to comment.