Confirmed Stellaris - [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

  • We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

IonMyst2

Recruit
31 Badges
May 18, 2016
3
0
  • Cities: Skylines Deluxe Edition
  • Stellaris
  • Stellaris: Synthetic Dawn
  • Stellaris: Necroids
  • Cities: Skylines
  • Stellaris: Federations
  • Stellaris: Lithoids
  • Cities: Skylines - Campus
  • Surviving Mars: First Colony Edition
  • Prison Architect
  • Stellaris: Megacorp
  • Cities: Skylines Industries
  • Surviving Mars: First Colony Edition
  • Stellaris: Distant Stars
  • Cities: Skylines - Parklife
  • Surviving Mars: Digital Deluxe Edition
  • Stellaris: Apocalypse
  • Stellaris: Humanoids Species Pack
  • Cities: Skylines - Green Cities
  • Surviving Mars
  • Cities: Skylines - Mass Transit
  • Stellaris - Path to Destruction bundle
  • Cities: Skylines - Natural Disasters
  • Stellaris: Leviathans Story Pack
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Cities: Skylines - Snowfall
  • Cities: Skylines - After Dark
  • Stellaris: Distant Stars Pre-Order
  • Stellaris: Ancient Relics
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
 

Attachments

  • dist_star_event_error.PNG
    dist_star_event_error.PNG
    20,7 KB · Views: 0
  • 2021_04_23_1.png
    2021_04_23_1.png
    2 MB · Views: 0
Upvote 0