I've always been confused as to why this focus is so useless, as the in-game tooltip only shows that it causes some news events to fire and some opinion modifiers to change. I decided to improve it's effects in my mod, but when i dug into the code I found this part of the focus (which has never shown up in tooltips)
The problem is that this is coded so that these effects will fire if ENG controls them (as it is an ENG focus, so ENG is the ROOT). However, they start in control of either RAJ or China or Yunan. They will never reasonably be controlled by ENG.
Here's how I fixed it:
Code:
completion_reward = {
640 = {
if = {
limit = { is_controlled_by = ROOT }
add_building_construction = {
type = infrastructure
level = 2
instant_build = yes
}
add_building_construction = {
type = air_base
level = 2
instant_build = yes
}
}
}
325 = {
if = {
limit = { is_controlled_by = ROOT }
add_building_construction = {
type = infrastructure
level = 2
instant_build = yes
}
add_building_construction = {
type = air_base
level = 2
instant_build = yes
}
}
}
601 = {
if = {
limit = { is_controlled_by = ROOT }
add_building_construction = {
type = infrastructure
level = 2
instant_build = yes
}
add_building_construction = {
type = air_base
level = 1
instant_build = yes
}
add_extra_state_shared_building_slots = 1
add_building_construction = {
type = arms_factory
level = 1
instant_build = yes
}
}
}
The problem is that this is coded so that these effects will fire if ENG controls them (as it is an ENG focus, so ENG is the ROOT). However, they start in control of either RAJ or China or Yunan. They will never reasonably be controlled by ENG.
Here's how I fixed it:
Code:
completion_reward = {
640 = {
if = {
limit = {
OR = {
ENG = { controls_state = 640 }
any_other_country = {
is_in_faction_with = ENG
controls_state = 640
}
}
}
add_building_construction = {
type = infrastructure
level = 2
instant_build = yes
}
add_building_construction = {
type = air_base
level = 2
instant_build = yes
}
}
}
325 = {
if = {
limit = {
OR = {
CHI = { controls_state = 325 }
any_other_country = {
is_in_faction_with = CHI
controls_state = 325
}
}
}
add_building_construction = {
type = infrastructure
level = 2
instant_build = yes
}
add_building_construction = {
type = air_base
level = 2
instant_build = yes
}
}
}
601 = {
if = {
limit = {
OR = {
CHI = { controls_state = 601 }
any_other_country = {
is_in_faction_with = CHI
controls_state = 601
}
}
}
add_building_construction = {
type = infrastructure
level = 2
instant_build = yes
}
add_building_construction = {
type = air_base
level = 1
instant_build = yes
}
add_extra_state_shared_building_slots = 1
add_building_construction = {
type = arms_factory
level = 1
instant_build = yes
}
}
}
- 3
Upvote
0