From 44b7615fbeec8091d037119ba084344a68db65d9 Mon Sep 17 00:00:00 2001 From: Yunfan Li Date: Mon, 8 Apr 2024 21:38:36 +0800 Subject: [PATCH] Mod equip score calculation --- src/PlayerbotFactory.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/PlayerbotFactory.cpp b/src/PlayerbotFactory.cpp index d9b3b314..d7f08b00 100644 --- a/src/PlayerbotFactory.cpp +++ b/src/PlayerbotFactory.cpp @@ -2885,7 +2885,7 @@ void PlayerbotFactory::InitGlyphs(bool increment) if (proto->RequiredLevel > bot->GetLevel()) continue; - + uint32 glyph = 0; for (uint32 spell = 0; spell < MAX_ITEM_PROTO_SPELLS; spell++) { @@ -3669,12 +3669,12 @@ float PlayerbotFactory::CalculateItemScore(uint32 item_id, Player* bot) { case SPELL_AURA_MOD_DAMAGE_DONE: // case SPELL_AURA_MOD_HEALING_DONE: duplicated - spell_power += spellInfo->Effects[i].BasePoints + 1; + spell_power += (spellInfo->Effects[i].BasePoints + 1) * 0.2; break; case SPELL_AURA_MOD_ATTACK_POWER: - attack_power += spellInfo->Effects[i].BasePoints + 1; + attack_power += (spellInfo->Effects[i].BasePoints + 1) * 0.2; case SPELL_AURA_MOD_SHIELD_BLOCKVALUE: - block += spellInfo->Effects[i].BasePoints + 1; + block += (spellInfo->Effects[i].BasePoints + 1) * 0.2; default: break; }