summaryrefslogtreecommitdiff
path: root/gamemode/craftablesystem/furnaces/ironfurnace.lua
blob: 55f0e7cd6a8ea78ec20da128a3b73d910880a6b0 (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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
/* Iron Furnace */
local COMBI = {}

COMBI.Name = "Iron Furnace"
COMBI.Description = "You can use the furnace to smelt resources into another, such as Sand into Glass."

COMBI.Req = {}
COMBI.Req["Iron"] = 35

COMBI.Results = "gms_ironfurnace"
COMBI.Texture = "gms_icons/gms_ironfurnace.png"
COMBI.BuildSiteModel = "models/props_c17/furniturefireplace001a.mdl"

GMS.RegisterCombi( COMBI, "Structures" )

/* All Tech */
local COMBI = {}

COMBI.Name = "All Tech"
COMBI.Description = "Tech can be used to create more advanced buildings and tools."
COMBI.Entity = "gms_ironfurnace"

COMBI.Req = {}
COMBI.Req["Tech Ore"] = 1

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

COMBI.AllSmelt = true
COMBI.Max = 50

GMS.RegisterCombi( COMBI, "gms_ironfurnace" )

/* 1 Tech */
local COMBI = {}

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

COMBI.Req = {}
COMBI.Req["Tech Ore"] = 1

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

GMS.RegisterCombi( COMBI, "gms_ironfurnace" )

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

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

    COMBI.Req = {}
    COMBI.Req["Tech Ore"] = v

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

    GMS.RegisterCombi( COMBI, "gms_ironfurnace" )
end

/* Glass */
local COMBI = {}

COMBI.Name = "Glass"
COMBI.Description = "Glass can be used for making bottles and lighting."
COMBI.Entity = "gms_ironfurnace"

COMBI.Req = {}
COMBI.Req["Sand"] = 2

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

GMS.RegisterCombi( COMBI, "gms_ironfurnace" )

/* Charcoal */
local COMBI = {}

COMBI.Name = "Charcoal"
COMBI.Description = "Used in the production of gunpowder."
COMBI.Entity = "gms_ironfurnace"

COMBI.Req = {}
COMBI.Req["Wood"] = 5

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

GMS.RegisterCombi( COMBI, "gms_ironfurnace" )

/* Charcoal 10x */
local COMBI = {}

COMBI.Name = "Charcoal 10x"
COMBI.Description = "Used in the production of gunpowder."
COMBI.Entity = "gms_ironfurnace"

COMBI.Req = {}
COMBI.Req["Wood"] = 50

COMBI.Results = {}
COMBI.Results["Charcoal"] = 10

GMS.RegisterCombi( COMBI, "gms_ironfurnace" )