Skip to content

Commit

Permalink
Merge pull request #186 from Kaiserreich/master
Browse files Browse the repository at this point in the history
Update Hoi4 CWTools config
  • Loading branch information
Pelmen323 authored Apr 23, 2024
2 parents 4ea1feb + 862b701 commit 1a06f25
Show file tree
Hide file tree
Showing 30 changed files with 484 additions and 489 deletions.
9 changes: 9 additions & 0 deletions Config/arrays.cwt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,15 @@ values = {
### Array of major powers.
majors

### Array of players.
players

### Array with country list scores
country_list_scores

### Sorted country array
sorted_country_list

# Country dynamic variables
### Array of allies (faction members).
allies
Expand Down
15 changes: 14 additions & 1 deletion Config/common/autonomous_states.cwt
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@ types = {
## replace_scope = { this = country root = country }
autonomy = {
id = localisation


### If true, the game will attempt to make the 'puppet' option in peace deals as well as the 'puppet' effect use this autonomy state among other default autonomy states. By default, set to no
## cardinality = 0..1
default = bool

### Decides whether the subject is a puppet or not, making is_puppet and is_puppet_of triggers true in that case. By default, set to no.
## cardinality = 0..1
is_puppet = bool

Expand All @@ -23,44 +25,53 @@ autonomy = {
## cardinality = 0..1
peace_conference_initial_freedom = float[0..1]

### Decides how large of a portion of the subject's manpower the overlord can use in colonial divisions.
manpower_influence = float[0..1]

### Sets the game rules for the subject to either yes or no.
rule = {
## cardinality = 0..1
desc = localisation
## cardinality = 0..20
enum[game_rules] = bool
}

### Sets the modifier for the subject. All country modifiers can apply.
modifier = {
## cardinality = ~1..inf
alias_name[modifier] = alias_match_left[modifier]
}

### Decides whether or not the AI subject focuses on gaining a higher autonomy. If set to 0, AI will never gain an autonomy level through the autonomy system.
ai_subject_wants_higher = {
factor = float
}

### Decides whether or not the AI overlord focuses on gaining a lower autonomy for the subject. If set to 0, AI will never decrease the autonomy level through the autonomy system.
ai_overlord_wants_lower = {
factor = float
}

### Decides the triggers when the AI overlord garrisons the subject's territory as if it was their own land.
## cardinality = 0..1
ai_overlord_wants_garrison = {
alias_name[trigger] = alias_match_left[trigger]
}

### The necessary triggers the subject must meet for the autonomy state to apply. The OVERLORD scope can be used to scope into the overlord.
## cardinality = 0..1
allowed = {
alias_name[trigger] = alias_match_left[trigger]
}

### Decides which autonomy levels a country with this autonomous state can change to, alongside autonomy_free. If not specified, all levels will be allowed.
## cardinality = 0..1
allowed_levels_filter = {
## cardinality = 1..inf
<autonomy>
}

### Decides the chance for a potential overlord to puppet the country in the peace deal, where ROOT is the subject and FROM is the overlord.
## replace_scope = { ROOT = country FROM = country}
## cardinality = 0..1
use_for_peace_conference_weight = {
Expand All @@ -69,11 +80,13 @@ autonomy = {
alias_name[modifier_rule] = alias_match_left[modifier_rule]
}

### Sets the necessary triggers the subject must meet to be able to gain a level through the autonomy system.
## cardinality = 0..1
can_take_level = {
alias_name[trigger] = alias_match_left[trigger]
}

### Sets the necessary triggers the subject must meet for the overlord to be able to decrease the autonomy level through the autonomy system.
## cardinality = 0..1
can_lose_level = {
alias_name[trigger] = alias_match_left[trigger]
Expand Down
4 changes: 2 additions & 2 deletions Config/common/characters.cwt
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ character = {
### Should have at least one portrait defined
portraits = {
### Portrait(s), army and/or civilian
## cardinality = ~1..2
## cardinality = ~1..3
enum[character_portrait_types] = {
### Portrait(s), large (leader) and/or small (advisor)
## cardinality = ~1..2
Expand Down Expand Up @@ -331,7 +331,7 @@ character = {
### Should have at least one portrait defined
portraits = {
### Portrait(s), army and/or civilian
## cardinality = ~1..2
## cardinality = ~1..3
enum[character_portrait_types] = {
### Portrait(s), large and/or small
## cardinality = ~1..2
Expand Down
9 changes: 9 additions & 0 deletions Config/common/equipment.cwt
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,15 @@ upgrade = {
cost_by_level_for_licensed_equipment = int
}

## cardinality = 0..1
level_requirements = {
## cardinality = ~1..inf
int = {
## cardinality = ~1..inf
alias_name[trigger] = alias_match_left[trigger]
}
}

## cardinality = 0..1
### Resource values defined here will increase the resource cost construction
resource_cost_thresholds = {
Expand Down
4 changes: 4 additions & 0 deletions Config/common/ideas.cwt
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
types = {
type[idea_categories] = {
path = "game/common/ideas"
skip_root_key = ideas
}
type[idea] = {
path = "game/common/ideas"
}
Expand Down
12 changes: 6 additions & 6 deletions Config/common/military_industrial_organizations.cwt
Original file line number Diff line number Diff line change
Expand Up @@ -239,8 +239,8 @@ military_industrial_organization = {
### Defines where the trait will be positioned in the tree grid. x=0 y=0 is the top left position.
### Do not reuse the same position twice.
position = {
x = int[-9..9]
y = int[-inf..inf]
x = float[-9..9]
y = float
}
### 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
Expand Down Expand Up @@ -388,8 +388,8 @@ military_industrial_organization = {
### Defines where the trait will be positioned in the tree grid. x=0 y=0 is the top left position.
### Do not reuse the same position twice.
position = {
x = int[-9..9]
y = int[-inf..inf]
x = float[-9..9]
y = float
}
### 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
Expand Down Expand Up @@ -504,8 +504,8 @@ military_industrial_organization = {
### Do not reuse the same position twice.
## cardinality = 0..1
position = {
x = int[-9..9]
y = int[-inf..inf]
x = float[-9..9]
y = float
}
### 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
Expand Down
18 changes: 12 additions & 6 deletions Config/common/national_focus.cwt
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,20 @@ types = {
type[focus_style] = {
path = "game/common/national_focus"
name_field = "name"
unique = yes
}

## unique = yes
## type_key_filter = focus_tree
type[focus_tree] = {
path = "game/common/national_focus"
name_field = "id"
unique = yes
}

## unique = yes
## type_key_filter = continuous_focus_palette
type[continous_focus_tree] = {
path = "game/common/continuous_focus"
name_field = "id"
unique = yes
}

## unique = yes
Expand All @@ -29,7 +26,6 @@ types = {
path = "game/common/national_focus"
skip_root_key = focus_tree
name_field = "id"
unique = yes
}

## unique = yes
Expand All @@ -38,15 +34,13 @@ types = {
path = "game/common/continuous_focus"
skip_root_key = continuous_focus_palette
name_field = "id"
unique = yes
}

## unique = yes
## type_key_filter = { joint_focus shared_focus }
type[shared_focus] = {
path = "game/common/national_focus"
name_field = "id"
unique = yes

## only_if_not = { joint_focus }
## type_key_filter = shared_focus
Expand All @@ -59,6 +53,11 @@ types = {
}

}

## type_key_filter = search_filter_prios
type[search_filter_prios] = {
path = "game/common/national_focus"
}
}

focus_tree = {
Expand Down Expand Up @@ -138,6 +137,7 @@ focus_tree = {
value = <spriteType>
}

### A cost of 1 represents a week by default. Decimals within cost are supported, and it will get rounded down to a whole day in the game.
## severity = warning
cost = float

Expand Down Expand Up @@ -339,6 +339,7 @@ shared_focus = {
## cardinality = 0..1
text_icon = <focus_style>

### A cost of 1 represents a week by default. Decimals within cost are supported, and it will get rounded down to a whole day in the game.
cost = float
x = int
y = int
Expand Down Expand Up @@ -653,4 +654,9 @@ style = {
available = <spriteType>
## cardinality = 1..1
current = <spriteType>
}

search_filter_prios = {
## cardinality = 0..inf
value[focus_filter] = int
}
Loading

0 comments on commit 1a06f25

Please sign in to comment.