diff options
| author | Alexander Pickering <alexandermpickering@gmail.com> | 2016-04-16 22:51:41 -0400 |
|---|---|---|
| committer | Alexander Pickering <alexandermpickering@gmail.com> | 2016-04-16 22:51:41 -0400 |
| commit | 573c19a5535deef9e015f0655fb495d91bac86a3 (patch) | |
| tree | bf053ad6f2e51f6208841ab3a0f0c3b828f856b7 /gamemode/craftablesystem/furnaces/copperfurnace.lua | |
| parent | 522cd90fe8b9d5e797647f731b526048383ff36b (diff) | |
| download | gmstranded-573c19a5535deef9e015f0655fb495d91bac86a3.tar.gz gmstranded-573c19a5535deef9e015f0655fb495d91bac86a3.tar.bz2 gmstranded-573c19a5535deef9e015f0655fb495d91bac86a3.zip | |
Refactored some of the code for the furnaces
Diffstat (limited to 'gamemode/craftablesystem/furnaces/copperfurnace.lua')
| -rw-r--r-- | gamemode/craftablesystem/furnaces/copperfurnace.lua | 52 |
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 = {} |
