mirror of
https://github.com/liyunfan1223/mod-playerbots.git
synced 2026-06-20 15:39:25 +02:00
Challenging Roar support (#2238)
<!-- Thank you for contributing to mod-playerbots, please make sure that you... 1. Submit your PR to the test-staging branch, not master. 2. Read the guidelines below before submitting. 3. Don't delete parts of this template. DESIGN PHILOSOPHY: We prioritize STABILITY, PERFORMANCE, AND PREDICTABILITY over behavioral realism. Every action and decision executes PER BOT AND PER TRIGGER. Small increases in logic complexity scale poorly across thousands of bots and negatively affect all. We prioritize a stable system over a smarter one. Bots don't need to behave perfectly; believable behavior is the goal, not human simulation. Default behavior must be cheap in processing; expensive behavior must be opt-in. Before submitting, make sure your changes aligns with these principles. --> ## Pull Request Description <!-- Describe what this change does and why it is needed --> Added Challenging Roar support to druid taunt spell Related with: #2002 ## How to Test the Changes <!-- - Step-by-step instructions to test the change. - Any required setup (e.g. multiple players, number of bots, specific configuration). - Expected behavior and how to verify it. --> - run dungeon with druid tank and monitor spell usage ## Impact Assessment <!-- As a generic test, before and after measure of pmon (playerbot pmon tick) can help you here. --> - Does this change increase per-bot/per-tick processing or risk scaling poorly with thousands of bots? - - [x] No, not at all - - [ ] Minimal impact (**explain below**) - - [ ] Moderate impact (**explain below**) - Does this change modify default bot behavior? - - [ ] No - - [x] Yes (**explain why**) Druid also use Challenging Roar as taunt spell - Does this change add new decision branches or increase maintenance complexity? - - [x] No - - [ ] Yes (**explain below**) ## Messages to Translate <!-- Bot messages have to be translatable, but you don't need to do the translations here. You only need to make sure the message is in a translatable format, and list in the table the message_key and the default English message. Search for GetBotTextOrDefault in the codebase for examples. --> - Does this change add bot messages to translate? - - [x] No - - [ ] Yes (**list messages in the table**) | Message key | Default message | | --------------- | ------------------ | | | | | | | ## AI Assistance <!-- AI assistance is allowed, but all submitted code must be fully understood, reviewed, and owned by the contributor. We expect contributors to be honest about what they do and do not understand. --> - Was AI assistance used while working on this change? - - [x] No - - [ ] Yes (**explain below**) <!-- If yes, please specify: - Purpose of usage (e.g. brainstorming, refactoring, documentation, code generation). - Which parts of the change were influenced or generated, and whether it was thoroughly reviewed. --> ## Final Checklist - - [x] Stability is not compromised. - - [x] Performance impact is understood, tested, and acceptable. - - [x] Added logic complexity is justified and explained. - - [x] Documentation updated if needed (Conf comments, WiKi commands). ## Notes for Reviewers <!-- Anything else that's helpful to review or test your pull request. -->
This commit is contained in:
parent
d07ddb14d0
commit
30c142aaca
@ -23,6 +23,12 @@ public:
|
|||||||
CastGrowlAction(PlayerbotAI* botAI) : CastSpellAction(botAI, "growl") {}
|
CastGrowlAction(PlayerbotAI* botAI) : CastSpellAction(botAI, "growl") {}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
class CastChallengingRoarAction : public CastMeleeDebuffSpellAction
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
CastChallengingRoarAction(PlayerbotAI* botAI) : CastMeleeDebuffSpellAction(botAI, "challenging roar") {}
|
||||||
|
};
|
||||||
|
|
||||||
class CastMaulAction : public CastMeleeSpellAction
|
class CastMaulAction : public CastMeleeSpellAction
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|||||||
@ -183,6 +183,7 @@ public:
|
|||||||
creators["bash"] = &DruidAiObjectContextInternal::bash;
|
creators["bash"] = &DruidAiObjectContextInternal::bash;
|
||||||
creators["swipe"] = &DruidAiObjectContextInternal::swipe;
|
creators["swipe"] = &DruidAiObjectContextInternal::swipe;
|
||||||
creators["growl"] = &DruidAiObjectContextInternal::growl;
|
creators["growl"] = &DruidAiObjectContextInternal::growl;
|
||||||
|
creators["challenging roar"] = &DruidAiObjectContextInternal::challenging_roar;
|
||||||
creators["demoralizing roar"] = &DruidAiObjectContextInternal::demoralizing_roar;
|
creators["demoralizing roar"] = &DruidAiObjectContextInternal::demoralizing_roar;
|
||||||
creators["hibernate"] = &DruidAiObjectContextInternal::hibernate;
|
creators["hibernate"] = &DruidAiObjectContextInternal::hibernate;
|
||||||
creators["entangling roots"] = &DruidAiObjectContextInternal::entangling_roots;
|
creators["entangling roots"] = &DruidAiObjectContextInternal::entangling_roots;
|
||||||
@ -277,6 +278,7 @@ private:
|
|||||||
static Action* bash(PlayerbotAI* botAI) { return new CastBashAction(botAI); }
|
static Action* bash(PlayerbotAI* botAI) { return new CastBashAction(botAI); }
|
||||||
static Action* swipe(PlayerbotAI* botAI) { return new CastSwipeAction(botAI); }
|
static Action* swipe(PlayerbotAI* botAI) { return new CastSwipeAction(botAI); }
|
||||||
static Action* growl(PlayerbotAI* botAI) { return new CastGrowlAction(botAI); }
|
static Action* growl(PlayerbotAI* botAI) { return new CastGrowlAction(botAI); }
|
||||||
|
static Action* challenging_roar(PlayerbotAI* botAI) { return new CastChallengingRoarAction(botAI); }
|
||||||
static Action* demoralizing_roar(PlayerbotAI* botAI) { return new CastDemoralizingRoarAction(botAI); }
|
static Action* demoralizing_roar(PlayerbotAI* botAI) { return new CastDemoralizingRoarAction(botAI); }
|
||||||
static Action* moonkin_form(PlayerbotAI* botAI) { return new CastMoonkinFormAction(botAI); }
|
static Action* moonkin_form(PlayerbotAI* botAI) { return new CastMoonkinFormAction(botAI); }
|
||||||
static Action* hibernate(PlayerbotAI* botAI) { return new CastHibernateAction(botAI); }
|
static Action* hibernate(PlayerbotAI* botAI) { return new CastHibernateAction(botAI); }
|
||||||
|
|||||||
@ -212,6 +212,7 @@ void BearTankDruidStrategy::InitTriggers(std::vector<TriggerNode*>& triggers)
|
|||||||
}
|
}
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
triggers.push_back(new TriggerNode("high aoe", {NextAction("challenging roar", ACTION_HIGH + 8)}));
|
||||||
triggers.push_back(
|
triggers.push_back(
|
||||||
new TriggerNode(
|
new TriggerNode(
|
||||||
"lose aggro",
|
"lose aggro",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user