Code: Select all
for _, tree in pairs(data.raw.tree) do
--make trees stonger
tree.max_health = 1000000
tree.healing_per_tick = 0
end
Is there something I'm doing wrong?
Is there a better way to do what I want to do?
Code: Select all
for _, tree in pairs(data.raw.tree) do
--make trees stonger
tree.max_health = 1000000
tree.healing_per_tick = 0
end
Use the info-mod viewtopic.php?f=135&t=45107Eylrid wrote: Mon Oct 28, 2019 6:42 am It successfully changes the max_health so the file is loading and the code is running, but it doesn't change the heal rate.