[SOLVED] Issues with suzerain bonus not applying

Zobtzler

Chieftain
Joined
Oct 21, 2017
Messages
95
Location
Sweden
I'm trying to give a city-state I've made a suzerain bonus of +1 Production and +1 Food from fishing boats, and an additional +1 Food if adjacent to ocean to those same fishing boats, however something doesn't seem to work, and having worked on this thing for hours my brain just can't take it anymore :p

The city-state is Tórshavn, and it's suzerain description is not up to date. Relevant code can be found in Zob_Sweden_CS_Defines.sql of the linked mod

EDIT: Looks like the file didn't upload, will link from google drive
EDIT2: Here's the download
EDIT3: Seems that in the Requirements table, "adjacent to ocean" was accidentally set to "tile is ocean", should be
Code:
('REQUIRES_ADJACENT_PLOT_HAS_ZOB_OCEAN',    'REQUIREMENT_PLOT_ADJACENT_TERRAIN_TYPE_MATCHES')
However this change didn't have an effect on the bonus so this isn't the only fix needed, but I can't seem to find it
EDIT4: Oh boy, turns out all I needed was a good night's sleep. I had accidentally written "YieltType" instead of "YieldType"... no wonder it didn't work (works now) :D
 
Last edited:
Top Bottom