summaryrefslogtreecommitdiff
path: root/gamemode/craftablesystem/furnaces/steelfurnace.lua
diff options
context:
space:
mode:
Diffstat (limited to 'gamemode/craftablesystem/furnaces/steelfurnace.lua')
-rw-r--r--gamemode/craftablesystem/furnaces/steelfurnace.lua52
1 files changed, 12 insertions, 40 deletions
diff --git a/gamemode/craftablesystem/furnaces/steelfurnace.lua b/gamemode/craftablesystem/furnaces/steelfurnace.lua
index 2f2bfdd..d4680a9 100644
--- a/gamemode/craftablesystem/furnaces/steelfurnace.lua
+++ b/gamemode/craftablesystem/furnaces/steelfurnace.lua
@@ -29,50 +29,22 @@ COMBI.Results["Platinum"] = 1
GMS.RegisterCombi( COMBI, "gms_steelfurnace" )
-/* 5 Platinum */
-local COMBI = {}
-
-COMBI.Name = "Platinum 5x"
-COMBI.Description = "Platinum can be used to create more advanced buildings and tools."
-COMBI.Entity = "gms_steelfurnace"
-
-COMBI.Req = {}
-COMBI.Req["Platinum_Ore"] = 5
-
-COMBI.Results = {}
-COMBI.Results["Platinum"] = 5
-
-GMS.RegisterCombi( COMBI, "gms_steelfurnace" )
-
-/* 10 Platinum */
-local COMBI = {}
-
-COMBI.Name = "Platinum 10x"
-COMBI.Description = "Platinum can be used to create more advanced buildings and tools."
-COMBI.Entity = "gms_steelfurnace"
-
-COMBI.Req = {}
-COMBI.Req["Platinum_Ore"] = 10
-
-COMBI.Results = {}
-COMBI.Results["Platinum"] = 10
-
-GMS.RegisterCombi( COMBI, "gms_steelfurnace" )
+local PlatinumMultiples = {5,10,25}
+for k,v in pairs(PlatinumMultiples) do
+ local COMBI = {}
-/* 25 Platinum */
-local COMBI = {}
+ COMBI.Name = "Platinum " .. v .. "x"
+ COMBI.Description = "Platinum can be used to create more advanced buildings and tools."
+ COMBI.Entity = "gms_steelfurnace"
-COMBI.Name = "Platinum 25x"
-COMBI.Description = "Platinum can be used to create more advanced buildings and tools."
-COMBI.Entity = "gms_steelfurnace"
+ COMBI.Req = {}
+ COMBI.Req["Platinum_Ore"] = v
-COMBI.Req = {}
-COMBI.Req["Platinum_Ore"] = 25
+ COMBI.Results = {}
+ COMBI.Results["Platinum"] = v
-COMBI.Results = {}
-COMBI.Results["Platinum"] = 25
-
-GMS.RegisterCombi( COMBI, "gms_steelfurnace" )
+ GMS.RegisterCombi( COMBI, "gms_steelfurnace" )
+end
/* All Platinum */
local COMBI = {}