1
0
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:
Johny 2022-10-18 17:40:50 +02:00
parent d59a542ea7
commit 9c4787a962

View File

@ -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