diff options
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 = {} |
