Skip to content

Commit

Permalink
Revert "Make minimum bonus 0 in all cases"
Browse files Browse the repository at this point in the history
  • Loading branch information
AntlerForce authored Dec 23, 2024
1 parent 02e722d commit d4c2a8b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion LuaMenu/widgets/api_user_handler.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1086,9 +1086,13 @@ local function GetUserControls(userName, opts)
if battleStatus.isSpectator then
return
end
local minbonus = 0
if isSingleplayer then
minbonus = -99
end
WG.IntegerSelectorWindow.CreateIntegerSelectorWindow({
defaultValue = 0,
minValue = 0,
minValue = minbonus,
maxValue = 100,
caption = "Add Bonus",
labelCaption = "Give "..userName.." an additional % resource bonus. 100% means that player produces double the normal resource amount. 0% is regular resource production. In single player games, a negative bonus will result in that player getting X% less resources",
Expand Down

0 comments on commit d4c2a8b

Please sign in to comment.