|
| 1 | +import { InventorySlot } from '@/enums/inventory-slot'; |
| 2 | +import type { Character } from '@/types/character'; |
| 3 | + |
| 4 | +// SpellItemEnchantment.db2 |
| 5 | +export const validEnchants: Record<number, number[]> = { |
| 6 | + [InventorySlot.MainHand]: [ |
| 7 | + 3368, // Rune of the Fallen Crusader [DK] |
| 8 | + 5870, // Rune of the Fallen Crusader [DK] |
| 9 | + // 6243, // Rune of Hysteria [DK] |
| 10 | + 3370, // Rune of Razorice [DK] |
| 11 | + 5869, // Rune of Razorice [DK] |
| 12 | + 6241, // Rune of Sanguination [DK] |
| 13 | + 3847, // Rune of the Stoneskin Gargoyle [DK] |
| 14 | + |
| 15 | + 8038, // Acuity of the Ren'dorei 1 |
| 16 | + 8039, // Acuity of the Ren'dorei 2 |
| 17 | + 8040, // Arcane Mastery 1 |
| 18 | + 8041, // Arcane Mastery 2 |
| 19 | + 7982, // Berserker's Rage 1 |
| 20 | + 7983, // Berserker's Rage 2 |
| 21 | + 8036, // Flames of the Sin'dorei 1 |
| 22 | + 8037, // Flames of the Sin'dorei 2 |
| 23 | + 7980, // Jan'alai's Precision 1 |
| 24 | + 7981, // Jan'alai's Precision 2 |
| 25 | + 7978, // Strength of Halazzi 1 |
| 26 | + 7979, // Strength of Halazzi 2 |
| 27 | + 8010, // Worldsoul Aegis 1 |
| 28 | + 8009, // Worldsoul Aegis 2 |
| 29 | + 8008, // Worldsoul Cradle 1 |
| 30 | + 8007, // Worldsoul Cradle 2 |
| 31 | + 8010, // Worldsoul Tenacity 1 |
| 32 | + 8011, // Worldsoul Tenacity 2 |
| 33 | + ], |
| 34 | + |
| 35 | + [InventorySlot.Head]: [ |
| 36 | + 7990, // Empowered Blessing of Speed 1 |
| 37 | + 7991, // Empowered Blessing of Speed 1 |
| 38 | + 7960, // Empowered Hex of Leeching 1 |
| 39 | + 7961, // Empowered Hex of Leeching 1 |
| 40 | + 8016, // Empowered Rune of Avoidance 1 |
| 41 | + 8017, // Empowered Rune of Avoidance 1 |
| 42 | + ], |
| 43 | + |
| 44 | + [InventorySlot.Shoulders]: [ |
| 45 | + 7972, // Akil'zon's Swiftness 1 |
| 46 | + 7973, // Akil'zon's Swiftness 2 |
| 47 | + 8000, // Amirdrassil's Grace 1 |
| 48 | + 8001, // Amirdrassil's Grace 2 |
| 49 | + 8030, // Silvermoon's Mending 1 |
| 50 | + 8031, // Silvermoon's Mending 2 |
| 51 | + ], |
| 52 | + |
| 53 | + [InventorySlot.Chest]: [ |
| 54 | + 7956, // Mark of Nalorakk 1 |
| 55 | + 7957, // Mark of Nalorakk 2 |
| 56 | + 8012, // Mark of the Magister 1 |
| 57 | + 8013, // Mark of the Magister 2 |
| 58 | + 7984, // Mark of the Rootwarden 1 |
| 59 | + 7985, // Mark of the Rootwarden 2 |
| 60 | + 7986, // Mark of the Worldsoul 1 |
| 61 | + 7987, // Mark of the Worldsoul 2 |
| 62 | + ], |
| 63 | + |
| 64 | + [InventorySlot.Legs]: [ |
| 65 | + 7936, // Arcanoweave Spellthread 1 |
| 66 | + 7937, // Arcanoweave Spellthread 2 |
| 67 | + 8162, // Blood Knight's Armor Kit 1 |
| 68 | + 8163, // Blood Knight's Armor Kit 2 |
| 69 | + 8158, // Forest Hunter's Armor Kit 1 |
| 70 | + 8159, // Forest Hunter's Armor Kit 2 |
| 71 | + 7934, // Sunfire Silk Spellthread 1 |
| 72 | + 7935, // Sunfire Silk Spellthread 2 |
| 73 | + ], |
| 74 | + |
| 75 | + [InventorySlot.Feet]: [ |
| 76 | + 8018, // Farstrider's Hunt 1 |
| 77 | + 8019, // Farstrider's Hunt 2 |
| 78 | + 7962, // Lynx's Dexterity 1 |
| 79 | + 7963, // Lynx's Dexterity 2 |
| 80 | + 7992, // Shaladrassil's Roots 1 |
| 81 | + 7993, // Shaladrassil's Roots 2 |
| 82 | + ], |
| 83 | + |
| 84 | + [InventorySlot.Ring1]: [ |
| 85 | + 7966, // Eyes of the Eagle 1 |
| 86 | + 7967, // Eyes of the Eagle 2 |
| 87 | + 7996, // Nature's Fury 1 |
| 88 | + 7997, // Nature's Fury 2 |
| 89 | + 8024, // Silvermoon's Alacrity 1 |
| 90 | + 8025, // Silvermoon's Alacrity 2 |
| 91 | + 8026, // Silvermoon's Tenacity 1 |
| 92 | + 8027, // Silvermoon's Tenacity 2 |
| 93 | + 7968, // Zul'jin's Mastery 1 |
| 94 | + 7969, // Zul'jin's Mastery 2 |
| 95 | + ], |
| 96 | +}; |
| 97 | + |
| 98 | +export const specialValidEnchants: Record<number, SpecialValidEnchant> = { |
| 99 | + // FIXME |
| 100 | + /*[InventorySlot.Hands]: { |
| 101 | + enchants: [ |
| 102 | + 6210, // Eternal Strength |
| 103 | + ], |
| 104 | + checkFunc: (character: Character) => |
| 105 | + specializationMap[character.activeSpecId]?.mainStat === PrimaryStat.Strength |
| 106 | + }, |
| 107 | +
|
| 108 | + [InventorySlot.Wrist]: { |
| 109 | + enchants: [ |
| 110 | + 6220, // Eternal Intellect |
| 111 | + ], |
| 112 | + checkFunc: (character: Character) => |
| 113 | + specializationMap[character.activeSpecId]?.mainStat === PrimaryStat.Intellect |
| 114 | + }, |
| 115 | +
|
| 116 | + [InventorySlot.Feet]: { |
| 117 | + enchants: [ |
| 118 | + 6211, // Eternal Agility |
| 119 | + ], |
| 120 | + checkFunc: (character: Character) => |
| 121 | + specializationMap[character.activeSpecId]?.mainStat === PrimaryStat.Agility |
| 122 | + },*/ |
| 123 | +}; |
| 124 | + |
| 125 | +interface SpecialValidEnchant { |
| 126 | + enchants: number[]; |
| 127 | + checkFunc: (character: Character) => boolean; |
| 128 | +} |
0 commit comments