Skip to content

Commit 5dfec1d

Browse files
authored
Scripts/Botanica: Modernize scripts (TrinityCore#31026)
1 parent 59492b8 commit 5dfec1d

File tree

4 files changed

+17
-12
lines changed

4 files changed

+17
-12
lines changed

src/server/scripts/Outland/TempestKeep/botanica/boss_commander_sarannis.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
#include "SpellScript.h"
2222
#include "the_botanica.h"
2323

24-
enum Texts
24+
enum SarannisTexts
2525
{
2626
SAY_AGGRO = 0,
2727
SAY_SLAY = 1,
@@ -31,7 +31,7 @@ enum Texts
3131
SAY_DEATH = 5
3232
};
3333

34-
enum Spells
34+
enum SarannisSpells
3535
{
3636
SPELL_ARCANE_RESONANCE = 34794,
3737
SPELL_ARCANE_DEVASTATION = 34799,
@@ -43,7 +43,7 @@ enum Spells
4343
SPELL_SUMMON_RESERVIST_3 = 34819
4444
};
4545

46-
enum Events
46+
enum SarannisEvents
4747
{
4848
EVENT_ARCANE_DEVASTATION = 1,
4949
EVENT_SUMMON_REINFORCEMENTS
@@ -54,6 +54,7 @@ uint32 const SummonReinforcementsSpells[] =
5454
SPELL_SUMMON_MENDER_1, SPELL_SUMMON_RESERVIST_1, SPELL_SUMMON_RESERVIST_2, SPELL_SUMMON_RESERVIST_3
5555
};
5656

57+
// 17976 - Commander Sarannis
5758
struct boss_commander_sarannis : public BossAI
5859
{
5960
boss_commander_sarannis(Creature* creature) : BossAI(creature, DATA_COMMANDER_SARANNIS), _summoned(false) { }

src/server/scripts/Outland/TempestKeep/botanica/boss_high_botanist_freywinn.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#include "SpellInfo.h"
2121
#include "the_botanica.h"
2222

23-
enum Texts
23+
enum FreywinnTexts
2424
{
2525
SAY_AGGRO = 0,
2626
SAY_SLAY = 1,
@@ -29,7 +29,7 @@ enum Texts
2929
SAY_OOC_RANDOM = 4
3030
};
3131

32-
enum Spells
32+
enum FreywinnSpells
3333
{
3434
SPELL_TRANQUILITY = 34550,
3535
SPELL_TREE_FORM = 34551,
@@ -41,13 +41,14 @@ enum Spells
4141
SPELL_CANCEL_TRANQUILITY = 34777
4242
};
4343

44-
enum Events
44+
enum FreywinnEvents
4545
{
4646
EVENT_PLANT_SEEDLING = 1,
4747
EVENT_TREE_FORM,
4848
EVENT_TRANQUILITY
4949
};
5050

51+
// 17975 - High Botanist Freywinn
5152
struct boss_high_botanist_freywinn : public BossAI
5253
{
5354
boss_high_botanist_freywinn(Creature* creature) : BossAI(creature, DATA_HIGH_BOTANIST_FREYWINN), _frayersKilled(0) { }

src/server/scripts/Outland/TempestKeep/botanica/boss_laj.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@
1919
#include "ScriptedCreature.h"
2020
#include "the_botanica.h"
2121

22-
enum Texts
22+
enum LajTexts
2323
{
2424
EMOTE_SUMMON = 0
2525
};
2626

27-
enum Spells
27+
enum LajSpells
2828
{
2929
SPELL_ALLERGIC_REACTION = 34697,
3030
SPELL_TELEPORT_SELF = 34673,
@@ -42,7 +42,7 @@ enum Spells
4242
SPELL_TRANSFORM_SHADOW = 34710
4343
};
4444

45-
enum Events
45+
enum LajEvents
4646
{
4747
EVENT_TELEPORT = 1,
4848
EVENT_EMOTE,
@@ -52,6 +52,7 @@ enum Events
5252
EVENT_THRASH
5353
};
5454

55+
// 17980 - Laj
5556
struct boss_laj : public BossAI
5657
{
5758
boss_laj(Creature* creature) : BossAI(creature, DATA_LAJ), _activeTransformAura(0) { }

src/server/scripts/Outland/TempestKeep/botanica/boss_warp_splinter.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@
2020
#include "SpellInfo.h"
2121
#include "the_botanica.h"
2222

23-
enum Texts
23+
enum WarpSplinterTexts
2424
{
2525
SAY_AGGRO = 0,
2626
SAY_SLAY = 1,
2727
SAY_SUMMON = 2,
2828
SAY_DEATH = 3
2929
};
3030

31-
enum Spells
31+
enum WarpSplinterSpells
3232
{
3333
SPELL_STOMP = 34716,
3434
SPELL_ARCANE_VOLLEY = 36705,
@@ -44,7 +44,7 @@ enum Spells
4444
SPELL_MOONFIRE_VISUAL = 36704
4545
};
4646

47-
enum Events
47+
enum WarpSplinterEvents
4848
{
4949
EVENT_SUMMON = 1,
5050
EVENT_STOMP,
@@ -57,6 +57,7 @@ uint32 const SummonSaplingsSpells[] =
5757
SPELL_SUMMON_SAPLING_4, SPELL_SUMMON_SAPLING_5, SPELL_SUMMON_SAPLING_6
5858
};
5959

60+
// 17977 - Warp Splinter
6061
struct boss_warp_splinter : public BossAI
6162
{
6263
boss_warp_splinter(Creature* creature) : BossAI(creature, DATA_WARP_SPLINTER) { }
@@ -142,6 +143,7 @@ struct boss_warp_splinter : public BossAI
142143
}
143144
};
144145

146+
// 19949 - Sapling
145147
struct npc_warp_splinter_sapling : public ScriptedAI
146148
{
147149
npc_warp_splinter_sapling(Creature* creature) : ScriptedAI(creature) { }

0 commit comments

Comments
 (0)