Skip to content

Commit

Permalink
Merge pull request #207 from Kaiserreich/master
Browse files Browse the repository at this point in the history
Update Hoi4 CWTools config (DLC_043) - more fixes
  • Loading branch information
Pelmen323 authored Nov 15, 2024
2 parents 772035c + 9640283 commit 844bd7d
Show file tree
Hide file tree
Showing 9 changed files with 90 additions and 5 deletions.
4 changes: 4 additions & 0 deletions Config/common/ai_strategy.cwt
Original file line number Diff line number Diff line change
Expand Up @@ -386,8 +386,10 @@ alias[ai_strategy_rule:ai_strategy] = {
## cardinality = 0..inf
strategic_region = <strategic_region>
### Target a specific ai area. Can specify multiple.
## cardinality = 0..inf
area = <ai_area>
### Trigger to check against a specific country. Scope is enemy country, FROM scope is our country.
## cardinality = 0..1
## replace_scope = { this = country root = country from = country }
country_trigger = {
## cardinality = ~1..inf
Expand Down Expand Up @@ -418,8 +420,10 @@ alias[ai_strategy_rule:ai_strategy] = {
## cardinality = 0..inf
strategic_region = <strategic_region>
### Target a specific ai area. Can specify multiple.
## cardinality = 0..inf
area = <ai_area>
### Trigger to check against a specific country. Scope is enemy country, FROM scope is our country.
## cardinality = 0..1
## replace_scope = { this = country root = country from = country }
country_trigger = {
## cardinality = ~1..inf
Expand Down
6 changes: 6 additions & 0 deletions Config/common/buildings.cwt
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ types = {
province_max = scalar
}
}
subtype[landmark] = {
spawn_point = landmark_spawn
}
subtype[canal] = {
spawn_point = locks_spawn
}
subtype[state] = {
}
}
Expand Down
11 changes: 11 additions & 0 deletions Config/common/national_focus.cwt
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,17 @@ focus_tree = {
y = int
}

## cardinality = 0..inf
shortcut = {
name = localisation
target = <focus>
scroll_wheel_factor = float
## cardinality = 0..1
trigger = {
alias_name[trigger] = alias_match_left[trigger]
}
}

## cardinality = 0..1
initial_show_position = {
## cardinality = 0..1
Expand Down
8 changes: 7 additions & 1 deletion Config/common/raids.cwt
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ raid_category = {
alias_name[trigger] = alias_match_left[trigger]
}
## cardinality = 1..1
intel_source = enum[intel_types]
intel_source = enum[intel_types_raid]
# default is no
## cardinality = 0..1
free_targeting = bool
Expand Down Expand Up @@ -383,6 +383,12 @@ single_alias[raid_factors] = {
}

enums = {
enum[intel_types_raid] = {
air
naval
army
civilian
}
enum[raid_unit_model] = {
equipment
transport
Expand Down
11 changes: 10 additions & 1 deletion Config/common/special_projects.cwt
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,13 @@ special_project = {
## cardinality = 0..inf
has_dlc = enum[dlc]
}
### KR DLC triggers
## cardinality = 0..inf
has_dlc_got = yes
## cardinality = 0..inf
has_dlc_mtg = yes
## cardinality = 0..inf
has_dlc_nsb = yes
}

# Optional
Expand Down Expand Up @@ -329,8 +336,10 @@ single_alias[sp_proto_reward] = { # Dynamic token for the reward (i.e. identifie
## cardinality = 0..1
## replace_scope = { root = project this = project from = country }
weight = {
## cardinality = ~1..1
## cardinality = 0..1
base = float
## cardinality = 0..1
factor = float
## cardinality = 0..inf
modifier = {
## cardinality = 0..1
Expand Down
2 changes: 1 addition & 1 deletion Config/effects.cwt
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ alias[effect:custom_effect_tooltip] = single_alias_right[bindable_loc]
alias[effect:custom_effect_tooltip] = character_name|<character>
### Shows just a custom tooltip.
## scope = any
alias[effect:custom_effect_tooltip] = tech_effect|<technology
alias[effect:custom_effect_tooltip] = tech_effect|<technology>

### Shows event option tooltip
## scope = any
Expand Down
3 changes: 1 addition & 2 deletions Config/effects_gtd.cwt
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
alias[effect:add_breakthrough_points] = {
specialization = <specialization>
specialization = all
value = int

value = float
}

### Requires raid as ROOT scope. Reduce progress to the special project in state. Root scope is raid instance scope. The input value is a ratio of the total needed progress to complete the special project, i.e. a decimal number between 0 and 1.
Expand Down
16 changes: 16 additions & 0 deletions Config/history/states.cwt
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,22 @@ state = {
enum[provinces] = {
## cardinality = 0..inf
<building> = int[0..20]
## cardinality = 0..1
<building.landmark> = {
## cardinality = 0..1
allowed = {
alias_name[trigger] = alias_match_left[trigger]
}
level = int
}
## cardinality = 0..1
<building.canal> = {
## cardinality = 0..1
allowed = {
alias_name[trigger] = alias_match_left[trigger]
}
level = int
}
}
}
alias_name[effect] = alias_match_left[effect]
Expand Down
34 changes: 34 additions & 0 deletions Config/sound.cwt
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
types = {
## type_key_filter = category
type[soundcategory] = {
path = "sound"
name_field = "name"
path_extension = .asset
}
## type_key_filter = soundeffect
type[soundeffect] = {
path = "sound"
Expand Down Expand Up @@ -26,6 +32,7 @@ soundeffect = {
name = scalar
## cardinality = 0..1
falloff = scalar #falloff type
## cardinality = 0..inf
sounds = {
## cardinality = 0..inf
sound = scalar #<sound> does not properly check for voices and other misc sounds and soundefects in mods since those are dlc files
Expand Down Expand Up @@ -76,4 +83,31 @@ soundeffect = {
}
## cardinality = 0..1
prevent_random_repetition = bool
}

soundcategory = {
name = scalar
soundeffects = {
## cardinality = ~1..inf
scalar
}
## cardinality = 0..1
compressor = {
## cardinality = 0..1
enabled = bool
## cardinality = 0..1
pregain = float
## cardinality = 0..1
postgain = float
## cardinality = 0..1
ratio = float
## cardinality = 0..1
threshold = float
## cardinality = 0..1
attacktime = float
## cardinality = 0..1
releasetime = float
}
## cardinality = 0..1
compressor = scalar
}

0 comments on commit 844bd7d

Please sign in to comment.