Change player.character_loot_pickup_distance_bonus from uint to double

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
Post Reply
asher_sky
Inserter
Inserter
Posts: 44
Joined: Sun Oct 18, 2020 7:13 pm
Contact:

Change player.character_loot_pickup_distance_bonus from uint to double

Post 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!

User avatar
Gerkiz
Long Handed Inserter
Long Handed Inserter
Posts: 50
Joined: Fri Nov 30, 2018 3:36 pm
Contact:

Re: Change player.character_loot_pickup_distance_bonus from uint to double

Post by Gerkiz »

+1

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

Post Reply

Return to “Modding interface requests”