summaryrefslogtreecommitdiff
path: root/gamemode/craftablesystem/furnaces/steelfurnace.lua
blob: d4680a977a1ba11cf4f5a8ee265a7247812173bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
/* Steel Furnace */
local COMBI = {}

COMBI.Name = "Steel Furnace"
COMBI.Description = "You can use the furnace to smelt resources into another, such as Platinum Ore into Platinum."

COMBI.Req = {}
COMBI.Req["Steel"] = 35
COMBI.Req["Mahogany"] = 35

COMBI.Results = "gms_steelfurnace"
COMBI.Texture = "gms_icons/gms_none.png"
COMBI.BuildSiteModel = "models/props_industrial/winch_deck.mdl"

GMS.RegisterCombi( COMBI, "Structures" )

/* 1 Platinum */
local COMBI = {}

COMBI.Name = "Platinum"
COMBI.Description = "Platinum can be used to create more advanced buildings and tools."
COMBI.Entity = "gms_steelfurnace"

COMBI.Req = {}
COMBI.Req["Platinum_Ore"] = 1

COMBI.Results = {}
COMBI.Results["Platinum"] = 1

GMS.RegisterCombi( COMBI, "gms_steelfurnace" )

local PlatinumMultiples = {5,10,25}
for k,v in pairs(PlatinumMultiples) do
    local COMBI = {}

    COMBI.Name = "Platinum " .. v .. "x"
    COMBI.Description = "Platinum can be used to create more advanced buildings and tools."
    COMBI.Entity = "gms_steelfurnace"

    COMBI.Req = {}
    COMBI.Req["Platinum_Ore"] = v

    COMBI.Results = {}
    COMBI.Results["Platinum"] = v

    GMS.RegisterCombi( COMBI, "gms_steelfurnace" )
end

/* All Platinum */
local COMBI = {}

COMBI.Name = "Platinum"
COMBI.Description = "Platinum can be used to create more advanced buildings and tools."
COMBI.Entity = "gms_steelfurnace"

COMBI.Req = {}
COMBI.Req["Platinum_Ore"] = 1

COMBI.Results = {}
COMBI.Results["Platinum"] = 1

COMBI.AllSmelt = true
COMBI.Max = 50

GMS.RegisterCombi( COMBI, "gms_steelfurnace" )