From 42324e542ca7f65ca2ec968ad199d2772a5f336e Mon Sep 17 00:00:00 2001 From: Damgam Date: Sat, 1 Jan 2022 10:03:24 +0100 Subject: [PATCH] Added NoRush modoption --- .../configs/gameConfig/byar/ModOptions.lua | 43 +++++++++++++------ 1 file changed, 31 insertions(+), 12 deletions(-) diff --git a/LuaMenu/configs/gameConfig/byar/ModOptions.lua b/LuaMenu/configs/gameConfig/byar/ModOptions.lua index 4e9839c99..0393fe8b6 100644 --- a/LuaMenu/configs/gameConfig/byar/ModOptions.lua +++ b/LuaMenu/configs/gameConfig/byar/ModOptions.lua @@ -121,21 +121,40 @@ local options={ {key="none", name="Disallow All", desc="No enemy units can be napped"}, } }, + { + key = "allowuserwidgets", + name = "Allow custom widgets", + desc = "Allow custom user widgets or disallow them", + type = "bool", + def = true, + section = 'restrictions', + }, { - key = "allowuserwidgets", - name = "Allow custom widgets", - desc = "Allow custom user widgets or disallow them", - type = "bool", - def = true, - section= 'restrictions', + key = 'fixedallies', + name = 'Disabled dynamic alliances', + desc = 'Disables the possibility of players to dynamically change alliances ingame', + type = 'bool', + def = true, + section = "restrictions", }, { - key = 'fixedallies', - name = 'Disabled dynamic alliances', - desc = 'Disables the possibility of players to dynamically change alliances ingame', - type = 'bool', - def = true, - section= "restrictions", + key = 'norushmode', + name = 'NoRush Mode', + desc = 'Disallows moving out of your startbox area for a set amount of time', + type = "bool", + section = 'restrictions', + def = false, + }, + { + key = 'norushtime', + name = 'NoRush Time', + desc = 'After how many minutes NoRush protection disappears', + type = "number", + section = 'restrictions', + def = 10, + min = 1, + max = 60, + step = 1, }, { key = 'disable_fogofwar',