mirror of
https://github.com/mod-playerbots/mod-playerbots
synced 2025-11-29 15:58:20 +08:00
Compare commits
1 Commits
hermensbas
...
added-sham
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
91b8a43270 |
@@ -92,18 +92,10 @@ float StatsWeightCalculator::CalculateItem(uint32 itemId, int32 randomPropertyId
|
|||||||
CalculateSocketBonus(player_, proto);
|
CalculateSocketBonus(player_, proto);
|
||||||
|
|
||||||
if (enable_quality_blend_)
|
if (enable_quality_blend_)
|
||||||
{
|
// Blend with item quality and level
|
||||||
// Heirloom items scale with player level
|
weight_ *= PlayerbotFactory::CalcMixedGearScore(proto->ItemLevel, proto->Quality);
|
||||||
// Use player level as effective item level for heirlooms - Quality EPIC
|
|
||||||
// Else - Blend with item quality and level for normal items
|
|
||||||
if (proto->Quality == ITEM_QUALITY_HEIRLOOM)
|
|
||||||
weight_ *= PlayerbotFactory::CalcMixedGearScore(lvl, ITEM_QUALITY_EPIC);
|
|
||||||
else
|
|
||||||
weight_ *= PlayerbotFactory::CalcMixedGearScore(proto->ItemLevel, proto->Quality);
|
|
||||||
|
|
||||||
return weight_;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
return weight_;
|
||||||
}
|
}
|
||||||
|
|
||||||
float StatsWeightCalculator::CalculateEnchant(uint32 enchantId)
|
float StatsWeightCalculator::CalculateEnchant(uint32 enchantId)
|
||||||
|
|||||||
@@ -41,6 +41,11 @@ class ShamanCombatStrategyFactoryInternal : public NamedObjectContext<Strategy>
|
|||||||
public:
|
public:
|
||||||
ShamanCombatStrategyFactoryInternal() : NamedObjectContext<Strategy>(false, true)
|
ShamanCombatStrategyFactoryInternal() : NamedObjectContext<Strategy>(false, true)
|
||||||
{
|
{
|
||||||
|
creators["heal"] = &ShamanCombatStrategyFactoryInternal::resto;
|
||||||
|
creators["melee"] = &ShamanCombatStrategyFactoryInternal::enh;
|
||||||
|
creators["dps"] = &ShamanCombatStrategyFactoryInternal::enh;
|
||||||
|
creators["caster"] = &ShamanCombatStrategyFactoryInternal::ele;
|
||||||
|
//creators["offheal"] = &ShamanCombatStrategyFactoryInternal::offheal;
|
||||||
creators["resto"] = &ShamanCombatStrategyFactoryInternal::resto;
|
creators["resto"] = &ShamanCombatStrategyFactoryInternal::resto;
|
||||||
creators["enh"] = &ShamanCombatStrategyFactoryInternal::enh;
|
creators["enh"] = &ShamanCombatStrategyFactoryInternal::enh;
|
||||||
creators["ele"] = &ShamanCombatStrategyFactoryInternal::ele;
|
creators["ele"] = &ShamanCombatStrategyFactoryInternal::ele;
|
||||||
|
|||||||
Reference in New Issue
Block a user