veden / RampantArsenal

GNU General Public License v3.0
6 stars 10 forks source link

Regen walls #39

Open fess932 opened 3 months ago

fess932 commented 3 months ago

Why regen walls not regening always, only after taking direct damage? how fix that? or its game engine limitation?

fess932 commented 3 months ago

something if currentHealth < fullHealth { regen() }

garrotte13 commented 3 months ago

These walls regeneration trigger is based on special property factorio engine has - action on being directly hit. No scripts are used -> no performance impact no matter how many wall sections are installed. Only particular triggered event takes CPU time. The same is about other RA buildings, like healing turrets and so on. They are not so helpful as expected, but consume 0 CPU time unlike defensive buildings of other mods.

fess932 commented 3 months ago

I have more turrets than walls, I don't think that walls would affect the cpu time

fess932 commented 3 months ago

I have a wall of turrets in two layers just to avoid taking damage because regen walls don't work XD