I tried
Code: Select all
local dungeon_assembler_entity = table.deepcopy(data.raw["assembling-machine"]["assembling-machine-1"])
dungeon_assembler_entity.healing_per_tick = -1
So then I tired
Code: Select all
local dungeon_assembler_entity = table.deepcopy(data.raw["assembling-machine"]["assembling-machine-1"])
dungeon_assembler_entity.healing_per_tick = 1
I looked at the code in ModMash Splinter, Regenerative Tech https://mods.factorio.com/mod/modmashsp ... generative
I was hoping to avoid running an extra function that checks and changes building's health. It seems like that mod adds all buildings to a list and loops through them.
The documentation for healing_per_tick says: "The entity must be active for this to work". What does that mean?