Page 1 of 1

Change player.character_loot_pickup_distance_bonus from uint to double

Posted: Sun Sep 17, 2023 3:52 am
by asher_sky
The character_loot_pickup_distance_bonus in LuaControl is limited to a uint, while the character_loot_pickup_bonus in LuaForce gets to be a double.
https://lua-api.factorio.com/latest/cla ... ance_bonus
https://lua-api.factorio.com/latest/cla ... ance_bonus

This means that a mod can change the loot pickup distance of an entire force by fractions of a tile, but can only change the pickup distance of individual players by whole tiles.

Please change the LuaControl character_loot_pickup_distance_bonus to a double. This would make the two bonuses match, and would allow mods to change individual players loot_pickup_distance_bonus with more granularity (i.e. a "+0.25 tile loot pickup distance bonus" recipe).

Thank you!

Re: Change player.character_loot_pickup_distance_bonus from uint to double

Posted: Thu Oct 12, 2023 5:22 pm
by Gerkiz
+1

If this gets changed, I'm voting for character_reach_distance_bonus to become of type double also!