[Strategy] Rename "assist dps" to "healer dps"

This commit is contained in:
Yunfan Li
2024-10-04 21:44:39 +08:00
parent 529db3e754
commit 11377436cd
13 changed files with 25 additions and 25 deletions

View File

@@ -394,7 +394,7 @@ void AiFactory::AddDefaultCombatStrategies(Player* player, PlayerbotAI* const fa
{ {
if (sPlayerbotAIConfig->autoSaveMana) if (sPlayerbotAIConfig->autoSaveMana)
engine->addStrategy("save mana", false); engine->addStrategy("save mana", false);
engine->addStrategy("assist dps", false); engine->addStrategy("healer dps", false);
} }
if (facade->IsRealPlayer() || sRandomPlayerbotMgr->IsRandomBot(player)) if (facade->IsRealPlayer() || sRandomPlayerbotMgr->IsRandomBot(player))
{ {

View File

@@ -34,7 +34,7 @@ public:
creators["buff"] = &DruidStrategyFactoryInternal::buff; creators["buff"] = &DruidStrategyFactoryInternal::buff;
creators["boost"] = &DruidStrategyFactoryInternal::boost; creators["boost"] = &DruidStrategyFactoryInternal::boost;
creators["cc"] = &DruidStrategyFactoryInternal::cc; creators["cc"] = &DruidStrategyFactoryInternal::cc;
creators["assist dps"] = &DruidStrategyFactoryInternal::assist_dps; creators["healer dps"] = &DruidStrategyFactoryInternal::healer_dps;
} }
private: private:
@@ -47,7 +47,7 @@ private:
static Strategy* buff(PlayerbotAI* botAI) { return new GenericDruidBuffStrategy(botAI); } static Strategy* buff(PlayerbotAI* botAI) { return new GenericDruidBuffStrategy(botAI); }
static Strategy* boost(PlayerbotAI* botAI) { return new DruidBoostStrategy(botAI); } static Strategy* boost(PlayerbotAI* botAI) { return new DruidBoostStrategy(botAI); }
static Strategy* cc(PlayerbotAI* botAI) { return new DruidCcStrategy(botAI); } static Strategy* cc(PlayerbotAI* botAI) { return new DruidCcStrategy(botAI); }
static Strategy* assist_dps(PlayerbotAI* botAI) { return new DruidAssistDpsStrategy(botAI); } static Strategy* healer_dps(PlayerbotAI* botAI) { return new DruidHealerDpsStrategy(botAI); }
}; };
class DruidDruidStrategyFactoryInternal : public NamedObjectContext<Strategy> class DruidDruidStrategyFactoryInternal : public NamedObjectContext<Strategy>

View File

