You've already forked ComfyFactorio
mirror of
https://github.com/ComfyFactory/ComfyFactorio.git
synced 2025-11-29 22:47:52 +02:00
Fixing uneven distribution of half points in RPG
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user