-
Notifications
You must be signed in to change notification settings - Fork 32
/
Dictionaries.cs
423 lines (391 loc) · 16.4 KB
/
Dictionaries.cs
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
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
using System.Collections.Generic;
namespace Mag.Shared.Constants
{
public static class Dictionaries
{
/// <summary>
/// Returns a dictionary of skill ids vs names
/// </summary>
/// <returns></returns>
public static readonly Dictionary<int, string> SkillInfo = new Dictionary<int, string>
{
// This list was taken from the Alinco source
{ 0x1, "Axe" },
{ 0x2, "Bow" },
{ 0x3, "Crossbow" },
{ 0x4, "Dagger" },
{ 0x5, "Mace" },
{ 0x6, "Melee Defense" },
{ 0x7, "Missile Defense" },
{ 0x8, "Sling" },
{ 0x9, "Spear" },
{ 0xA, "Staff" },
{ 0xB, "Sword" },
{ 0xC, "Thrown Weapons" },
{ 0xD, "Unarmed Combat" },
{ 0xE, "Arcane Lore" },
{ 0xF, "Magic Defense" },
{ 0x10, "Mana Conversion" },
{ 0x12, "Item Tinkering" },
{ 0x13, "Assess Person" },
{ 0x14, "Deception" },
{ 0x15, "Healing" },
{ 0x16, "Jump" },
{ 0x17, "Lockpick" },
{ 0x18, "Run" },
{ 0x1B, "Assess Creature" },
{ 0x1C, "Weapon Tinkering" },
{ 0x1D, "Armor Tinkering" },
{ 0x1E, "Magic Item Tinkering" },
{ 0x1F, "Creature Enchantment" },
{ 0x20, "Item Enchantment" },
{ 0x21, "Life Magic" },
{ 0x22, "War Magic" },
{ 0x23, "Leadership" },
{ 0x24, "Loyalty" },
{ 0x25, "Fletching" },
{ 0x26, "Alchemy" },
{ 0x27, "Cooking" },
{ 0x28, "Salvaging" },
{ 0x29, "Two Handed Combat" },
{ 0x2A, "Gearcraft"},
{ 0x2B, "Void" },
{ 0x2C, "Heavy Weapons" },
{ 0x2D, "Light Weapons" },
{ 0x2E, "Finesse Weapons" },
{ 0x2F, "Missile Weapons" },
{ 0x30, "Shield" },
{ 0x31, "Dual Wield" },
{ 0x32, "Recklessness" },
{ 0x33, "Sneak Attack" },
{ 0x34, "Dirty Fighting" },
{ 0x35, "Challenge" },
{ 0x36, "Summoning" },
};
/// <summary>
/// Returns a dictionary of mastery ids vs names
/// </summary>
/// <returns></returns>
public static Dictionary<int, string> MasteryInfo = new Dictionary<int, string>
{
{ 1, "Unarmed Weapon" },
{ 2, "Sword" },
{ 3, "Axe" },
{ 4, "Mace" },
{ 5, "Spear" },
{ 6, "Dagger" },
{ 7, "Staff" },
{ 8, "Bow" },
{ 9, "Crossbow" },
{ 10, "Thrown" },
{ 11, "Two Handed Combat" },
};
/// <summary>
/// Returns a dictionary of attribute set ids vs names
/// </summary>
/// <returns></returns>
public static Dictionary<int, string> AttributeSetInfo = new Dictionary<int, string>
{
// This list was taken from Virindi Tank Loot Editor
// 01
{ 02, "Test"},
// 03
{ 04, "Carraida's Benediction"},
{ 05, "Noble Relic Set" },
{ 06, "Ancient Relic Set" },
{ 07, "Relic Alduressa Set" },
{ 08, "Shou-jen Set" },
{ 09, "Empyrean Rings Set" },
{ 10, "Arm, Mind, Heart Set" },
{ 11, "Coat of the Perfect Light Set" },
{ 12, "Leggings of Perfect Light Set" },
{ 13, "Soldier's Set" },
{ 14, "Adept's Set" },
{ 15, "Archer's Set" },
{ 16, "Defender's Set" },
{ 17, "Tinker's Set" },
{ 18, "Crafter's Set" },
{ 19, "Hearty Set" },
{ 20, "Dexterous Set" },
{ 21, "Wise Set" },
{ 22, "Swift Set" },
{ 23, "Hardenend Set" },
{ 24, "Reinforced Set" },
{ 25, "Interlocking Set" },
{ 26, "Flame Proof Set" },
{ 27, "Acid Proof Set" },
{ 28, "Cold Proof Set" },
{ 29, "Lightning Proof Set" },
{ 30, "Dedication Set" },
{ 31, "Gladiatorial Clothing Set" },
{ 32, "Ceremonial Clothing" },
{ 33, "Protective Clothing" },
{ 34, "Noobie Armor" },
{ 35, "Sigil of Defense" },
{ 36, "Sigil of Destruction" },
{ 37, "Sigil of Fury" },
{ 38, "Sigil of Growth" },
{ 39, "Sigil of Vigor" },
{ 40, "Heroic Protector Set" },
{ 41, "Heroic Destroyer Set" },
{ 42, "Olthoi Armor D Red" },
{ 43, "Olthoi Armor C Rat" },
{ 44, "Olthoi Armor C Red" },
{ 45, "Olthoi Armor D Rat" },
{ 46, "Upgraded Relic Alduressa Set" },
{ 47, "Upgraded Ancient Relic Set" },
{ 48, "Upgraded Noble Relic Set" },
{ 49, "Weave of Alchemy" },
{ 50, "Weave of Arcane Lore" },
{ 51, "Weave of Armor Tinkering" },
{ 52, "Weave of Assess Person" },
{ 53, "Weave of Light Weapons" },
{ 54, "Weave of Missile Weapons" },
{ 55, "Weave of Cooking" },
{ 56, "Weave of Creature Enchantment" },
{ 57, "Weave of Missile Weapons" },
{ 58, "Weave of Finesse" },
{ 59, "Weave of Deception" },
{ 60, "Weave of Fletching" },
{ 61, "Weave of Healing" },
{ 62, "Weave of Item Enchantment" },
{ 63, "Weave of Item Tinkering" },
{ 64, "Weave of Leadership" },
{ 65, "Weave of Life Magic" },
{ 66, "Weave of Loyalty" },
{ 67, "Weave of Light Weapons" },
{ 68, "Weave of Magic Defense" },
{ 69, "Weave of Magic Item Tinkering" },
{ 70, "Weave of Mana Conversion" },
{ 71, "Weave of Melee Defense" },
{ 72, "Weave of Missile Defense" },
{ 73, "Weave of Salvaging" },
{ 74, "Weave of Light Weapons" },
{ 75, "Weave of Light Weapons" },
{ 76, "Weave of Heavy Weapons" },
{ 77, "Weave of Missile Weapons" },
{ 78, "Weave of Two Handed Combat" },
{ 79, "Weave of Light Weapons" },
{ 80, "Weave of Void Magic" },
{ 81, "Weave of War Magic" },
{ 82, "Weave of Weapon Tinkering" },
{ 83, "Weave of Assess Creature " },
{ 84, "Weave of Dirty Fighting" },
{ 85, "Weave of Dual Wield" },
{ 86, "Weave of Recklessness" },
{ 87, "Weave of Shield" },
{ 88, "Weave of Sneak Attack" },
{ 89, "Ninja_New" },
{ 90, "Weave of Summoning" },
{ 91, "Shrouded Soul" },
{ 92, "Darkened Mind" },
{ 93, "Clouded Spirit" },
{ 94, "Minor Stinging Shrouded Soul" },
{ 95, "Minor Sparking Shrouded Soul" },
{ 96, "Minor Smoldering Shrouded Soul" },
{ 97, "Minor Shivering Shrouded Soul" },
{ 98, "Minor Stinging Darkened Mind" },
{ 99, "Minor Sparking Darkened Mind" },
{ 100, "Minor Smoldering Darkened Mind" },
{ 101, "Minor Shivering Darkened Mind" },
{ 102, "Minor Stinging Clouded Spirit" },
{ 103, "Minor Sparking Clouded Spirit" },
{ 104, "Minor Smoldering Clouded Spirit" },
{ 105, "Minor Shivering Clouded Spirit" },
{ 106, "Major Stinging Shrouded Soul" },
{ 107, "Major Sparking Shrouded Soul" },
{ 108, "Major Smoldering Shrouded Soul" },
{ 109, "Major Shivering Shrouded Soul" },
{ 110, "Major Stinging Darkened Mind" },
{ 111, "Major Sparking Darkened Mind" },
{ 112, "Major Smoldering Darkened Mind" },
{ 113, "Major Shivering Darkened Mind" },
{ 114, "Major Stinging Clouded Spirit" },
{ 115, "Major Sparking Clouded Spirit" },
{ 116, "Major Smoldering Clouded Spirit" },
{ 117, "Major Shivering Clouded Spirit" },
{ 118, "Blackfire Stinging Shrouded Soul" },
{ 119, "Blackfire Sparking Shrouded Soul" },
{ 120, "Blackfire Smoldering Shrouded Soul" },
{ 121, "Blackfire Shivering Shrouded Soul" },
{ 122, "Blackfire Stinging Darkened Mind" },
{ 123, "Blackfire Sparking Darkened Mind" },
{ 124, "Blackfire Smoldering Darkened Mind" },
{ 125, "Blackfire Shivering Darkened Mind" },
{ 126, "Blackfire Stinging Clouded Spirit" },
{ 127, "Blackfire Sparking Clouded Spirit" },
{ 128, "Blackfire Smoldering Clouded Spirit" },
{ 129, "Blackfire Shivering Clouded Spirit" },
{ 130, "Shimmering Shadows" },
};
/// <summary>
/// Returns a dictionary of material ids vs names
/// </summary>
/// <returns></returns>
public static Dictionary<int, string> MaterialInfo = new Dictionary<int, string>
{
{ 1, "Ceramic" },
{ 2, "Porcelain" },
// 3
{ 4, "Linen" },
{ 5, "Satin" },
{ 6, "Silk" },
{ 7, "Velvet" },
{ 8, "Wool" },
// 9
{ 10, "Agate" },
{ 11, "Amber" },
{ 12, "Amethyst" },
{ 13, "Aquamarine" },
{ 14, "Azurite" },
{ 15, "Black Garnet" },
{ 16, "Black Opal" },
{ 17, "Bloodstone" },
{ 18, "Carnelian" },
{ 19, "Citrine" },
{ 20, "Diamond" },
{ 21, "Emerald" },
{ 22, "Fire Opal" },
{ 23, "Green Garnet" },
{ 24, "Green Jade" },
{ 25, "Hematite" },
{ 26, "Imperial Topaz" },
{ 27, "Jet" },
{ 28, "Lapis Lazuli" },
{ 29, "Lavender Jade" },
{ 30, "Malachite" },
{ 31, "Moonstone" },
{ 32, "Onyx" },
{ 33, "Opal" },
{ 34, "Peridot" },
{ 35, "Red Garnet" },
{ 36, "Red Jade" },
{ 37, "Rose Quartz" },
{ 38, "Ruby" },
{ 39, "Sapphire" },
{ 40, "Smokey Quartz" },
{ 41, "Sunstone" },
{ 42, "Tiger Eye" },
{ 43, "Tourmaline" },
{ 44, "Turquoise" },
{ 45, "White Jade" },
{ 46, "White Quartz" },
{ 47, "White Sapphire" },
{ 48, "Yellow Garnet" },
{ 49, "Yellow Topaz" },
{ 50, "Zircon" },
{ 51, "Ivory" },
{ 52, "Leather" },
{ 53, "Armoredillo Hide" },
{ 54, "Gromnie Hide" },
{ 55, "Reed Shark Hide" },
// 56
{ 57, "Brass" },
{ 58, "Bronze" },
{ 59, "Copper" },
{ 60, "Gold" },
{ 61, "Iron" },
{ 62, "Pyreal" },
{ 63, "Silver" },
{ 64, "Steel" },
// 65
{ 66, "Alabaster" },
{ 67, "Granite" },
{ 68, "Marble" },
{ 69, "Obsidian" },
{ 70, "Sandstone" },
{ 71, "Serpentine" },
{ 73, "Ebony" },
{ 74, "Mahogany" },
{ 75, "Oak" },
{ 76, "Pine" },
{ 77, "Teak" },
};
public struct SpellInfo<T>
{
public readonly int Key;
public readonly T Change;
public readonly T Bonus;
public SpellInfo(int key, T change, T bonus = default(T))
{
Key = key;
Change = change;
Bonus = bonus;
}
}
// Taken from Decal.Adapter.Wrappers.LongValueKey
const int LongValueKey_MaxDamage = 218103842;
const int LongValueKey_ArmorLevel = 28;
public static readonly Dictionary<int, SpellInfo<int>> LongValueKeySpellEffects = new Dictionary<int, SpellInfo<int>>()
{
// In 2012 they removed these item spells and converted them to auras that are cast on the player, not on the item.
{ 1616, new SpellInfo<int>(LongValueKey_MaxDamage, 20)}, // Blood Drinker VI
{ 2096, new SpellInfo<int>(LongValueKey_MaxDamage, 22)}, // Infected Caress
//{ 5183, new SpellInfo<LongValueKey>(LongValueKey_MaxDamage, 22)}, // Incantation of Blood Drinker Pre Feb-2013
//{ 4395, new SpellInfo<LongValueKey>(LongValueKey_MaxDamage, 24, 2)}, // Incantation of Blood Drinker, this spell on the item adds 2 more points of damage over a user casted 8 Pre Feb-2013
{ 5183, new SpellInfo<int>(LongValueKey_MaxDamage, 24)}, // Incantation of Blood Drinker Post Feb-2013
{ 4395, new SpellInfo<int>(LongValueKey_MaxDamage, 24)}, // Incantation of Blood Drinker Post Feb-2013
{ 2598, new SpellInfo<int>(LongValueKey_MaxDamage, 2, 2)}, // Minor Blood Thirst
{ 2586, new SpellInfo<int>(LongValueKey_MaxDamage, 4, 4)}, // Major Blood Thirst
{ 4661, new SpellInfo<int>(LongValueKey_MaxDamage, 7, 7)}, // Epic Blood Thirst
{ 6089, new SpellInfo<int>(LongValueKey_MaxDamage, 10, 10)}, // Legendary Blood Thirst
{ 3688, new SpellInfo<int>(LongValueKey_MaxDamage, 300)}, // Prodigal Blood Drinker
{ 1486, new SpellInfo<int>(LongValueKey_ArmorLevel, 200)}, // Impenetrability VI
{ 2108, new SpellInfo<int>(LongValueKey_ArmorLevel, 220)}, // Brogard's Defiance
{ 4407, new SpellInfo<int>(LongValueKey_ArmorLevel, 240)}, // Incantation of Impenetrability
{ 2604, new SpellInfo<int>(LongValueKey_ArmorLevel, 20, 20)}, // Minor Impenetrability
{ 2592, new SpellInfo<int>(LongValueKey_ArmorLevel, 40, 40)}, // Major Impenetrability
{ 4667, new SpellInfo<int>(LongValueKey_ArmorLevel, 60, 60)}, // Epic Impenetrability
{ 6095, new SpellInfo<int>(LongValueKey_ArmorLevel, 80, 80)}, // Legendary Impenetrability
};
// Taken from Decal.Adapter.Wrappers.DoubleValueKey
const int DoubleValueKey_ElementalDamageVersusMonsters = 152;
const int DoubleValueKey_AttackBonus = 167772172;
const int DoubleValueKey_MeleeDefenseBonus = 29;
const int DoubleValueKey_ManaCBonus = 144;
public static readonly Dictionary<int, SpellInfo<double>> DoubleValueKeySpellEffects = new Dictionary<int, SpellInfo<double>>()
{
// In 2012 they removed these item spells and converted them to auras that are cast on the player, not on the item.
{ 3258, new SpellInfo<double>(DoubleValueKey_ElementalDamageVersusMonsters, .06)}, // Spirit Drinker VI
{ 3259, new SpellInfo<double>(DoubleValueKey_ElementalDamageVersusMonsters, .07)}, // Infected Spirit Caress
//{ 5182, new SpellInfo<double>(DoubleValueKey_ElementalDamageVersusMonsters, .07)}, // Incantation of Spirit Drinker Pre Feb-2013
//{ 4414, new SpellInfo<double>(DoubleValueKey_ElementalDamageVersusMonsters, .08, .01)}, // Incantation of Spirit Drinker, this spell on the item adds 1 more % of damage over a user casted 8 Pre Feb-2013
{ 5182, new SpellInfo<double>(DoubleValueKey_ElementalDamageVersusMonsters, .08)}, // Incantation of Spirit Drinker Post Feb-2013
{ 4414, new SpellInfo<double>(DoubleValueKey_ElementalDamageVersusMonsters, .08)}, // Incantation of Spirit Drinker, this spell on the item adds 1 more % of damage over a user casted 8 Post Feb-2013
{ 3251, new SpellInfo<double>(DoubleValueKey_ElementalDamageVersusMonsters, .01, .01)}, // Minor Spirit Thirst
{ 3250, new SpellInfo<double>(DoubleValueKey_ElementalDamageVersusMonsters, .03, .03)}, // Major Spirit Thirst
{ 4670, new SpellInfo<double>(DoubleValueKey_ElementalDamageVersusMonsters, .05, .05)}, // Epic Spirit Thirst
{ 6098, new SpellInfo<double>(DoubleValueKey_ElementalDamageVersusMonsters, .07, .07)}, // Legendary Spirit Thirst
{ 3735, new SpellInfo<double>(DoubleValueKey_ElementalDamageVersusMonsters, .15)}, // Prodigal Spirit Drinker
// In 2012 they removed these item spells and converted them to auras that are cast on the player, not on the item.
{ 1592, new SpellInfo<double>(DoubleValueKey_AttackBonus, .15)}, // Heart Seeker VI
{ 2106, new SpellInfo<double>(DoubleValueKey_AttackBonus, .17)}, // Elysa's Sight
{ 4405, new SpellInfo<double>(DoubleValueKey_AttackBonus, .20)}, // Incantation of Heart Seeker
{ 2603, new SpellInfo<double>(DoubleValueKey_AttackBonus, .03, .03)}, // Minor Heart Thirst
{ 2591, new SpellInfo<double>(DoubleValueKey_AttackBonus, .05, .05)}, // Major Heart Thirst
{ 4666, new SpellInfo<double>(DoubleValueKey_AttackBonus, .07, .07)}, // Epic Heart Thirst
{ 6094, new SpellInfo<double>(DoubleValueKey_AttackBonus, .09, .09)}, // Legendary Heart Thirst
// In 2012 they removed these item spells and converted them to auras that are cast on the player, not on the item.
{ 1605, new SpellInfo<double>(DoubleValueKey_MeleeDefenseBonus, .15)}, // Defender VI
{ 2101, new SpellInfo<double>(DoubleValueKey_MeleeDefenseBonus, .17)}, // Cragstone's Will
//{ 4400, new SpellInfo<double>(DoubleValueKey_MeleeDefenseBonus, .17)}, // Incantation of Defender Pre Feb-2013
{ 4400, new SpellInfo<double>(DoubleValueKey_MeleeDefenseBonus, .20)}, // Incantation of Defender Post Feb-2013
{ 2600, new SpellInfo<double>(DoubleValueKey_MeleeDefenseBonus, .03, .03)}, // Minor Defender
{ 3985, new SpellInfo<double>(DoubleValueKey_MeleeDefenseBonus, .04, .04)}, // Mukkir Sense
{ 2588, new SpellInfo<double>(DoubleValueKey_MeleeDefenseBonus, .05, .05)}, // Major Defender
{ 4663, new SpellInfo<double>(DoubleValueKey_MeleeDefenseBonus, .07, .07)}, // Epic Defender
{ 6091, new SpellInfo<double>(DoubleValueKey_MeleeDefenseBonus, .09, .09)}, // Legendary Defender
{ 3699, new SpellInfo<double>(DoubleValueKey_MeleeDefenseBonus, .25)}, // Prodigal Defender
// In 2012 they removed these item spells and converted them to auras that are cast on the player, not on the item.
{ 1480, new SpellInfo<double>(DoubleValueKey_ManaCBonus, 1.60)}, // Hermetic Link VI
{ 2117, new SpellInfo<double>(DoubleValueKey_ManaCBonus, 1.70)}, // Mystic's Blessing
{ 4418, new SpellInfo<double>(DoubleValueKey_ManaCBonus, 1.80)}, // Incantation of Hermetic Link
{ 3201, new SpellInfo<double>(DoubleValueKey_ManaCBonus, 1.05, 1.05)}, // Feeble Hermetic Link
{ 3199, new SpellInfo<double>(DoubleValueKey_ManaCBonus, 1.10, 1.10)}, // Minor Hermetic Link
{ 3202, new SpellInfo<double>(DoubleValueKey_ManaCBonus, 1.15, 1.15)}, // Moderate Hermetic Link
{ 3200, new SpellInfo<double>(DoubleValueKey_ManaCBonus, 1.20, 1.20)}, // Major Hermetic Link
{ 6086, new SpellInfo<double>(DoubleValueKey_ManaCBonus, 1.25, 1.25)}, // Epic Hermetic Link
{ 6087, new SpellInfo<double>(DoubleValueKey_ManaCBonus, 1.30, 1.30)}, // Legendary Hermetic Link
};
}
}