Help! Attaching modifier to cities w/ Requirement makes it apply to ALL my cities.

pokiehl

Moderator
Moderator
Joined
Mar 5, 2017
Messages
4,115
I have code to add gold to oasis, floodplains, and marshes for cities that have watermills. First I added the requirement. Then I added a modifier to the trait to PLAYER_CITIES_ATTACH_MODIFIER. Then I added the actual modifier.

So what happens is once I build a watermill in ANY city, all of my cities get gold from those tiles even if they don't have a watermill. What gives?

EDIT: Solved. The issue was the actual modifier had the wrong modifiertype - MODIFIER_PLAYER_ADJUST_PLOT_YIELD is wrong, should only apply to city plots.
 
Last edited:
Back
Top Bottom