summaryrefslogtreecommitdiff
path: root/gamemode/craftablesystem/furnaces/silverfurnace.lua
diff options
context:
space:
mode:
Diffstat (limited to 'gamemode/craftablesystem/furnaces/silverfurnace.lua')
-rw-r--r--gamemode/craftablesystem/furnaces/silverfurnace.lua51
1 files changed, 12 insertions, 39 deletions
diff --git a/gamemode/craftablesystem/furnaces/silverfurnace.lua b/gamemode/craftablesystem/furnaces/silverfurnace.lua
index ce920c9..b363c5e 100644
--- a/gamemode/craftablesystem/furnaces/silverfurnace.lua
+++ b/gamemode/craftablesystem/furnaces/silverfurnace.lua
@@ -29,50 +29,23 @@ COMBI.Results["Gold"] = 1
GMS.RegisterCombi( COMBI, "gms_silverfurnace" )
-/* 5 Gold */
-local COMBI = {}
-
-COMBI.Name = "Gold 5x"
-COMBI.Description = "Gold can be used to create more advanced buildings and tools."
-COMBI.Entity = "gms_silverfurnace"
-
-COMBI.Req = {}
-COMBI.Req["Gold_Ore"] = 5
-
-COMBI.Results = {}
-COMBI.Results["Gold"] = 5
+local GoldMultiples = {5,10,25}
-GMS.RegisterCombi( COMBI, "gms_silverfurnace" )
+for k,v in pairs(GoldMultiples) do
+ local COMBI = {}
-/* 10 Gold */
-local COMBI = {}
+ COMBI.Name = "Gold " .. v .. "x"
+ COMBI.Description = "Gold can be used to create more advanced buildings and tools."
+ COMBI.Entity = "gms_silverfurnace"
-COMBI.Name = "Gold 10x"
-COMBI.Description = "Gold can be used to create more advanced buildings and tools."
-COMBI.Entity = "gms_silverfurnace"
+ COMBI.Req = {}
+ COMBI.Req["Gold_Ore"] = v
-COMBI.Req = {}
-COMBI.Req["Gold_Ore"] = 10
+ COMBI.Results = {}
+ COMBI.Results["Gold"] = v
-COMBI.Results = {}
-COMBI.Results["Gold"] = 10
-
-GMS.RegisterCombi( COMBI, "gms_silverfurnace" )
-
-/* 25 Gold */
-local COMBI = {}
-
-COMBI.Name = "Gold 25x"
-COMBI.Description = "Gold can be used to create more advanced buildings and tools."
-COMBI.Entity = "gms_silverfurnace"
-
-COMBI.Req = {}
-COMBI.Req["Gold_Ore"] = 25
-
-COMBI.Results = {}
-COMBI.Results["Gold"] = 25
-
-GMS.RegisterCombi( COMBI, "gms_silverfurnace" )
+ GMS.RegisterCombi( COMBI, "gms_silverfurnace" )
+end
/* All Gold */
local COMBI = {}