summaryrefslogtreecommitdiff
path: root/gamemode/craftablesystem/furnaces/silverfurnace.lua
blob: 2ef60f1b0813479d8f4039e339ddf39486aa01fc (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
/* Silver Furnace */
local COMBI = {}

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

COMBI.Req = {}
COMBI.Req["Silver"] = 35
COMBI.Req["Maple"] = 35

COMBI.Results = "gms_silverfurnace"
COMBI.Texture = "gms_icons/gms_none.png"
COMBI.BuildSiteModel = "models/props_wasteland/laundry_basket001.mdl"

GMS.RegisterCombi( COMBI, "Structures" )

/* 1 Gold */
local COMBI = {}

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

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

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

GMS.RegisterCombi( COMBI, "gms_silverfurnace" )

local GoldMultiples = {5,10,25}

for k,v in pairs(GoldMultiples) do
    local COMBI = {}

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

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

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

    GMS.RegisterCombi( COMBI, "gms_silverfurnace" )
end

/* All Gold */
local COMBI = {}

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

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

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

COMBI.AllSmelt = true
COMBI.Max = 50

GMS.RegisterCombi( COMBI, "gms_silverfurnace" )