From d4c2a8bbe23957dacfcc3b9c40c92fe8800a5061 Mon Sep 17 00:00:00 2001 From: AntlerForce <124457076+AntlerForce@users.noreply.github.com> Date: Mon, 23 Dec 2024 12:39:03 -0700 Subject: [PATCH] Revert "Make minimum bonus 0 in all cases" --- LuaMenu/widgets/api_user_handler.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/LuaMenu/widgets/api_user_handler.lua b/LuaMenu/widgets/api_user_handler.lua index 36882357a..b052e8768 100644 --- a/LuaMenu/widgets/api_user_handler.lua +++ b/LuaMenu/widgets/api_user_handler.lua @@ -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",