summaryrefslogtreecommitdiff
path: root/gamemode/craftablesystem/furnaces/copperfurnace.lua
diff options
context:
space:
mode:
Diffstat (limited to 'gamemode/craftablesystem/furnaces/copperfurnace.lua')
-rw-r--r--gamemode/craftablesystem/furnaces/copperfurnace.lua52
1 files changed, 12 insertions, 40 deletions
diff --git a/gamemode/craftablesystem/furnaces/copperfurnace.lua b/gamemode/craftablesystem/furnaces/copperfurnace.lua
index 8d58554..2d8c066 100644
--- a/gamemode/craftablesystem/furnaces/copperfurnace.lua
+++ b/gamemode/craftablesystem/furnaces/copperfurnace.lua
@@ -28,50 +28,22 @@ COMBI.Results["Iron"] = 1
GMS.RegisterCombi( COMBI, "gms_copperfurnace" )
-/* Iron Ore to Iron x5 */
-local COMBI = {}
-
-COMBI.Name = "Iron 5x"
-COMBI.Description = "Iron can be used to create more advanced buildings and tools."
-COMBI.Entity = "gms_copperfurnace"
-
-COMBI.Req = {}
-COMBI.Req["Iron_Ore"] = 5
-
-COMBI.Results = {}
-COMBI.Results["Iron"] = 5
-
-GMS.RegisterCombi( COMBI, "gms_copperfurnace" )
-
-/* Iron Ore to Iron x10 */
-local COMBI = {}
-
-COMBI.Name = "Iron 10x"
-COMBI.Description = "Iron can be used to create more advanced buildings and tools."
-COMBI.Entity = "gms_copperfurnace"
-
-COMBI.Req = {}
-COMBI.Req["Iron_Ore"] = 10
-
-COMBI.Results = {}
-COMBI.Results["Iron"] = 10
-
-GMS.RegisterCombi( COMBI, "gms_copperfurnace" )
+local SmeltMultiples = {5,10,25}
+for v,k in pairs(SmeltMultiples) do
+ local COMBI = {}
-/* Iron Ore to Iron x25 */
-local COMBI = {}
+ COMBI.Name = "Iron " .. k .. "x"
+ COMBI.Description = "Iron can be used to create more advanced buildings and tools."
+ COMBI.Entity = "gms_copperfurnace"
-COMBI.Name = "Iron 25x"
-COMBI.Description = "Iron can be used to create more advanced buildings and tools."
-COMBI.Entity = "gms_copperfurnace"
+ COMBI.Req = {}
+ COMBI.Req["Iron_Ore"] = k
-COMBI.Req = {}
-COMBI.Req["Iron_Ore"] = 25
+ COMBI.Results = {}
+ COMBI.Results["Iron"] = k
-COMBI.Results = {}
-COMBI.Results["Iron"] = 25
-
-GMS.RegisterCombi( COMBI, "gms_copperfurnace" )
+ GMS.RegisterCombi( COMBI, "gms_copperfurnace" )
+end
/* Allsmelt Iron */
local COMBI = {}