Peep the Toad
Chieftain
- Joined
- Feb 6, 2019
- Messages
- 22
For part of my mod, I wanted the civ to get bonus production and gold from cliffs, but as cliffs are not a feature or terrain type, I had to define cliff HAS_CLIFF myself, with REQUIREMENT_PLOT_ADJACENT_FEATURE_TYPE_MATCHES, and defining a new modifier for each type of hill. For reasons I cannot understand, in game, the bonus is applied 5 times, as if each condition was being met, despite only being adjacent to a single hill.
Sorry in advance for the block of code, the most relevant code can be found in Corwall_Traits_Cliff.xml
Sorry in advance for the block of code, the most relevant code can be found in Corwall_Traits_Cliff.xml