From af7bbad81337b919489eb3792f188ed171980998 Mon Sep 17 00:00:00 2001 From: AlmTech Software Date: Sun, 5 Jan 2020 20:24:35 +0100 Subject: [PATCH] Moved 'equip slots' table to constants --- gamemode/engine/lib/sh_vars.lua | 9 +++++++++ gamemode/settings/sh_settings.lua | 8 -------- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/gamemode/engine/lib/sh_vars.lua b/gamemode/engine/lib/sh_vars.lua index 3a4eab2..3cb42ba 100644 --- a/gamemode/engine/lib/sh_vars.lua +++ b/gamemode/engine/lib/sh_vars.lua @@ -24,6 +24,7 @@ Quantum.ItemInfoDisplayMaxDistance = 200 Quantum.CharInfoDisplayDistance = 400 +---- Item Variables ---- Quantum.Rarity = { None = { txt = "gnomerd the mvp", color = Color( 0, 0, 0, 120 ) }, @@ -34,6 +35,14 @@ Quantum.Rarity = { Legendary = { txt = "Legendary", color = Color( 235, 125, 52, 40 ) } } +Quantum.EquipSlots = { + Head = 0, + Chest = 1, + Legs = 2, + Boots = 3, + Weapon = 4 +} + ---- Placeholders ---- Quantum.EmptyFunction = function() end diff --git a/gamemode/settings/sh_settings.lua b/gamemode/settings/sh_settings.lua index d6cec72..c4a5b43 100644 --- a/gamemode/settings/sh_settings.lua +++ b/gamemode/settings/sh_settings.lua @@ -18,14 +18,6 @@ Quantum.Inventory = { MaxStackSize = 20 -- NOTE: MAX MaxStackSize=99 } -Quantum.EquipSlots = { - Head = 0, - Chest = 1, - Legs = 2, - Boots = 3, - Weapon = 4 -} - Quantum.InventoryOpenDelay = 0.35 Quantum.ItemPickupTime = 0.5 -- seconds