Miasma Yields

Starrynite120

Prince
Joined
Jul 15, 2015
Messages
472
I've just tried changing the yields of tiles with miasma on it, but miasma seems resistant to any attempts to change its yields. Any time I update a table to change its yields it doesn't work. Anyone know why or how to get around this?
 
Miasma is not handled as a proper Feature by the game (probably because it can coexist with other features), so all functions that add yields to features don't work with miasma.
 
Depending on what you want to make the Miasma yield, it might be possible to cheat it in some ways - you an use the LUA to cycle through all applicable cities (based on which ones can get yield from Miasma), then for each city, cycle through all tiles it owns to keep a running count of the number with FEATURE_MIASMA on it. At the end, Grant yield appropriate to the number of Miasma tiles. It won't show up on any of the tooltips, sadly, and unless it's food it will be granted to the player total instead of stopping at the city first (so no multipliers, no using for culture expand), but still potentially useful.
 
Top Bottom