mirror of
https://github.com/ComfyFactory/ComfyFactorio.git
synced 2025-03-11 14:49:24 +02:00
Fixing uneven distribution of half points in RPG
This commit is contained in:
parent
d59a542ea7
commit
9c4787a962
@ -90,7 +90,7 @@ local function on_gui_click(event)
|
||||
elseif event.button == defines.mouse_button_type.right then
|
||||
local left = rpg_t.points_left / 2
|
||||
if left > 2 then
|
||||
for _ = 1, left, 1 do
|
||||
for _ = 2, left, 1 do -- for _ = 1 results in uneven distribution
|
||||
if rpg_t.points_left <= 0 then
|
||||
Public.toggle(player, true)
|
||||
return
|
||||
|
Loading…
x
Reference in New Issue
Block a user