/
slotmap.js
269 lines (268 loc) · 8.42 KB
/
slotmap.js
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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
/*
// MD IDS // Slot types
// 0 // 0 - empty
// 1 // 1 - swords
// 2 // 2 - dagger
// 3 // 3 - bows
// 4 // 4 - tomes
// 5 // 5 - shields
// 6 // 6 - light armor
// 7 // 7 - heavy armor
// 8 // 8 - wands
// 9 // 9 - rings
// 42010 // 10 - potions
// 42011 // 10 - potions soulbound
// 42012 // 10 - candies
// 42013 // 10 - keys
// 42014 // 10 - portal keys (incs, vials)
// 42015 // 10 - textiles
// 42016 // 10 - skins
// 42017 // 10 - fine spirits
// 42018 // 10 - elixers
// 42019 // 10 - other consumables
// 42020 // 10 - helpful consumables
// 42021 // 10 - assistant consumables
// 42022 // 10 - event items
// 42023 // 10 - tarot cards
// 42024 // 10 - treasures
// 42025 // 10 - effusions
// 42026 // 10 - pet food
// 42027 // 10 - pet stones
// 42028 // 10 - misc items
// 42029 // 10 - other items
// 50000 // 10 - uncategorized
// ^^^^^really rotmg???^^^^^
// 11 // 11 - spells
// 12 // 12 - seals
// 13 // 13 - cloaks
// 14 // 14 - robes
// 15 // 15 - quivers
// 16 // 16 - helms
// 17 // 17 - staves
// 18 // 18 - poisons
// 19 // 19 - skulls
// 20 // 20 - traps
// 21 // 21 - orbs
// 22 // 22 - prisms
// 23 // 23 - scepters
// 24 // 24 - katanas
// 25 // 25 - stars
// 26 // 26 - eggs
*/
// map of item groups and their identifier keys
var itemsSlotTypeMap = {
empty: {slotType: 0, displayName: 'Empty Slot'},
swords: {slotType: 1, sheet: [160, 0]},
daggers: {slotType: 2, sheet: [200, 0]},
bows: {slotType: 3, sheet: [240, 0]},
tomes: {slotType: 4, sheet: [840, 0]},
shields: {slotType: 5, sheet: [400, 0]},
lightarmor: {
sheet: [0, 40],
slotType: 6,
displayName: 'Light Armor'
},
heavyarmor: {
sheet: [960, 0],
slotType: 7,
displayName: 'Heavy Armor'
},
wands: {slotType: 8, sheet: [320, 0]},
rings: {slotType: 9, sheet: [80, 40]},
potions: {
sheet: [0, 0],
name: new RegExp(/^(?:Greater )?Potion of .*$/i),
slotType: 10,
virtualSlotType: 42010,
tier: [2, 4, -1],
bagType: 5,
soulbound: false
},
potionssb: {
sheet: [40, 0],
displayName: 'Potions (SB)',
name: new RegExp(/^(Potion of .*|Mystery Stat .*)$/i),
slotType: 10,
virtualSlotType: 42011,
tier: -1,
bagType: 5,
soulbound: true
},
candies: {
sheet: [80, 0],
name: new RegExp(/^Candy of Extreme .*$/i),
slotType: 10,
virtualSlotType: 42012,
tier: -1,
bagType: 8,
soulbound: true
},
portkeys: {
sheet: [160, 40],
displayName: 'Portal Keys',
name: new RegExp(/^(Wine Cellar Incantation|Vial of Pure Darkness)$/i),
slotType: 10,
virtualSlotType: 42014,
tier: -1,
bagType: [8,4]
},
textiles: {
sheet: [200, 40],
name: new RegExp(/^(?:(Mystery|Accessory|Clothing) (Dye|Cloth).*|.* (Dye|Cloth))$/i),
displayName: 'Dyes/Clothes',
slotType: 10,
virtualSlotType: 42015,
tier: -1,
bagType: 8,
feedPower: 0,
soulbound: true,
utst: 0
},
skins: {
sheet: [240, 40],
name: new RegExp(/^((?! pet |Red Nosed Skin|.* Bagston Skin|Christmas Tree Skin).)*skin(?: \(.*\))?$/i),
slotType: 10,
virtualSlotType: 42016,
tier: -1,
bagType: 8
},
petstones: {
sheet: [720, 40],
name: new RegExp(/^(?:.* pet skin|(?:Halloween )?Mystery Pet Stone|Red Nosed Skin|.* Bagston Skin|Christmas Tree Skin|.* Skin Unlocker)(?: \(.*\))?$/i),
slotType: 10,
virtualSlotType: 42027,
tier: -1,
bagType: 8
},
// skipping greater/minor hpmp
finespirits: {
sheet: [280, 40],
displayName: 'Fine Spirits',
slotType: 10,
virtualSlotType: 42017,
tier: 3,
bagType: 2
},
testing: {
sheet: [760, 40],
displayName: 'Testing/Dev',
name: new RegExp(/^((?!Effusion of .*).*)(Level 20 Unlocker|Crashy|XP Booster Test|Kingdom Skins .*|Parasite Chambers permakey|Pet Form Stone|Cursed Crown Teleporter|Realm Closer|Godlands Teleporter|Test Guill Spawner|FR Test permakey|FR God Spawner|Ice Cave permakey|Inner Sanctum Permakey|Apple of Semi Maxening|Gift of Krathan|Apple Of Extreme Maxening|Level Chicken|Fame Chicken|LH Lost Halls Debug Item|Lost Halls PermaKey|Guild Hall .*|Dragon Buddies|Enemy Spawner|Tincture of Fear|Tincture of Courage|Testing Gift|Greater Health Potion|Greater Magic Potion|Ivory Wyvern Key|.* Goodie Bag|Oryx Horde key|Oryx Mystery Gift|Wine Cellar Key|Cult Key|Oryx Chamber Key|Skeleton Key|Void Key|Court of Oryx Key|Oryx Chicken Chamber Key|Oryx's Castle Key)$/i),
virtualSlotType: 42025,
slotType: 10
},
keys: {
sheet: [120, 40],
name: new RegExp(/^.* Key(?: \(.*\))?$/i),
slotType: 10,
virtualSlotType: 42013,
tier: -1,
bagType: 8,
soulbound: true,
utst: 0
},
helpfulconsumables: {
sheet: [400, 40],
displayName: 'Helpful',
slotType: 10,
virtualSlotType: 42020,
name: new RegExp(/^((?!snowball|.* firecracker|Backpack|Santa's Bag).*)$/i),
tier: -1,
bagType: 2,
include: new RegExp(/^(?:Santa's Sleigh|Egg Nog|Fruitcake|Candy Cane|Figgy Pudding|Mistletoe|Elixir of .*|Effusion of .*)$/i)
},
unlockers: {
sheet: [360, 40],
slotType: 10,
virtualSlotType: 42019,
name: new RegExp(/^((?!Snowball|Paddy's Flying Hat|Rainbow Clover|(?:Small|Large) Firecracker).*)$/i),
tier: -1,
bagType: [2, 6],
soulbound: true,
include: new RegExp(/^(?:Backpack|Santa's Bag|Char Slot Unlocker|Vault Chest Unlocker)$/i)
},
eventitems: {
sheet: [480, 40],
displayName: 'Event Items',
slotType: 10,
virtualSlotType: 42022,
name: new RegExp(/^((?!Mark of .*).*)$/i),
tier: -1,
bagType: 7,
soulbound: true,
include: new RegExp(/^(?:Love Letter .*)$/)
},
marks: {
sheet: [520, 40],
slotType: 10,
virtualSlotType: 42028,
name: new RegExp(/^(?:Mark of .*)$/i)
},
tarot: {
sheet: [560, 40],
displayName: 'Tarot Cards',
name: new RegExp(/^.* Tarot Card$/i),
slotType: 10,
virtualSlotType: 42023,
tier: -1,
bagType: 7,
soulbound: false,
utst: 0
},
treasures: {
sheet: [600, 40],
displayName: 'Treasure',
name: new RegExp(/^((?!Heart).)*$/i),
slotType: 10,
virtualSlotType: 42024,
tier: -1,
bagType: 7,
soulbound: false,
utst: 0
},
assistants: {
sheet: [440, 40],
displayName: 'Loot/Exp',
virtualSlotType: 42021,
name: new RegExp(/^(XP Booster.*?|Loot.*Potion|.* Chest|Lucky Clover)$/i),
slotType: 10,
tier: -1,
bagType: 8
},
petfood: {
sheet: [680, 40],
displayName: 'Pet Food',
virtualSlotType: 42026,
name: new RegExp(/^((?!Apple of Semi Maxening|Level Chicken|Snowball|Valentine Launcher|Treasure Map|Beach Ball|Level 20 Unlocker).)*$/i),
slotType: 10,
tier: -1,
bagType: 8,
feedPower: {
gte: 150,
lte: 20000
},
soulbound: true
},
other: {
sheet: [800, 40],
displayName: 'Uncategorized',
virtualSlotType: 42029,
slotType: 10
},
spells: {slotType: 11, sheet: [720, 0]},
seals: {slotType: 12, sheet: [480, 0]},
cloaks: {slotType: 13, sheet: [520, 0]},
robes: {slotType: 14, sheet: [40, 40]},
quivers: {slotType: 15, sheet: [640, 0]},
helms: {slotType: 16, sheet: [440, 0]},
staves: {slotType: 17, sheet: [280, 0]},
poisons: {slotType: 18, sheet: [560, 0]},
skulls: {slotType: 19, sheet: [760, 0]},
traps: {slotType: 20, sheet: [680, 0]},
orbs: {slotType: 21, sheet: [800, 0]},
prisms: {slotType: 22, sheet: [600, 0]},
scepters: {slotType: 23, sheet: [880, 0]},
katanas: {slotType: 24, sheet: [360, 0]},
stars: {slotType: 25, sheet: [920, 0]},
eggs: {slotType: 26, sheet: [840, 40]}
};
window.itemsSlotTypeMap = itemsSlotTypeMap;