Skip to content

Commit

Permalink
Merge pull request #871 from beyond-all-reason/revert-867-master
Browse files Browse the repository at this point in the history
Revert "Make minimum bonus 0 in all cases"
  • Loading branch information
AntlerForce authored Dec 23, 2024
2 parents 02e722d + d4c2a8b commit 2fc72c2
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 2fc72c2

Please sign in to comment.