@@ -153,7 +153,7 @@ void DruidCcStrategy::InitTriggers(std::vector<TriggerNode*>& triggers)
"hibernate", NextAction::array(0, new NextAction("hibernate on cc", ACTION_HIGH + 3), nullptr))); "hibernate", NextAction::array(0, new NextAction("hibernate on cc", ACTION_HIGH + 3), nullptr)));
} }
void DruidAssistDpsStrategy::InitTriggers(std::vector<TriggerNode*>& triggers) void DruidHealerDpsStrategy::InitTriggers(std::vector<TriggerNode*>& triggers)
{ {
triggers.push_back( triggers.push_back(
new TriggerNode("healer should attack", new TriggerNode("healer should attack",

View File

@@ -46,13 +46,13 @@ public:
std::string const getName() override { return "cc"; } std::string const getName() override { return "cc"; }
}; };
class DruidAssistDpsStrategy : public Strategy class DruidHealerDpsStrategy : public Strategy
{ {
public: public:
DruidAssistDpsStrategy(PlayerbotAI* botAI) : Strategy(botAI) {} DruidHealerDpsStrategy(PlayerbotAI* botAI) : Strategy(botAI) {}
void InitTriggers(std::vector<TriggerNode*>& triggers) override; void InitTriggers(std::vector<TriggerNode*>& triggers) override;
std::string const getName() override { return "assist dps"; } std::string const getName() override { return "healer dps"; }
}; };
#endif #endif

View File

@@ -72,7 +72,7 @@ void PaladinCcStrategy::InitTriggers(std::vector<TriggerNode*>& triggers)
new TriggerNode("turn undead", NextAction::array(0, new NextAction("turn undead", ACTION_HIGH + 1), nullptr))); new TriggerNode("turn undead", NextAction::array(0, new NextAction("turn undead", ACTION_HIGH + 1), nullptr)));
} }
void PaladinAssistDpsStrategy::InitTriggers(std::vector<TriggerNode*>& triggers) void PaladinHealerDpsStrategy::InitTriggers(std::vector<TriggerNode*>& triggers)
{ {
triggers.push_back( triggers.push_back(
new TriggerNode("healer should attack", new TriggerNode("healer should attack",

View File

@@ -46,13 +46,13 @@ public:
std::string const getName() override { return "cc"; } std::string const getName() override { return "cc"; }
}; };
class PaladinAssistDpsStrategy : public Strategy class PaladinHealerDpsStrategy : public Strategy
{ {
public: public:
PaladinAssistDpsStrategy(PlayerbotAI* botAI) : Strategy(botAI) {} PaladinHealerDpsStrategy(PlayerbotAI* botAI) : Strategy(botAI) {}
void InitTriggers(std::vector<TriggerNode*>& triggers) override; void InitTriggers(std::vector<TriggerNode*>& triggers) override;
std::string const getName() override { return "assist dps"; } std::string const getName() override { return "healer dps"; }
}; };
#endif #endif

View File

@@ -25,7 +25,7 @@ public:
creators["boost"] = &PaladinStrategyFactoryInternal::boost; creators["boost"] = &PaladinStrategyFactoryInternal::boost;
creators["cc"] = &PaladinStrategyFactoryInternal::cc; creators["cc"] = &PaladinStrategyFactoryInternal::cc;
creators["bthreat"] = &PaladinStrategyFactoryInternal::bthreat; creators["bthreat"] = &PaladinStrategyFactoryInternal::bthreat;
creators["assist dps"] = &PaladinStrategyFactoryInternal::assist_dps; creators["healer dps"] = &PaladinStrategyFactoryInternal::healer_dps;
} }
private: private:
@@ -34,7 +34,7 @@ private:
static Strategy* boost(PlayerbotAI* botAI) { return new PaladinBoostStrategy(botAI); } static Strategy* boost(PlayerbotAI* botAI) { return new PaladinBoostStrategy(botAI); }
static Strategy* cc(PlayerbotAI* botAI) { return new PaladinCcStrategy(botAI); } static Strategy* cc(PlayerbotAI* botAI) { return new PaladinCcStrategy(botAI); }
static Strategy* bthreat(PlayerbotAI* botAI) { return new PaladinBuffThreatStrategy(botAI); } static Strategy* bthreat(PlayerbotAI* botAI) { return new PaladinBuffThreatStrategy(botAI); }
static Strategy* assist_dps(PlayerbotAI* botAI) { return new PaladinAssistDpsStrategy(botAI); } static Strategy* healer_dps(PlayerbotAI* botAI) { return new PaladinHealerDpsStrategy(botAI); }
}; };
class PaladinResistanceStrategyFactoryInternal : public NamedObjectContext<Strategy> class PaladinResistanceStrategyFactoryInternal : public NamedObjectContext<Strategy>

View File

@@ -88,7 +88,7 @@ void PriestCcStrategy::InitTriggers(std::vector<TriggerNode*>& triggers)
new TriggerNode("shackle undead", NextAction::array(0, new NextAction("shackle undead", 31.0f), nullptr))); new TriggerNode("shackle undead", NextAction::array(0, new NextAction("shackle undead", 31.0f), nullptr)));
} }
void PriestAssistDpsStrategy::InitTriggers(std::vector<TriggerNode*>& triggers) void PriestHealerDpsStrategy::InitTriggers(std::vector<TriggerNode*>& triggers)
{ {
triggers.push_back( triggers.push_back(
new TriggerNode("healer should attack", new TriggerNode("healer should attack",

View File

@@ -46,13 +46,13 @@ public:
std::string const getName() override { return "cc"; } std::string const getName() override { return "cc"; }
}; };
class PriestAssistDpsStrategy : public Strategy class PriestHealerDpsStrategy : public Strategy
{ {
public: public:
PriestAssistDpsStrategy(PlayerbotAI* botAI) : Strategy(botAI) {} PriestHealerDpsStrategy(PlayerbotAI* botAI) : Strategy(botAI) {}
void InitTriggers(std::vector<TriggerNode*>& triggers) override; void InitTriggers(std::vector<TriggerNode*>& triggers) override;
std::string const getName() override { return "assist dps"; } std::string const getName() override { return "healer dps"; }
}; };
#endif #endif

View File

@@ -31,7 +31,7 @@ public:
creators["boost"] = &PriestStrategyFactoryInternal::boost; creators["boost"] = &PriestStrategyFactoryInternal::boost;
creators["rshadow"] = &PriestStrategyFactoryInternal::rshadow; creators["rshadow"] = &PriestStrategyFactoryInternal::rshadow;
creators["cc"] = &PriestStrategyFactoryInternal::cc; creators["cc"] = &PriestStrategyFactoryInternal::cc;
creators["assist dps"] = &PriestStrategyFactoryInternal::assist_dps; creators["healer dps"] = &PriestStrategyFactoryInternal::healer_dps;
} }
private: private:
@@ -44,7 +44,7 @@ private:
static Strategy* pull(PlayerbotAI* botAI) { return new PullStrategy(botAI, "shoot"); } static Strategy* pull(PlayerbotAI* botAI) { return new PullStrategy(botAI, "shoot"); }
static Strategy* shadow_debuff(PlayerbotAI* botAI) { return new ShadowPriestDebuffStrategy(botAI); } static Strategy* shadow_debuff(PlayerbotAI* botAI) { return new ShadowPriestDebuffStrategy(botAI); }
static Strategy* cure(PlayerbotAI* botAI) { return new PriestCureStrategy(botAI); } static Strategy* cure(PlayerbotAI* botAI) { return new PriestCureStrategy(botAI); }
static Strategy* assist_dps(PlayerbotAI* botAI) { return new PriestAssistDpsStrategy(botAI); } static Strategy* healer_dps(PlayerbotAI* botAI) { return new PriestHealerDpsStrategy(botAI); }
}; };
class PriestCombatStrategyFactoryInternal : public NamedObjectContext<Strategy> class PriestCombatStrategyFactoryInternal : public NamedObjectContext<Strategy>

