Well, since turrets and walls (they will be most likely to be damaged) stack up to 50 then you would loose/ gain up to 25 hp or if it would round always down you could loose less than 50 hp it would be only 1/8 or 1/4 of basic repair kit, and that is just about half or one ore of stuff, so it would not be big deal. And most important it would be less than loosing whole turret instead of 1/200 of repair pack.AndrolGenhald wrote:When they first mentioned it I figured it'd be something like this, but after considering it more it just doesn't feel right to introduce rounding issues like that. Not a huge problem I guess, but I'd rather lose items. To be honest though both solutions are imperfect, and I wonder if the people suggesting auto-repair might be right.Syriusz wrote:I think that merging is good idea, but do not merge them with possibility of loosing items, like now with ammo, but instead make them average health.
So health of merged items should be: HP=SUM(HP of items)/(number of items).
It will require as many repair packs (more or less, depends on rounding) as before and there would not be possible to loose items. You could only make it that damaged items don't mix with items with full health, so you don't place damaged ones when you don't want.
And stack health is already stored as % of full health, so it is precise since it need to cover entities with 5000 or more hp, especially with modded entities. (I think that it is precise since factorrisimo factories have 0% of health in inventory for storing data, and I never had it more than 0% even with dozens of factories). And when you place them you would sometimes have entity with one more or less hp, depending on stack health. Then health of entity would be HP_entity= HP_stack_percent*Entity_max_health/(number_of_items) with rounding to 1 and new stack health would change according to rounding of new entity (or it could just randomly give it one more or less hp, depending of how far theoretical float hp is from integer, IF it would save processing power. If someone want to exploit it, since it would be such pain in ass for little gain, they deserve it).