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/ironfurnace.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/ironfurnace.lua')
| -rw-r--r-- | gamemode/craftablesystem/furnaces/ironfurnace.lua | 53 |
1 files changed, 12 insertions, 41 deletions
diff --git a/gamemode/craftablesystem/furnaces/ironfurnace.lua b/gamemode/craftablesystem/furnaces/ironfurnace.lua index bea5d0b..8264148 100644 --- a/gamemode/craftablesystem/furnaces/ironfurnace.lua +++ b/gamemode/craftablesystem/furnaces/ironfurnace.lua @@ -46,51 +46,22 @@ COMBI.Results["Tech"] = 1 GMS.RegisterCombi( COMBI, "gms_ironfurnace" ) -/* 5 Tech */ -local COMBI = {} - -COMBI.Name = "Tech 5x" -COMBI.Description = "Tech can be used to create more advanced buildings and tools." -COMBI.Entity = "gms_ironfurnace" +local TechMultiples = {5,10,25} +for k,v in pairs(TechMultiples) do + local COMBI = {} -COMBI.Req = {} -COMBI.Req["Tech_Ore"] = 5 - -COMBI.Results = {} -COMBI.Results["Tech"] = 5 + COMBI.Name = "Tech " .. v .. "x" + COMBI.Description = "Tech can be used to create more advanced buildings and tools." + COMBI.Entity = "gms_ironfurnace" -GMS.RegisterCombi( COMBI, "gms_ironfurnace" ) - -/* 10 Tech */ -local COMBI = {} - -COMBI.Name = "Tech 10x" -COMBI.Description = "Tech can be used to create more advanced buildings and tools." -COMBI.Entity = "gms_ironfurnace" - -COMBI.Req = {} -COMBI.Req["Tech_Ore"] = 10 + COMBI.Req = {} + COMBI.Req["Tech_Ore"] = v -COMBI.Results = {} -COMBI.Results["Tech"] = 10 - -GMS.RegisterCombi( COMBI, "gms_ironfurnace" ) - -/* 25 Tech */ -local COMBI = {} - -COMBI.Name = "Tech 25x" -COMBI.Description = "Tech can be used to create more advanced buildings and tools." -COMBI.Entity = "gms_ironfurnace" - -COMBI.Req = {} -COMBI.Req["Tech_Ore"] = 25 - -COMBI.Results = {} -COMBI.Results["Tech"] = 25 - -GMS.RegisterCombi( COMBI, "gms_ironfurnace" ) + COMBI.Results = {} + COMBI.Results["Tech"] = v + GMS.RegisterCombi( COMBI, "gms_ironfurnace" ) +end /* Glass */ local COMBI = {} |
