From 74d5c7350cc3d8372db4a1f05b89cd9fb3a0a039 Mon Sep 17 00:00:00 2001 From: rosenrusinov Date: Tue, 19 Mar 2024 23:13:44 +0100 Subject: [PATCH] add spell damage to hunter display stats --- ui/hunter/sim.ts | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/ui/hunter/sim.ts b/ui/hunter/sim.ts index ed5cd6a867..d598c36f35 100644 --- a/ui/hunter/sim.ts +++ b/ui/hunter/sim.ts @@ -33,6 +33,7 @@ const SPEC_CONFIG = registerSpecConfig(Spec.SpecHunter, { Stat.StatArmorPenetration, Stat.StatMP5, Stat.StatSpellPower, + Stat.StatSpellDamage, Stat.StatNaturePower, Stat.StatArcanePower, ], @@ -54,22 +55,23 @@ const SPEC_CONFIG = registerSpecConfig(Spec.SpecHunter, { Stat.StatArmorPenetration, Stat.StatMP5, Stat.StatSpellPower, + Stat.StatSpellDamage, Stat.StatNaturePower, ], modifyDisplayStats: (player: Player) => { let stats = new Stats(); stats = stats.addStat(Stat.StatMeleeCrit, player.getTalents().lethalShots * 1 * Mechanics.MELEE_CRIT_RATING_PER_CRIT_CHANCE); - const rangedWeapon = player.getEquippedItem(ItemSlot.ItemSlotRanged); - if (rangedWeapon?.enchant?.effectId == 3608) { - stats = stats.addStat(Stat.StatMeleeCrit, 40); - } - if (player.getRace() == Race.RaceDwarf && rangedWeapon?.item.rangedWeaponType == RangedWeaponType.RangedWeaponTypeGun) { - stats = stats.addStat(Stat.StatMeleeCrit, 1 * Mechanics.MELEE_CRIT_RATING_PER_CRIT_CHANCE); - } - if (player.getRace() == Race.RaceTroll && rangedWeapon?.item.rangedWeaponType == RangedWeaponType.RangedWeaponTypeBow) { - stats = stats.addStat(Stat.StatMeleeCrit, 1 * Mechanics.MELEE_CRIT_RATING_PER_CRIT_CHANCE); - } + // const rangedWeapon = player.getEquippedItem(ItemSlot.ItemSlotRanged); + // if (rangedWeapon?.enchant?.effectId == 3608) { + // stats = stats.addStat(Stat.StatMeleeCrit, 40); + // } + // if (player.getRace() == Race.RaceDwarf && rangedWeapon?.item.rangedWeaponType == RangedWeaponType.RangedWeaponTypeGun) { + // stats = stats.addStat(Stat.StatMeleeCrit, 1 * Mechanics.MELEE_CRIT_RATING_PER_CRIT_CHANCE); + // } + // if (player.getRace() == Race.RaceTroll && rangedWeapon?.item.rangedWeaponType == RangedWeaponType.RangedWeaponTypeBow) { + // stats = stats.addStat(Stat.StatMeleeCrit, 1 * Mechanics.MELEE_CRIT_RATING_PER_CRIT_CHANCE); + // } return { talents: stats,