Skip to content

Commit 63ed915

Browse files
authored
USU - Logistics balance (#92)
1 parent 13503ba commit 63ed915

File tree

15 files changed

+957
-204
lines changed

15 files changed

+957
-204
lines changed

USU GGGG/.metadata/metadata.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"name" : "USU + GGGG Compatch",
3+
"id" : "",
4+
"version" : "",
5+
"supported_game_version" : "",
6+
"short_description" : "",
7+
"tags" : [
8+
"Balance",
9+
"Economy And Buildings",
10+
"Gameplay",
11+
"1.10"
12+
],
13+
"relationships" : [],
14+
"game_custom_data" : {
15+
"multiplayer_synchronized" : true
16+
}
17+
}
Lines changed: 199 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,199 @@
1+
# Overrides vanilla definitions
2+
3+
mobilization_option_basic_supplies = {
4+
texture = "gfx/interface/icons/mobilization_options/basic_supplies.dds"
5+
can_be_turned_off = {
6+
custom_tooltip = {
7+
text = mobilization_option_basic_supplies_can_be_turned_off_tt
8+
always = no
9+
}
10+
}
11+
upkeep_modifier = {
12+
# goods_input_grain_add = 0.5 # GGGG
13+
}
14+
upkeep_modifier_unscaled = {
15+
# GGGG
16+
goods_input_grain_mult = 0.25
17+
goods_input_meat_mult = 0.25
18+
goods_input_groceries_mult = 0.25
19+
goods_input_fruit_mult = 0.25
20+
21+
goods_input_small_arms_mult = 0.25
22+
goods_input_artillery_mult = 0.25
23+
goods_input_ammunition_mult = 0.25
24+
goods_input_oil_mult = 0.25
25+
goods_input_radios_mult = 0.25
26+
goods_input_tanks_mult = 0.25
27+
28+
goods_input_usu_logistics_mult = 0.5
29+
}
30+
31+
unit_modifier = {
32+
# empty on purpose - this is the minimum mobilization cost
33+
}
34+
ai_weight = {
35+
value = 1
36+
}
37+
38+
group = supplies
39+
}
40+
41+
mobilization_option_extra_supplies = {
42+
texture = "gfx/interface/icons/mobilization_options/extra_supplies.dds"
43+
44+
possible = {
45+
# market ?= {
46+
# mg:groceries ?= {
47+
# market_goods_sell_orders > 0
48+
# }
49+
# }
50+
}
51+
52+
unlocking_technologies = {
53+
army_reserves
54+
}
55+
56+
on_deactivate_while_mobilized = {
57+
custom_tooltip = {
58+
text = mobilization_option_it_hurts_morale_when_you_remove_supplies_while_in_combat_tt
59+
every_combat_unit = {
60+
add_morale = {
61+
value = morale
62+
multiply = -0.5
63+
}
64+
}
65+
}
66+
}
67+
68+
upkeep_modifier = {
69+
# goods_input_groceries_add = 1 # GGGG
70+
}
71+
upkeep_modifier_unscaled = {
72+
# GGGG
73+
goods_input_grain_mult = 0.25
74+
goods_input_meat_mult = 0.25
75+
goods_input_groceries_mult = 0.25
76+
goods_input_fruit_mult = 0.25
77+
78+
goods_input_small_arms_mult = 0.25
79+
goods_input_artillery_mult = 0.25
80+
goods_input_ammunition_mult = 0.25
81+
goods_input_oil_mult = 0.25
82+
goods_input_radios_mult = 0.25
83+
goods_input_tanks_mult = 0.25
84+
85+
goods_input_usu_logistics_mult = 0.25
86+
}
87+
88+
unit_modifier = {
89+
unit_morale_loss_mult = -0.05
90+
unit_offense_mult = 0.1
91+
unit_defense_mult = 0.1
92+
}
93+
ai_weight = {
94+
value = 1
95+
}
96+
97+
group = supplies
98+
}
99+
100+
mobilization_option_luxurious_supplies = {
101+
texture = "gfx/interface/icons/mobilization_options/luxurious_supplies.dds"
102+
103+
possible = {
104+
scope:military_formation = { has_mobilization_option = mobilization_option:mobilization_option_extra_supplies }
105+
}
106+
107+
unlocking_technologies = {
108+
military_statistics
109+
}
110+
111+
on_deactivate_while_mobilized = {
112+
custom_tooltip = {
113+
text = mobilization_option_it_hurts_morale_when_you_remove_supplies_while_in_combat_tt
114+
every_combat_unit = {
115+
add_morale = {
116+
value = morale
117+
multiply = -0.5
118+
}
119+
}
120+
}
121+
}
122+
123+
upkeep_modifier = {
124+
# goods_input_meat_add = 1 # GGGG
125+
# goods_input_wine_add = 1 # GGGG (Moved to supplements)
126+
}
127+
upkeep_modifier_unscaled = {
128+
# GGGG
129+
goods_input_grain_mult = 0.25
130+
goods_input_meat_mult = 0.25
131+
goods_input_groceries_mult = 0.25
132+
goods_input_fruit_mult = 0.25
133+
134+
goods_input_small_arms_mult = 0.25
135+
goods_input_artillery_mult = 0.25
136+
goods_input_ammunition_mult = 0.25
137+
goods_input_oil_mult = 0.25
138+
goods_input_radios_mult = 0.25
139+
goods_input_tanks_mult = 0.25
140+
141+
goods_input_usu_logistics_mult = 0.25
142+
}
143+
144+
unit_modifier = {
145+
unit_morale_loss_mult = -0.05
146+
unit_offense_mult = 0.1
147+
unit_defense_mult = 0.1
148+
}
149+
ai_weight = {
150+
value = 1
151+
}
152+
153+
group = supplies
154+
}
155+
156+
GGGG_mo_foraged_rations = {
157+
texture = "gfx/interface/icons/production_method_icons/GGGG_foraging.dds"
158+
group = GGGG_mog_rations
159+
160+
possible = {
161+
# AI keeps using this when they really shouldn't, and I can't seem to get anything working with the ai_weight
162+
is_ai = no
163+
}
164+
165+
upkeep_modifier = {
166+
goods_input_grain_add = -0.6
167+
goods_input_meat_add = -0.4
168+
}
169+
170+
upkeep_modifier_unscaled = {
171+
goods_input_usu_logistics_mult = -0.20
172+
}
173+
174+
unit_modifier = {
175+
unit_devastation_mult = 0.10
176+
unit_morale_loss_mult = 0.25
177+
unit_recovery_rate_add = -0.25
178+
unit_morale_recovery_mult = -0.25
179+
unit_occupation_mult = -0.50
180+
unit_convoy_requirements_mult = -0.20
181+
}
182+
183+
ai_weight = {
184+
value = 0
185+
# if = {
186+
# limit = {
187+
# market ?= {
188+
# mg:grain ?= {
189+
# market_goods_has_goods_shortage = yes
190+
# }
191+
# mg:meat ?= {
192+
# market_goods_has_goods_shortage = yes
193+
# }
194+
# }
195+
# }
196+
# add = 10
197+
# }
198+
}
199+
}

