Hi,
I'm trying to figure out how to code a civ ability that would grant +1 hammer on all strategic resources once Industrialization is unlocked.
I'm terribly lost.
I have no idea what to hook into, since I need to both check whether the tech has been researched and also edit the plot's yields.
How do?
Update: I figured out how to check for the correct trait, tech, and resource on the tile, however I still have no idea what GameEvent I should hook into and how to edit the actual yields on the tile. The Plot object doesn't seem to have a SetYield() or any similar method.
I'm trying to figure out how to code a civ ability that would grant +1 hammer on all strategic resources once Industrialization is unlocked.
I'm terribly lost.
I have no idea what to hook into, since I need to both check whether the tech has been researched and also edit the plot's yields.
How do?
Update: I figured out how to check for the correct trait, tech, and resource on the tile, however I still have no idea what GameEvent I should hook into and how to edit the actual yields on the tile. The Plot object doesn't seem to have a SetYield() or any similar method.
Last edited: