Fix SPEC_TAB names

This commit is contained in:
crow
2025-09-27 23:11:47 -05:00
parent 23d9931f65
commit e525c22d85
4 changed files with 8 additions and 8 deletions

View File

@@ -295,7 +295,7 @@ void AiFactory::AddDefaultCombatStrategies(Player* player, PlayerbotAI* const fa
{ {
engine->addStrategiesNoInit("dps", "shadow debuff", "shadow aoe", nullptr); engine->addStrategiesNoInit("dps", "shadow debuff", "shadow aoe", nullptr);
} }
else if (tab == PRIEST_TAB_DISIPLINE) else if (tab == PRIEST_TAB_DISCIPLINE)
{ {
engine->addStrategiesNoInit("heal", nullptr); engine->addStrategiesNoInit("heal", nullptr);
} }
@@ -607,7 +607,7 @@ void AiFactory::AddDefaultNonCombatStrategies(Player* player, PlayerbotAI* const
nonCombatEngine->addStrategy("dps assist", false); nonCombatEngine->addStrategy("dps assist", false);
break; break;
case CLASS_WARLOCK: case CLASS_WARLOCK:
if (tab == WARLOCK_TAB_AFFLICATION) if (tab == WARLOCK_TAB_AFFLICTION)
{ {
nonCombatEngine->addStrategiesNoInit("felhunter", "spellstone", nullptr); nonCombatEngine->addStrategiesNoInit("felhunter", "spellstone", nullptr);
} }

View File

@@ -2085,7 +2085,7 @@ bool PlayerbotAI::IsHeal(Player* player, bool bySpec)
switch (player->getClass()) switch (player->getClass())
{ {
case CLASS_PRIEST: case CLASS_PRIEST:
if (tab == PRIEST_TAB_DISIPLINE || tab == PRIEST_TAB_HOLY) if (tab == PRIEST_TAB_DISCIPLINE || tab == PRIEST_TAB_HOLY)
{ {
return true; return true;
} }

View File

@@ -276,7 +276,7 @@ enum BotRoles : uint8
enum HUNTER_TABS enum HUNTER_TABS
{ {
HUNTER_TAB_BEASTMASTER, HUNTER_TAB_BEASTMASTERY,
HUNTER_TAB_MARKSMANSHIP, HUNTER_TAB_MARKSMANSHIP,
HUNTER_TAB_SURVIVAL, HUNTER_TAB_SURVIVAL,
}; };
@@ -285,12 +285,12 @@ enum ROGUE_TABS
{ {
ROGUE_TAB_ASSASSINATION, ROGUE_TAB_ASSASSINATION,
ROGUE_TAB_COMBAT, ROGUE_TAB_COMBAT,
ROGUE_TAB_SUBTLETY ROGUE_TAB_SUBTLETY,
}; };
enum PRIEST_TABS enum PRIEST_TABS
{ {
PRIEST_TAB_DISIPLINE, PRIEST_TAB_DISCIPLINE,
PRIEST_TAB_HOLY, PRIEST_TAB_HOLY,
PRIEST_TAB_SHADOW, PRIEST_TAB_SHADOW,
}; };
@@ -332,7 +332,7 @@ enum PALADIN_TABS
enum WARLOCK_TABS enum WARLOCK_TABS
{ {
WARLOCK_TAB_AFFLICATION, WARLOCK_TAB_AFFLICTION,
WARLOCK_TAB_DEMONOLOGY, WARLOCK_TAB_DEMONOLOGY,
WARLOCK_TAB_DESTRUCTION, WARLOCK_TAB_DESTRUCTION,
}; };

View File

@@ -184,7 +184,7 @@ void StatsWeightCalculator::GenerateBasicWeights(Player* player)
stats_weights_[STATS_TYPE_MELEE_DPS] += 0.01f; stats_weights_[STATS_TYPE_MELEE_DPS] += 0.01f;
stats_weights_[STATS_TYPE_RANGED_DPS] += 0.01f; stats_weights_[STATS_TYPE_RANGED_DPS] += 0.01f;
if (cls == CLASS_HUNTER && (tab == HUNTER_TAB_BEASTMASTER || tab == HUNTER_TAB_SURVIVAL)) if (cls == CLASS_HUNTER && (tab == HUNTER_TAB_BEASTMASTERY || tab == HUNTER_TAB_SURVIVAL))
{ {
stats_weights_[STATS_TYPE_AGILITY] += 2.5f; stats_weights_[STATS_TYPE_AGILITY] += 2.5f;
stats_weights_[STATS_TYPE_ATTACK_POWER] += 1.0f; stats_weights_[STATS_TYPE_ATTACK_POWER] += 1.0f;