What's wrong with my code? Trait modifier not working...

pokiehl

Moderator
Moderator
Joined
Mar 5, 2017
Messages
4,115
EDIT: Nevermind...Every single time I post a problem I solve it in the next two minutes. Sorry! FYI here was my issue:

I was trying to change the yield of certain tiles with a Leader ability (say, add gold to jungle tiles or culture to water). I was using the wrong modifier type: It has to be "MODIFIER_PLAYER_ADJUST_PLOT_YIELD' not 'MODIFIER_CITY_PLOT_YIELDS_ADJUST_PLOT_YIELD' . I used the latter because it works on buildings and whatnot, but I guess when it's a Leader/Civ ability it needs to be the PLAYER one.
 
Last edited:
Back
Top Bottom