Urban Synergy Unleashed/common/goods/yMoG_USU_goods.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,6 @@ usu_logistics = {
7474

7575
prestige_factor = 1
7676

77-
traded_quantity = 30
77+
traded_quantity = 20 # 200 - Matches merchant marine trade value
7878
convoy_cost_multiplier = 3 # 0 # Discourage trading via sea.
79-
}
79+
}

Urban Synergy Unleashed/common/history/buildings/zMoG_trade_center_setup.txt

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@
88
}
99

1010
every_scope_state = {
11-
# limit = {
12-
# world_market_access > 0 # Currently bugged, should be fixed in upcoming patch
13-
# }
11+
limit = {
12+
#world_market_access > 0 # Always returns `yes` before the game's first weekly tick
13+
has_world_market_access_history = yes
14+
}
1415

1516
create_building = {
1617
building = "building_trade_center"
@@ -46,5 +47,9 @@
4647
}
4748
}
4849
}
50+
51+
every_state = {
52+
usu_manage_trade_centre_type_history = yes
53+
}
4954
}
5055
}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Annoyingly, existing treaties can't be forcibly ammended, removed, or replaced.
2+
# this just creates additional treaties with the same name
3+
4+
TREATIES = {
5+
# US Military Assistance to Texas (unofficial, but substantial)
6+
create_treaty = {
7+
name = treaty_name_us_military_mission_to_texas
8+
first_country = c:USA
9+
second_country = c:TEX
10+
11+
is_draft = no
12+
entered_into_force_on = 1835.10.2 # Start of Texas Revolt
13+
binding_period = { years = 5 } # about 5 years
14+
15+
articles_to_create = {
16+
{
17+
article = goods_transfer
18+
source_country = c:USA
19+
target_country = c:TEX
20+
inputs = {
21+
{ goods = g:usu_logistics }
22+
{ quantity = 5 }
23+
}
24+
}
25+
}
26+
}
27+
}

0 commit comments

Comments
 (0)