Harmony-postfix for "after harvest" ?

Started by theWul, April 13, 2018, 06:33:30 AM

Previous topic - Next topic

theWul

I would like to add own code after whatever grew on a tile has been harvested.
Having used harmony patching before I'm pretty sure thats the way to go but I don't have the slightest idea what to patch in particular...

Anybody any advice please?

jamaicancastle

If you're only interested in plants harvested by colonists, you're probably best off patching
JobDriver_PlantWork.MakeNewToils()
or
JobDriver_PlantHarvest.PlantWorkDoneToil()

PlantWork will affect both "cut"- and "harvest"-type work; PlantHarvest will only affect the latter. (There's also an analogous JobDriver_PlantCut if you want to target that in particular.)

theWul