-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmodmain.lua
More file actions
135 lines (114 loc) · 5.25 KB
/
modmain.lua
File metadata and controls
135 lines (114 loc) · 5.25 KB
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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
local images_path = "images/inventoryimages/"
local OPCane_atlas = images_path .. "vanilla/opcane.xml"
local OPStaff_atlas = images_path .. "vanilla/opstaff.xml"
local OPVest_atlas = images_path .. "vanilla/opvest.xml"
local OPHat_atlas = images_path .. "vanilla/ophat.xml"
local OPAmulet_atlas = images_path .. "vanilla/opamulet.xml"
local OPFishingrod_atlas = images_path .. "vanilla/opfishingrod.xml"
local OPBugnet_atlas = images_path .. "vanilla/opbugnet.xml"
Assets = {
Asset("ATLAS", OPCane_atlas),
Asset("ATLAS", OPStaff_atlas),
Asset("ATLAS", OPVest_atlas),
Asset("ATLAS", OPHat_atlas),
Asset("ATLAS", OPAmulet_atlas),
Asset("ATLAS", OPFishingrod_atlas),
Asset("ATLAS", OPBugnet_atlas),
}
if GLOBAL.IsDLCEnabled(GLOBAL.PORKLAND_DLC) then
PrefabFiles = {
"DLC0001/OPHat",
"DLC0001/OPVest",
"DLC0001/OPAmulet",
"DLC0002/OPCane",
"vanilla/OPStaff",
"vanilla/OPFishingrod",
"vanilla/OPBugnet"
}
elseif GLOBAL.IsDLCEnabled(GLOBAL.CAPY_DLC) then
PrefabFiles = {
"DLC0002/OPCane",
"vanilla/OPFishingrod",
"vanilla/OPBugnet"
}
elseif GLOBAL.IsDLCEnabled(GLOBAL.REIGN_OF_GIANTS) then
PrefabFiles = {
"DLC0001/OPHat",
"DLC0001/OPVest",
"DLC0001/OPAmulet",
"vanilla/OPCane",
"vanilla/OPStaff",
"vanilla/OPFishingrod",
"vanilla/OPBugnet"
}
else
PrefabFiles = {
"vanilla/OPCane",
"vanilla/OPFishingrod",
"vanilla/OPBugnet"
}
end
TUNING.OPCANE_SPEED_MULT = TUNING.CANE_SPEED_MULT * 1.2
TUNING.OPCANE_DAMAGE = TUNING.NIGHTSWORD_DAMAGE * 1.5
TUNING.ARMOR_OPVEST = 2000000000
function Opcane_Quicken(inst)
if inst.components.locomotor then
inst.components.locomotor.walkspeed = 10
inst.components.locomotor.runspeed = 15
end
end
AddPrefabPostInit("chester", Opcane_Quicken)
STRINGS = GLOBAL.STRINGS
RECIPETABS = GLOBAL.RECIPETABS
Recipe = GLOBAL.Recipe
Ingredient = GLOBAL.Ingredient
TECH = GLOBAL.TECH
GLOBAL.STRINGS.NAMES.OPCANE = "OP Cane"
GLOBAL.STRINGS.NAMES.OPSTAFF = "OP Staff"
GLOBAL.STRINGS.NAMES.OPVEST = "OP Vest"
GLOBAL.STRINGS.NAMES.OPHAT = "OP Hat"
GLOBAL.STRINGS.NAMES.OPAMULET = "OP Amulet"
GLOBAL.STRINGS.NAMES.OPFISHINGROD = "OP Fishing rod"
GLOBAL.STRINGS.NAMES.OPBUGNET = "OP Bug net"
if GLOBAL.IsDLCEnabled(GLOBAL.CAPY_DLC) then
AddPrefabPostInit("packim", Opcane_Quicken)
Recipe("cane", { Ingredient("obsidian", 3), Ingredient("goldnugget", 2), Ingredient("twigs", 4), Ingredient("ox_horn", 1) },
RECIPETABS.DRESS, TECH.OBSIDIAN_TWO)
end
--if GLOBAL.IsDLCEnabled(GLOBAL.PORKLAND_DLC) then
--
--elseif GLOBAL.IsDLCEnabled(GLOBAL.CAPY_DLC) then
-- AddPrefabPostInit("packim", Opcane_Quicken)
--
-- Recipe("cane", { Ingredient("obsidian", 3), Ingredient("goldnugget", 2), Ingredient("twigs", 4), Ingredient("ox_horn", 1) },
-- RECIPETABS.DRESS, TECH.OBSIDIAN_TWO)
--
--elseif GLOBAL.IsDLCEnabled(GLOBAL.REIGN_OF_GIANTS) then
Recipe("OPVest", { Ingredient("beargervest", 1), Ingredient("raincoat", 1), Ingredient("hawaiianshirt", 1),
Ingredient("armorruins", 1), Ingredient("armordragonfly", 1),
Ingredient("nightmarefuel", 20), Ingredient("goldnugget", 20) },
RECIPETABS.MAGIC, TECH.MAGIC_TWO).atlas = OPVest_atlas
Recipe("OPHat", { Ingredient("eyebrellahat", 1), Ingredient("icehat", 1),
Ingredient("beefalohat", 1), Ingredient("walrushat", 1), Ingredient("featherhat", 1),
Ingredient("spiderhat", 1), Ingredient("ruinshat", 1),
Ingredient("nightmarefuel", 20), Ingredient("goldnugget", 20) },
RECIPETABS.MAGIC, TECH.MAGIC_TWO).atlas = OPHat_atlas
Recipe("OPAmulet", { Ingredient("amulet", 1), Ingredient("blueamulet", 1), Ingredient("purpleamulet", 1),
Ingredient("yellowamulet", 1), Ingredient("greenamulet", 1), Ingredient("orangeamulet", 1),
Ingredient("nightmarefuel", 20), Ingredient("goldnugget", 20) },
RECIPETABS.MAGIC, TECH.MAGIC_TWO).atlas = OPAmulet_atlas
--end
Recipe("OPCane", { Ingredient("cane", 1), Ingredient("multitool_axe_pickaxe", 1), Ingredient("goldenshovel", 1),
Ingredient("pitchfork", 1), Ingredient("razor", 1), Ingredient("ruins_bat", 1), Ingredient("batbat", 1),
Ingredient("nightmarefuel", 20), Ingredient("goldnugget", 20), Ingredient("thulecite", 20) },
RECIPETABS.MAGIC, TECH.MAGIC_TWO).atlas = OPCane_atlas
Recipe("OPStaff", { Ingredient("orangestaff", 1), Ingredient("greenstaff", 1), Ingredient("yellowstaff", 1),
Ingredient("firestaff", 1), Ingredient("icestaff", 1),
Ingredient("nightmarefuel", 20), Ingredient("goldnugget", 20), Ingredient("thulecite", 20) },
RECIPETABS.MAGIC, TECH.MAGIC_TWO).atlas = OPStaff_atlas
Recipe("OPFishingrod", { Ingredient("fishingrod", 1), Ingredient("silk", 10),
Ingredient("nightmarefuel", 10), Ingredient("goldnugget", 10), Ingredient("thulecite", 1) },
RECIPETABS.MAGIC, TECH.MAGIC_TWO).atlas = OPFishingrod_atlas
Recipe("OPBugnet", { Ingredient("bugnet", 1), Ingredient("silk", 10),
Ingredient("nightmarefuel", 10), Ingredient("goldnugget", 10), Ingredient("thulecite", 1) },
RECIPETABS.MAGIC, TECH.MAGIC_TWO).atlas = OPBugnet_atlas