Rule debugging (city walls trade penalty)
Posted: Tue Jun 28, 2016 11:22 am
I wanted to reduce trade by 1 in each non-adjacent tile, if you have city walls*
So I put this effect in the effects ruleset.
It appeared to have no effect - a paper resource 2 squares away from my test cities continued to yield 2 trade (or 3 with a river) after building city walls.
Any ideas why this doesn't work? Did I do it wrong, or does Output_Penalty_Tile not use the CityTile requirement? Or does it test the city center and find that it is adjacent to the city center and say 'nope' each time it considers what to do?
*(I have changed the effect of Great Wall not to replace city walls)
So I put this effect in the effects ruleset.
Code: Select all
[effect_city_walls_bad_traffic]
type = "Output_Penalty_Tile"
value = 1
reqs = { "type", "name", "range"
"Building", "City Walls", "City"
"OutputType", "Trade", "Local"
}
nreqs = {"type", "name", "range"
"CityTile", "Center", "Adjacent"
}
Any ideas why this doesn't work? Did I do it wrong, or does Output_Penalty_Tile not use the CityTile requirement? Or does it test the city center and find that it is adjacent to the city center and say 'nope' each time it considers what to do?
*(I have changed the effect of Great Wall not to replace city walls)