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/goldfurnace.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/goldfurnace.lua')
| -rw-r--r-- | gamemode/craftablesystem/furnaces/goldfurnace.lua | 52 |
1 files changed, 12 insertions, 40 deletions
diff --git a/gamemode/craftablesystem/furnaces/goldfurnace.lua b/gamemode/craftablesystem/furnaces/goldfurnace.lua index fc050ba..7e0bacf 100644 --- a/gamemode/craftablesystem/furnaces/goldfurnace.lua +++ b/gamemode/craftablesystem/furnaces/goldfurnace.lua @@ -29,50 +29,22 @@ COMBI.Results["Steel"] = 1 GMS.RegisterCombi( COMBI, "gms_goldfurnace" ) -/* 5 Steel */ -local COMBI = {} - -COMBI.Name = "Steel 5x" -COMBI.Description = "Steel can be used to create more advanced buildings and tools." -COMBI.Entity = "gms_goldfurnace" - -COMBI.Req = {} -COMBI.Req["Steel_Ore"] = 5 - -COMBI.Results = {} -COMBI.Results["Steel"] = 5 - -GMS.RegisterCombi( COMBI, "gms_goldfurnace" ) - -/* 10 Steel */ -local COMBI = {} - -COMBI.Name = "Steel 10x" -COMBI.Description = "Steel can be used to create more advanced buildings and tools." -COMBI.Entity = "gms_goldfurnace" - -COMBI.Req = {} -COMBI.Req["Steel_Ore"] = 10 - -COMBI.Results = {} -COMBI.Results["Steel"] = 10 - -GMS.RegisterCombi( COMBI, "gms_goldfurnace" ) +local SteelMultiples = {5,10,25} +for k,v in pairs(SteelMultiples) do + local COMBI = {} -/* 25 Steel */ -local COMBI = {} + COMBI.Name = "Steel " .. v .. "x" + COMBI.Description = "Steel can be used to create more advanced buildings and tools." + COMBI.Entity = "gms_goldfurnace" -COMBI.Name = "Steel 25x" -COMBI.Description = "Steel can be used to create more advanced buildings and tools." -COMBI.Entity = "gms_goldfurnace" + COMBI.Req = {} + COMBI.Req["Steel_Ore"] = v -COMBI.Req = {} -COMBI.Req["Steel_Ore"] = 25 + COMBI.Results = {} + COMBI.Results["Steel"] = v -COMBI.Results = {} -COMBI.Results["Steel"] = 25 - -GMS.RegisterCombi( COMBI, "gms_goldfurnace" ) + GMS.RegisterCombi( COMBI, "gms_goldfurnace" ) +end /* All Steel */ local COMBI = {} |
