Skip to content

Commit

Permalink
Merge pull request #867 from AntlerForce/master
Browse files Browse the repository at this point in the history
Make minimum bonus 0 in all cases
  • Loading branch information
AntlerForce authored Dec 23, 2024
2 parents 0ce71dd + 6e95ad1 commit 15c2c76
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions LuaMenu/widgets/api_user_handler.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1085,13 +1085,9 @@ 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 = minbonus,
minValue = 0,
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 15c2c76

Please sign in to comment.