Page 1 of 1
Scaling the Health Effects of Crafting Machines
Posted: Tue Sep 02, 2025 1:18 am
by Gizzmohammer
Unsure if this is a bug or not.
Currently the "Production Health Effects" in the "Crafting Machine Prototype" are unaffected by crafting speed penalties.
For example, this machine gets the full healing from "production" even though it's not producing anything.

- 09-01-2025, 21-03-55.png (441.66 KiB) Viewed 335 times
It would be great if the health calculations took these edge-cases into account.
If this is intended behavior, it would be nice to have an "affected-by-crafting-speed" boolean in the "ProductionHealthEffect" struct
Thanks for reading!
Re: Scaling the Health Effects of Crafting Machines
Posted: Wed Sep 03, 2025 4:26 pm
by BraveCaperCat
Uhhhhhh
there's a ProductionHealthEffect struct???
Re: Scaling the Health Effects of Crafting Machines
Posted: Wed Sep 10, 2025 12:05 am
by Gizzmohammer
Re: Scaling the Health Effects of Crafting Machines
Posted: Wed Sep 10, 2025 5:51 am
by protocol_1903
I feel like a variable effect might be computation intensive, although this does seem like an edge case where partial power availability should not activate the effect.
Re: Scaling the Health Effects of Crafting Machines
Posted: Wed Sep 10, 2025 6:52 am
by boskid
production_health_effect was primarily implemented because of the captive biter spawners which do not accept any effects and as such there are multiple corner cases that were not considered. Having a crafting machine accept effects was one of those cases that was not considered because it did not affect our primary use case. Another cases i am aware of is if a crafting machine is disabled by control behavior (in which case the production health effect will not get applied) or when crafting machine is marked to be deconstructed when it stops updating, or if a crafting machine gets disabled due to having unresearched recipe or having a recipe parameter set, where all of those cases do not apply in our base use case. Also having a machine be repairable may interfere with usage of this feature for obvious reasons. If you think it does not work as expected and report it to bugs, i will move all such reports to modding interface request instead because all such behaviors fall outside of defined scope of this feature.
Re: Scaling the Health Effects of Crafting Machines
Posted: Thu Sep 11, 2025 2:27 am
by Gizzmohammer
Ah, that makes sense, thanks
