[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

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

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)));
}
void DruidAssistDpsStrategy::InitTriggers(std::vector<TriggerNode*>& triggers)
void DruidHealerDpsStrategy::InitTriggers(std::vector<TriggerNode*>& triggers)
{
triggers.push_back(
new TriggerNode("healer should attack",

View File

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