View File

@@ -164,7 +164,7 @@ void ShamanCureStrategy::InitTriggers(std::vector<TriggerNode*>& triggers)
NextAction::array(0, new NextAction("cleanse spirit curse on party", 23.0f), nullptr))); NextAction::array(0, new NextAction("cleanse spirit curse on party", 23.0f), nullptr)));
} }
void ShamanAssistDpsStrategy::InitTriggers(std::vector<TriggerNode*>& triggers) void ShamanHealerDpsStrategy::InitTriggers(std::vector<TriggerNode*>& triggers)
{ {
triggers.push_back( triggers.push_back(
new TriggerNode("healer should attack", new TriggerNode("healer should attack",

View File

@@ -45,13 +45,13 @@ public:
std::string const getName() override { return "cure"; } std::string const getName() override { return "cure"; }
}; };
class ShamanAssistDpsStrategy : public Strategy class ShamanHealerDpsStrategy : public Strategy
{ {
public: public:
ShamanAssistDpsStrategy(PlayerbotAI* botAI) : Strategy(botAI) {} ShamanHealerDpsStrategy(PlayerbotAI* botAI) : Strategy(botAI) {}
void InitTriggers(std::vector<TriggerNode*>& triggers) override; void InitTriggers(std::vector<TriggerNode*>& triggers) override;
std::string const getName() override { return "assist dps"; } std::string const getName() override { return "healer dps"; }
}; };
#endif #endif

View File

@@ -26,7 +26,7 @@ public:
creators["melee aoe"] = &ShamanStrategyFactoryInternal::melee_aoe; creators["melee aoe"] = &ShamanStrategyFactoryInternal::melee_aoe;
creators["caster aoe"] = &ShamanStrategyFactoryInternal::caster_aoe; creators["caster aoe"] = &ShamanStrategyFactoryInternal::caster_aoe;
creators["cure"] = &ShamanStrategyFactoryInternal::cure; creators["cure"] = &ShamanStrategyFactoryInternal::cure;
creators["assist dps"] = &ShamanStrategyFactoryInternal::assist_dps; creators["healer dps"] = &ShamanStrategyFactoryInternal::healer_dps;
} }
private: private:
@@ -35,7 +35,7 @@ private:
static Strategy* melee_aoe(PlayerbotAI* botAI) { return new MeleeAoeShamanStrategy(botAI); } static Strategy* melee_aoe(PlayerbotAI* botAI) { return new MeleeAoeShamanStrategy(botAI); }
static Strategy* caster_aoe(PlayerbotAI* botAI) { return new CasterAoeShamanStrategy(botAI); } static Strategy* caster_aoe(PlayerbotAI* botAI) { return new CasterAoeShamanStrategy(botAI); }
static Strategy* cure(PlayerbotAI* botAI) { return new ShamanCureStrategy(botAI); } static Strategy* cure(PlayerbotAI* botAI) { return new ShamanCureStrategy(botAI); }
static Strategy* assist_dps(PlayerbotAI* botAI) { return new ShamanAssistDpsStrategy(botAI); } static Strategy* healer_dps(PlayerbotAI* botAI) { return new ShamanHealerDpsStrategy(botAI); }
}; };
class ShamanBuffStrategyFactoryInternal : public NamedObjectContext<Strategy> class ShamanBuffStrategyFactoryInternal : public NamedObjectContext<Strategy>