Shorten paths (#2396)

<!--
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 -->
This is designed to significantly shorten the overall path while
maintaining the more detailed structure. I tried to follow the principle
of removing any folder that had 1 or 2 files in it, shortenining
dungeon/raid names to acronyms, and removing instances when the base
name was in the file name (Like Raid) etc.


## Feature Evaluation
<!--
If your PR is very minimal (comment typo, wrong ID reference, etc), and
it is very obvious it will not have
any impact on performance, you may skip these question. If necessary, a
maintainer may ask you for them later.
-->

<!-- Please answer the following: -->
- Describe the **minimum logic** required to achieve the intended
behavior.
- Describe the **processing cost** when this logic executes across many
bots.



## 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.
-->



## 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?
    - - [x] No
    - - [ ] Yes (**explain why**)



- Does this change add new decision branches or increase maintenance
complexity?
    - - [x] No
    - - [ ] Yes (**explain below**)



## 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?
- - [ ] No
- - [x] 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.
-->

Plan and execute

<!--
TRANSLATIONS:
Anything new that the bots say in chat must be in a translatable format.
This is done using GetBotTextOrDefault,
which you can search for in the codebase to find examples. Your code
needs to have English as the default fallback,
while the full translations need to be in an SQL update file. The
languages in the file are the nine language
options supported by AzerothCore: English, Korean, French, German,
Chinese, Taiwanese, Spanish, Spanish Mexico, and
Russian. See
data/sql/playerbots/updates/2025_12_27_ai_playerbot_fishing_text.sql as
an example of a translation SQL
update, whose content are called within the codebase at
src/strategy/actions/FishingAction.cpp
-->

## Final Checklist

- - [ ] Stability is not compromised.
- - [ ] Performance impact is understood, tested, and acceptable.
- - [ ] Added logic complexity is justified and explained.
- - [ ] Any new bot dialogue lines are translated.
- - [ ] 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:
Keleborn 2026-05-31 09:38:01 -07:00 committed by GitHub
parent 585027fab7
commit 714bb6bca3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
412 changed files with 480 additions and 480 deletions

View File

@ -3,7 +3,7 @@
#include "AiObjectContext.h" #include "AiObjectContext.h"
#include "Action.h" #include "Action.h"
#include "AuchenaiCryptsActions.h" #include "ACActions.h"
class TbcDungeonAuchenaiCryptsActionContext : public NamedObjectContext<Action> class TbcDungeonAuchenaiCryptsActionContext : public NamedObjectContext<Action>
{ {

View File

@ -1,7 +1,7 @@
#include "Playerbots.h" #include "Playerbots.h"
#include "AiFactory.h" #include "AiFactory.h"
#include "AuchenaiCryptsTriggers.h" #include "ACTriggers.h"
#include "AuchenaiCryptsActions.h" #include "ACActions.h"
// Shirrak the Dead Watcher // Shirrak the Dead Watcher

View File

@ -3,7 +3,7 @@
#include "AttackAction.h" #include "AttackAction.h"
#include "MovementActions.h" #include "MovementActions.h"
#include "AuchenaiCryptsTriggers.h" #include "ACTriggers.h"
// Shirrak the Dead Watcher // Shirrak the Dead Watcher

View File

@ -1,6 +1,6 @@
#include "AuchenaiCryptsMultipliers.h" #include "ACMultipliers.h"
#include "AuchenaiCryptsActions.h" #include "ACActions.h"
#include "AuchenaiCryptsTriggers.h" #include "ACTriggers.h"
#include "MovementActions.h" #include "MovementActions.h"
#include "ReachTargetActions.h" #include "ReachTargetActions.h"
#include "FollowActions.h" #include "FollowActions.h"

View File

@ -1,6 +1,6 @@
#include "AuchenaiCryptsTriggers.h" #include "ACTriggers.h"
#include "AuchenaiCryptsStrategy.h" #include "ACStrategy.h"
#include "AuchenaiCryptsMultipliers.h" #include "ACMultipliers.h"
void TbcDungeonAuchenaiCryptsStrategy::InitTriggers(std::vector<TriggerNode*>& triggers) void TbcDungeonAuchenaiCryptsStrategy::InitTriggers(std::vector<TriggerNode*>& triggers)
{ {

View File

@ -3,7 +3,7 @@
#include "AiObjectContext.h" #include "AiObjectContext.h"
#include "TriggerContext.h" #include "TriggerContext.h"
#include "AuchenaiCryptsTriggers.h" #include "ACTriggers.h"
class TbcDungeonAuchenaiCryptsTriggerContext : public NamedObjectContext<Trigger> class TbcDungeonAuchenaiCryptsTriggerContext : public NamedObjectContext<Trigger>
{ {

View File

@ -1,5 +1,5 @@
#include "Playerbots.h" #include "Playerbots.h"
#include "AuchenaiCryptsTriggers.h" #include "ACTriggers.h"
#include "AiObject.h" #include "AiObject.h"
#include "AiObjectContext.h" #include "AiObjectContext.h"

View File

@ -3,7 +3,7 @@
#include "Action.h" #include "Action.h"
#include "NamedObjectContext.h" #include "NamedObjectContext.h"
#include "OldKingdomActions.h" #include "AKActions.h"
class WotlkDungeonOKActionContext : public NamedObjectContext<Action> class WotlkDungeonOKActionContext : public NamedObjectContext<Action>
{ {

View File

@ -1,5 +1,5 @@
#include "Playerbots.h" #include "Playerbots.h"
#include "OldKingdomActions.h" #include "AKActions.h"
bool AttackNadoxGuardianAction::Execute(Event /*event*/) bool AttackNadoxGuardianAction::Execute(Event /*event*/)
{ {

View File

@ -5,7 +5,7 @@
#include "AttackAction.h" #include "AttackAction.h"
#include "PlayerbotAI.h" #include "PlayerbotAI.h"
#include "Playerbots.h" #include "Playerbots.h"
#include "OldKingdomTriggers.h" #include "AKTriggers.h"
class AttackNadoxGuardianAction : public AttackAction class AttackNadoxGuardianAction : public AttackAction
{ {

View File

@ -1,9 +1,9 @@
#include "OldKingdomMultipliers.h" #include "AKMultipliers.h"
#include "OldKingdomActions.h" #include "AKActions.h"
#include "GenericSpellActions.h" #include "GenericSpellActions.h"
#include "ChooseTargetActions.h" #include "ChooseTargetActions.h"
#include "MovementActions.h" #include "MovementActions.h"
#include "OldKingdomTriggers.h" #include "AKTriggers.h"
#include "Action.h" #include "Action.h"
float ElderNadoxMultiplier::GetValue(Action* action) float ElderNadoxMultiplier::GetValue(Action* action)

View File

@ -1,5 +1,5 @@
#include "OldKingdomStrategy.h" #include "AKStrategy.h"
#include "OldKingdomMultipliers.h" #include "AKMultipliers.h"
void WotlkDungeonOKStrategy::InitTriggers(std::vector<TriggerNode*> &triggers) void WotlkDungeonOKStrategy::InitTriggers(std::vector<TriggerNode*> &triggers)
{ {

View File

@ -3,7 +3,7 @@
#include "NamedObjectContext.h" #include "NamedObjectContext.h"
#include "AiObjectContext.h" #include "AiObjectContext.h"
#include "OldKingdomTriggers.h" #include "AKTriggers.h"
class WotlkDungeonOKTriggerContext : public NamedObjectContext<Trigger> class WotlkDungeonOKTriggerContext : public NamedObjectContext<Trigger>
{ {

View File

@ -1,5 +1,5 @@
#include "Playerbots.h" #include "Playerbots.h"
#include "OldKingdomTriggers.h" #include "AKTriggers.h"
#include "AiObject.h" #include "AiObject.h"
#include "AiObjectContext.h" #include "AiObjectContext.h"

View File

@ -3,7 +3,7 @@
#include "Action.h" #include "Action.h"
#include "NamedObjectContext.h" #include "NamedObjectContext.h"
#include "AzjolNerubActions.h" #include "ANActions.h"
class WotlkDungeonANActionContext : public NamedObjectContext<Action> class WotlkDungeonANActionContext : public NamedObjectContext<Action>
{ {

View File

@ -1,5 +1,5 @@
#include "Playerbots.h" #include "Playerbots.h"
#include "AzjolNerubActions.h" #include "ANActions.h"
bool AttackWebWrapAction::isUseful() { return !botAI->IsHeal(bot); } bool AttackWebWrapAction::isUseful() { return !botAI->IsHeal(bot); }
bool AttackWebWrapAction::Execute(Event /*event*/) bool AttackWebWrapAction::Execute(Event /*event*/)

View File

@ -5,7 +5,7 @@
#include "AttackAction.h" #include "AttackAction.h"
#include "PlayerbotAI.h" #include "PlayerbotAI.h"
#include "Playerbots.h" #include "Playerbots.h"
#include "AzjolNerubTriggers.h" #include "ANTriggers.h"
class AttackWebWrapAction : public AttackAction class AttackWebWrapAction : public AttackAction
{ {

View File

@ -1,9 +1,9 @@
#include "AzjolNerubMultipliers.h" #include "ANMultipliers.h"
#include "AzjolNerubActions.h" #include "ANActions.h"
#include "GenericSpellActions.h" #include "GenericSpellActions.h"
#include "ChooseTargetActions.h" #include "ChooseTargetActions.h"
#include "MovementActions.h" #include "MovementActions.h"
#include "AzjolNerubTriggers.h" #include "ANTriggers.h"
#include "Action.h" #include "Action.h"
float KrikthirMultiplier::GetValue(Action* action) float KrikthirMultiplier::GetValue(Action* action)

View File

@ -1,5 +1,5 @@
#include "AzjolNerubStrategy.h" #include "ANStrategy.h"
#include "AzjolNerubMultipliers.h" #include "ANMultipliers.h"
void WotlkDungeonANStrategy::InitTriggers(std::vector<TriggerNode*> &triggers) void WotlkDungeonANStrategy::InitTriggers(std::vector<TriggerNode*> &triggers)
{ {

View File

@ -3,7 +3,7 @@
#include "NamedObjectContext.h" #include "NamedObjectContext.h"
#include "AiObjectContext.h" #include "AiObjectContext.h"
#include "AzjolNerubTriggers.h" #include "ANTriggers.h"
class WotlkDungeonANTriggerContext : public NamedObjectContext<Trigger> class WotlkDungeonANTriggerContext : public NamedObjectContext<Trigger>
{ {

View File

@ -1,5 +1,5 @@
#include "Playerbots.h" #include "Playerbots.h"
#include "AzjolNerubTriggers.h" #include "ANTriggers.h"
#include "AiObject.h" #include "AiObject.h"
#include "AiObjectContext.h" #include "AiObjectContext.h"

View File

@ -3,7 +3,7 @@
#include "Action.h" #include "Action.h"
#include "NamedObjectContext.h" #include "NamedObjectContext.h"
#include "CullingOfStratholmeActions.h" #include "CoSActions.h"
class WotlkDungeonCoSActionContext : public NamedObjectContext<Action> class WotlkDungeonCoSActionContext : public NamedObjectContext<Action>
{ {

View File

@ -1,5 +1,5 @@
#include "Playerbots.h" #include "Playerbots.h"
#include "CullingOfStratholmeActions.h" #include "CoSActions.h"
bool ExplodeGhoulSpreadAction::Execute(Event /*event*/) bool ExplodeGhoulSpreadAction::Execute(Event /*event*/)
{ {

View File

@ -6,7 +6,7 @@
#include "GenericSpellActions.h" #include "GenericSpellActions.h"
#include "PlayerbotAI.h" #include "PlayerbotAI.h"
#include "Playerbots.h" #include "Playerbots.h"
#include "CullingOfStratholmeTriggers.h" #include "CoSTriggers.h"
class ExplodeGhoulSpreadAction : public MovementAction class ExplodeGhoulSpreadAction : public MovementAction
{ {

View File

@ -1,9 +1,9 @@
#include "CullingOfStratholmeMultipliers.h" #include "CoSMultipliers.h"
#include "CullingOfStratholmeActions.h" #include "CoSActions.h"
#include "GenericSpellActions.h" #include "GenericSpellActions.h"
#include "ChooseTargetActions.h" #include "ChooseTargetActions.h"
#include "MovementActions.h" #include "MovementActions.h"
#include "CullingOfStratholmeTriggers.h" #include "CoSTriggers.h"
#include "Action.h" #include "Action.h"
float EpochMultiplier::GetValue(Action* action) float EpochMultiplier::GetValue(Action* action)

View File

@ -1,5 +1,5 @@
#include "CullingOfStratholmeStrategy.h" #include "CoSStrategy.h"
#include "CullingOfStratholmeMultipliers.h" #include "CoSMultipliers.h"
void WotlkDungeonCoSStrategy::InitTriggers(std::vector<TriggerNode*> &triggers) void WotlkDungeonCoSStrategy::InitTriggers(std::vector<TriggerNode*> &triggers)
{ {

View File

@ -3,7 +3,7 @@
#include "NamedObjectContext.h" #include "NamedObjectContext.h"
#include "AiObjectContext.h" #include "AiObjectContext.h"
#include "CullingOfStratholmeTriggers.h" #include "CoSTriggers.h"
class WotlkDungeonCoSTriggerContext : public NamedObjectContext<Trigger> class WotlkDungeonCoSTriggerContext : public NamedObjectContext<Trigger>
{ {

View File

@ -1,5 +1,5 @@
#include "Playerbots.h" #include "Playerbots.h"
#include "CullingOfStratholmeTriggers.h" #include "CoSTriggers.h"
#include "AiObject.h" #include "AiObject.h"
#include "AiObjectContext.h" #include "AiObjectContext.h"

View File

@ -3,7 +3,7 @@
#include "Action.h" #include "Action.h"
#include "NamedObjectContext.h" #include "NamedObjectContext.h"
#include "DrakTharonKeepActions.h" #include "DTKActions.h"
class WotlkDungeonDTKActionContext : public NamedObjectContext<Action> class WotlkDungeonDTKActionContext : public NamedObjectContext<Action>
{ {

View File

@ -1,5 +1,5 @@
#include "Playerbots.h" #include "Playerbots.h"
#include "DrakTharonKeepActions.h" #include "DTKActions.h"
bool CorpseExplodeSpreadAction::Execute(Event /*event*/) bool CorpseExplodeSpreadAction::Execute(Event /*event*/)
{ {

View File

@ -6,7 +6,7 @@
#include "GenericSpellActions.h" #include "GenericSpellActions.h"
#include "PlayerbotAI.h" #include "PlayerbotAI.h"
#include "Playerbots.h" #include "Playerbots.h"
#include "DrakTharonKeepTriggers.h" #include "DTKTriggers.h"
const Position NOVOS_PARTY_POSITION = Position(-378.852f, -760.349f, 28.587f); const Position NOVOS_PARTY_POSITION = Position(-378.852f, -760.349f, 28.587f);

View File

@ -1,9 +1,9 @@
#include "DrakTharonKeepMultipliers.h" #include "DTKMultipliers.h"
#include "DrakTharonKeepActions.h" #include "DTKActions.h"
#include "GenericSpellActions.h" #include "GenericSpellActions.h"
#include "ChooseTargetActions.h" #include "ChooseTargetActions.h"
#include "MovementActions.h" #include "MovementActions.h"
#include "DrakTharonKeepTriggers.h" #include "DTKTriggers.h"
#include "Action.h" #include "Action.h"
float NovosMultiplier::GetValue(Action* action) float NovosMultiplier::GetValue(Action* action)

View File

@ -1,5 +1,5 @@
#include "DrakTharonKeepStrategy.h" #include "DTKStrategy.h"
#include "DrakTharonKeepMultipliers.h" #include "DTKMultipliers.h"
void WotlkDungeonDTKStrategy::InitTriggers(std::vector<TriggerNode*> &triggers) void WotlkDungeonDTKStrategy::InitTriggers(std::vector<TriggerNode*> &triggers)
{ {

View File

@ -3,7 +3,7 @@
#include "NamedObjectContext.h" #include "NamedObjectContext.h"
#include "AiObjectContext.h" #include "AiObjectContext.h"
#include "DrakTharonKeepTriggers.h" #include "DTKTriggers.h"
class WotlkDungeonDTKTriggerContext : public NamedObjectContext<Trigger> class WotlkDungeonDTKTriggerContext : public NamedObjectContext<Trigger>
{ {

View File

@ -1,5 +1,5 @@
#include "Playerbots.h" #include "Playerbots.h"
#include "DrakTharonKeepTriggers.h" #include "DTKTriggers.h"
#include "AiObject.h" #include "AiObject.h"
#include "AiObjectContext.h" #include "AiObjectContext.h"

View File

@ -2,22 +2,22 @@
#define _PLAYERBOT_DUNGEONSTRATEGYCONTEXT_H #define _PLAYERBOT_DUNGEONSTRATEGYCONTEXT_H
#include "Strategy.h" #include "Strategy.h"
#include "AuchenaiCrypts/Strategy/AuchenaiCryptsStrategy.h" #include "ACStrategy.h"
#include "UtgardeKeep/Strategy/UtgardeKeepStrategy.h" #include "UKStrategy.h"
#include "Nexus/Strategy/NexusStrategy.h" #include "NexStrategy.h"
#include "AzjolNerub/Strategy/AzjolNerubStrategy.h" #include "ANStrategy.h"
#include "OldKingdom/Strategy/OldKingdomStrategy.h" #include "AKStrategy.h"
#include "DraktharonKeep/Strategy/DrakTharonKeepStrategy.h" #include "DTKStrategy.h"
#include "VioletHold/Strategy/VioletHoldStrategy.h" #include "VHStrategy.h"
#include "Gundrak/Strategy/GundrakStrategy.h" #include "GDStrategy.h"
#include "HallsOfStone/Strategy/HallsOfStoneStrategy.h" #include "HoSStrategy.h"
#include "HallsOfLightning/Strategy/HallsOfLightningStrategy.h" #include "HoLStrategy.h"
#include "Oculus/Strategy/OculusStrategy.h" #include "OCStrategy.h"
#include "UtgardePinnacle/Strategy/UtgardePinnacleStrategy.h" #include "UPStrategy.h"
#include "CullingOfStratholme/Strategy/CullingOfStratholmeStrategy.h" #include "CoSStrategy.h"
#include "ForgeOfSouls/Strategy/ForgeOfSoulsStrategy.h" #include "FoSStrategy.h"
#include "PitOfSaron/Strategy/PitOfSaronStrategy.h" #include "PoSStrategy.h"
#include "TrialOfTheChampion/Strategy/TrialOfTheChampionStrategy.h" #include "TOCStrategy.h"
/* /*
Full list/TODO: Full list/TODO:

View File

@ -3,7 +3,7 @@
#include "Action.h" #include "Action.h"
#include "NamedObjectContext.h" #include "NamedObjectContext.h"
#include "ForgeOfSoulsActions.h" #include "FoSActions.h"
class WotlkDungeonFoSActionContext : public NamedObjectContext<Action> class WotlkDungeonFoSActionContext : public NamedObjectContext<Action>
{ {

View File

@ -1,5 +1,5 @@
#include "Playerbots.h" #include "Playerbots.h"
#include "ForgeOfSoulsActions.h" #include "FoSActions.h"
bool MoveFromBronjahmAction::Execute(Event /*event*/) bool MoveFromBronjahmAction::Execute(Event /*event*/)
{ {

View File

@ -5,7 +5,7 @@
#include "AttackAction.h" #include "AttackAction.h"
#include "PlayerbotAI.h" #include "PlayerbotAI.h"
#include "Playerbots.h" #include "Playerbots.h"
#include "ForgeOfSoulsTriggers.h" #include "FoSTriggers.h"
const Position BRONJAHM_TANK_POSITION = Position(5297.920f, 2506.698f, 686.068f); const Position BRONJAHM_TANK_POSITION = Position(5297.920f, 2506.698f, 686.068f);

View File

@ -1,10 +1,10 @@
#include "ForgeOfSoulsMultipliers.h" #include "FoSMultipliers.h"
#include "ForgeOfSoulsActions.h" #include "FoSActions.h"
#include "GenericSpellActions.h" #include "GenericSpellActions.h"
#include "ChooseTargetActions.h" #include "ChooseTargetActions.h"
#include "MovementActions.h" #include "MovementActions.h"
#include "ForgeOfSoulsTriggers.h" #include "FoSTriggers.h"
#include "ForgeOfSoulsActions.h" #include "FoSActions.h"
float BronjahmMultiplier::GetValue(Action* action) { float BronjahmMultiplier::GetValue(Action* action) {
Unit* boss = AI_VALUE2(Unit *, "find target", "bronjahm"); Unit* boss = AI_VALUE2(Unit *, "find target", "bronjahm");

View File

@ -1,5 +1,5 @@
#include "ForgeOfSoulsStrategy.h" #include "FoSStrategy.h"
#include "ForgeOfSoulsMultipliers.h" #include "FoSMultipliers.h"
void WotlkDungeonFoSStrategy::InitTriggers(std::vector<TriggerNode*>& triggers) void WotlkDungeonFoSStrategy::InitTriggers(std::vector<TriggerNode*>& triggers)
{ {

View File

@ -3,7 +3,7 @@
#include "NamedObjectContext.h" #include "NamedObjectContext.h"
#include "AiObjectContext.h" #include "AiObjectContext.h"
#include "ForgeOfSoulsTriggers.h" #include "FoSTriggers.h"
class WotlkDungeonFoSTriggerContext : public NamedObjectContext<Trigger> class WotlkDungeonFoSTriggerContext : public NamedObjectContext<Trigger>
{ {

View File

@ -1,5 +1,5 @@
#include "Playerbots.h" #include "Playerbots.h"
#include "ForgeOfSoulsTriggers.h" #include "FoSTriggers.h"
#include "AiObject.h" #include "AiObject.h"
#include "AiObjectContext.h" #include "AiObjectContext.h"

Some files were not shown because too many files have changed in this diff Show More