Skip to content

Commit f03ae0e

Browse files
committed
error cleanup
1 parent 519391f commit f03ae0e

3 files changed

Lines changed: 48 additions & 32 deletions

File tree

common/journal_entries/cwp_interstate_highway_system.txt

Lines changed: 37 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -10,22 +10,27 @@ je_interstate_highway_system = {
1010

1111
possible = {
1212
has_technology_researched = automotive_cities
13-
any_scope_state = {
14-
filter = {
15-
is_incorporated = yes
16-
}
17-
percent >= 0.5
18-
any_scope_building = {
19-
is_building_type = building_urban_center
20-
level >= 5
21-
}
22-
}
23-
any_scope_state = {
24-
is_incorporated = yes
25-
state_population >= 1000000
26-
any_scope_building = {
27-
is_building_type = building_urban_center
28-
level >= 10
13+
custom_tooltip = {
14+
text = cwp_interstate_highway_eligibility_tt
15+
hidden_trigger = {
16+
any_scope_state = {
17+
filter = {
18+
is_incorporated = yes
19+
}
20+
percent >= 0.5
21+
any_scope_building = {
22+
is_building_type = building_urban_center
23+
level >= 5
24+
}
25+
}
26+
any_scope_state = {
27+
is_incorporated = yes
28+
state_population >= 1000000
29+
any_scope_building = {
30+
is_building_type = building_urban_center
31+
level >= 10
32+
}
33+
}
2934
}
3035
}
3136
}
@@ -35,18 +40,23 @@ je_interstate_highway_system = {
3540
}
3641

3742
complete = {
38-
any_scope_state = {
39-
filter = {
40-
is_incorporated = yes
41-
state_population >= 1000000
43+
custom_tooltip = {
44+
text = cwp_interstate_highway_completion_tt
45+
hidden_trigger = {
46+
any_scope_state = {
47+
filter = {
48+
is_incorporated = yes
49+
state_population >= 1000000
50+
}
51+
percent >= 0.5
52+
has_building = building_interstate_highway_system
53+
}
54+
any_scope_state = {
55+
is_incorporated = yes
56+
state_population >= 1000000
57+
has_building = building_interstate_highway_system
58+
}
4259
}
43-
percent >= 0.5
44-
has_building = building_interstate_highway_system
45-
}
46-
any_scope_state = {
47-
is_incorporated = yes
48-
state_population >= 1000000
49-
has_building = building_interstate_highway_system
5060
}
5161
}
5262

events/cwp_interstate_highway_events.txt

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,14 @@ cwp_interstate_highway_events.1 = {
4949
option = {
5050
name = cwp_interstate_highway_events.1.c
5151

52-
every_scope_state = {
53-
limit = { is_incorporated = yes }
54-
add_modifier = {
55-
name = cwp_interstate_highway_suburban_corridors
56-
months = 120
52+
custom_tooltip = cwp_interstate_highway_suburban_corridors_tt
53+
hidden_effect = {
54+
every_scope_state = {
55+
limit = { is_incorporated = yes }
56+
add_modifier = {
57+
name = cwp_interstate_highway_suburban_corridors
58+
months = 120
59+
}
5760
}
5861
}
5962

localization/english/CWP/CWP_generic_je_l_english.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,8 @@
214214
je_interstate_highway_system: "A National Highway System"
215215
je_interstate_highway_system_reason: "Controlled-access highways can bind distant cities into a single economic system. With the technology and urban base now in place, the country can authorize a national highway program and prove its value by building it through the major population centers."
216216
je_interstate_highway_system_desc: "Build the $building_interstate_highway_system$ in at least half of incorporated states with at least one million people."
217+
cwp_interstate_highway_eligibility_tt: "Has an advanced urban core suitable for a national highway program."
218+
cwp_interstate_highway_completion_tt: "The $building_interstate_highway_system$ is built in at least half of incorporated states with at least one million people."
217219

218220
je_empty_tt: " "
219221

@@ -288,5 +290,6 @@
288290
cwp_interstate_highway_events.1.a: "Leverage this expertise into additional building."
289291
cwp_interstate_highway_events.1.b: "Prioritize military mobility."
290292
cwp_interstate_highway_events.1.c: "Follow the suburbs outward."
293+
cwp_interstate_highway_suburban_corridors_tt: "Every incorporated state receives [GetStaticModifier('cwp_interstate_highway_suburban_corridors').GetName|v]\n[GetStaticModifier('cwp_interstate_highway_suburban_corridors').GetDesc] for 10 years."
291294

292295
nuclear_research_facility_tt: "We have established the Nuclear Research Facility"

0 commit comments

Comments
 (0)