Description
[3.0.2][91c1] Planets with brainslug leaders do not get instability unless pops on that planet have trait due to planet leader scope error
Game Version
3.0.2
What version do you use?
Steam
What expansions do you have installed?
Do you have mods enabled?
No
Please explain your issue is in as much detail as possible.
Cannot scope to leader from planet; must instead scope from planet to sector to leader (sector.leader). The brainslug event checks if any pops on the planet OR the planet leader have the brainslug trait to add instability modifier, but because the leader part is scoped directly from planet, that part is ignored and only the pops having the trait affect the outcome.
Steps to reproduce the issue.
Comment out any_owned_pop part of OR trigger of distar.175, then in a new game run distar.171 on a crewed science ship. Eventually when random pops are given the brainslug trait, the planet gets no instability modifier even if the planet leader has the brainslug governor trait.
Fix by replacing "leader = {" with "sector.leader = {" and modifier is added as expected. Ideally add in an exists = sector.leader check to prevent errors too.
Upload Attachment
File(s) attached
[3.0.2][91c1] Planets with brainslug leaders do not get instability unless pops on that planet have trait due to planet leader scope error
Game Version
3.0.2
What version do you use?
Steam
What expansions do you have installed?
Do you have mods enabled?
No
Please explain your issue is in as much detail as possible.
Cannot scope to leader from planet; must instead scope from planet to sector to leader (sector.leader). The brainslug event checks if any pops on the planet OR the planet leader have the brainslug trait to add instability modifier, but because the leader part is scoped directly from planet, that part is ignored and only the pops having the trait affect the outcome.
Steps to reproduce the issue.
Comment out any_owned_pop part of OR trigger of distar.175, then in a new game run distar.171 on a crewed science ship. Eventually when random pops are given the brainslug trait, the planet gets no instability modifier even if the planet leader has the brainslug governor trait.
Fix by replacing "leader = {" with "sector.leader = {" and modifier is added as expected. Ideally add in an exists = sector.leader check to prevent errors too.
Upload Attachment
File(s) attached
Attachments
Upvote
0