Scripts/Pet: moved all scripts into their own respective namespaces

This commit is contained in:
Ovahlord committed 2023-12-08 20:02:14 +01:00
1 parent 7e62a55074
commit c1ac99cc5d
7 files changed
+28

No files matched your search

+4
View File
@@ -28,6 +28,8 @@
#include "ScriptedCreature.h"
#include "SpellScript.h"
namespace Pets::DeathKnight
{
enum DeathKnightSpells
{
SPELL_DK_SUMMON_GARGOYLE_1 = 49206,
@@ -316,9 +318,11 @@ struct npc_pet_dk_rune_weapon : public AggressorAI
DoCastSelf(SPELL_DANCING_RUNE_WEAPON_VISUAL);
}
};
}
void AddSC_deathknight_pet_scripts()
{
using namespace Pets::DeathKnight;
new npc_pet_dk_ebon_gargoyle();
new npc_pet_dk_guardian();
RegisterCreatureAI(npc_pet_dk_army_of_the_dead_ghoul);
+4
View File
@@ -36,6 +36,8 @@
#include "Player.h"
#include "ScriptedCreature.h"
namespace Pets::Generic
{
enum BabyBlizzardBearMisc
{
SPELL_BBB_PET_SIT = 61853,
@@ -430,9 +432,11 @@ struct npc_pet_gen_soul_trader : public ScriptedAI
DoCast(owner, SPELL_ETHEREAL_ONSUMMON);
}
};
}
void AddSC_generic_pet_scripts()
{
using namespace Pets::Generic;
new npc_pet_gen_baby_blizzard_bear();
new npc_pet_gen_egbert();
new npc_pet_gen_pandaren_monk();
+4
View File
@@ -27,6 +27,8 @@
#include "SpellScript.h"
#include "TemporarySummon.h"
namespace Pets::Hunter
{
enum HunterSpells
{
SPELL_HUNTER_CRIPPLING_POISON = 30981, // Viper
@@ -274,9 +276,11 @@ class spell_pet_culling_the_herd : public SpellScriptLoader
return new spell_pet_culling_the_herd_AuraScript();
}
};
}
void AddSC_hunter_pet_scripts()
{
using namespace Pets::Hunter;
new npc_pet_hunter_snake_trap();
new spell_pet_guard_dog();
new spell_pet_silverback();
+4
View File
@@ -27,6 +27,8 @@
#include "ScriptedCreature.h"
#include "TemporarySummon.h"
namespace Pets::Mage
{
enum Spells
{
SPELL_INHERIT_MASTERS_THREAT_LIST = 58838,
@@ -136,8 +138,10 @@ private:
EventMap _events;
float _angle;
};
}
void AddSC_mage_pet_scripts()
{
using namespace Pets::Mage;
RegisterCreatureAI(npc_pet_mage_mirror_image);
}
+4
View File
@@ -27,6 +27,8 @@
#include "PetAI.h"
#include "ScriptedCreature.h"
namespace Pets::Paladin
{
enum GuardianOfAncientKings
{
SPELL_ANCIENT_GUARDIAN = 86657,
@@ -54,8 +56,10 @@ struct npc_pet_pal_guardian_of_ancient_kings : public PetAI
}
}
};
}
void AddSC_paladin_pet_script()
{
using namespace Pets::Paladin;
RegisterCreatureAI(npc_pet_pal_guardian_of_ancient_kings);
}
+4
View File
@@ -25,6 +25,8 @@
#include "PassiveAI.h"
#include "PetAI.h"
namespace Pets::Priest
{
enum PriestSpells
{
SPELL_PRIEST_GLYPH_OF_SHADOWFIEND = 58228,
@@ -82,9 +84,11 @@ class npc_pet_pri_shadowfiend : public CreatureScript
return new npc_pet_pri_shadowfiendAI(creature);
}
};
}
void AddSC_priest_pet_scripts()
{
using namespace Pets::Priest;
new npc_pet_pri_lightwell();
new npc_pet_pri_shadowfiend();
}
+4
View File
@@ -23,6 +23,8 @@
#include "ScriptMgr.h"
#include "ScriptedCreature.h"
namespace Pets::Shaman
{
enum ShamanSpells
{
SPELL_SHAMAN_ANGEREDEARTH = 36213,
@@ -145,9 +147,11 @@ class npc_pet_shaman_fire_elemental : public CreatureScript
return new npc_pet_shaman_fire_elementalAI(creature);
}
};
}
void AddSC_shaman_pet_scripts()
{
using namespace Pets::Shaman;
new npc_pet_shaman_earth_elemental();
new npc_pet_shaman_fire_elemental();
}