Skip to content
This repository has been archived by the owner on Jan 18, 2024. It is now read-only.

Commit

Permalink
Scripts/Misc: fixed redundant enum names and definitions in same name…
Browse files Browse the repository at this point in the history
…spaces
  • Loading branch information
Ovahlord committed Dec 9, 2023
1 parent ea30806 commit 40d6e2a
Show file tree
Hide file tree
Showing 9 changed files with 29 additions and 29 deletions.
2 changes: 1 addition & 1 deletion src/server/scripts/EasternKingdoms/Deadmines/deadmines.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ class npc_deadmines_steam_valve : public CreatureScript
}
};

enum VanessaVanCleef
enum VanessaVanCleefGauntlet
{
SAY_GLUBTOK_INTRO_1 = 0,
SAY_GLUBTOK_INTRO_2 = 1,
Expand Down
2 changes: 1 addition & 1 deletion src/server/scripts/EasternKingdoms/Uldaman/uldaman.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ namespace Uldaman
## npc_jadespine_basilisk
######*/

enum Spells
enum USpells
{
SPELL_CRYSTALLINE_SLUMBER = 3636,
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,34 +44,34 @@ DoorData const doorData[] =
{ 0, 0, DOOR_TYPE_ROOM } // END
};

enum Events
enum ETEvents
{
EVENT_RESPAWN_MUROZOND = 1
};

enum SpawnGroups
enum ETSpawnGroups
{
SPAWN_GROUP_ID_MUROZOND_CHEST = 437,
SPAWN_GROUP_ID_ECHO_OF_JAINA = 460
};

enum AreaIds
enum ETAreaIds
{
AREA_ID_BRONZE_DRAGON_SHRINE = 5795
};

enum WorldStates
enum ETWorldStates
{
WORLD_STATE_ID_SHOW_COLLECTED_STAVE_FRAGMENTS = 6046,
WORLD_STATE_ID_COLLECTED_STAVE_FRAGMENTS = 6025
};

enum MapEvents
enum ETMapEvents
{
MAP_EVENT_AZURE_DRAGONSHRINE_ENTERED = 29225
};

enum Spells
enum ETSpells
{
SPELL_SUMMON_PHANTOM = 102200
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ namespace EscapeFromDurnholdeKeep

#define DRAKE_ENTRY 17848

#define QUEST_ENTRY_DIVERSION 10283
#define LODGE_QUEST_TRIGGER 20155

class instance_old_hillsbrad : public InstanceMapScript
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,13 @@ EndContentData */

namespace EscapeFromDurnholdeKeep
{
#define GOSSIP_HELLO_EROZION1 "I need a pack of Incendiary Bombs."
#define GOSSIP_HELLO_EROZION2 "[PH] Teleport please, i'm tired."

/*######
## npc_erozion
######*/

enum Erozion
{
QUEST_ENTRY_HILLSBRAD = 10282,
Expand All @@ -47,12 +54,6 @@ enum Erozion
QUEST_ENTRY_RETURN = 10285,
ITEM_ENTRY_BOMBS = 25853
};
#define GOSSIP_HELLO_EROZION1 "I need a pack of Incendiary Bombs."
#define GOSSIP_HELLO_EROZION2 "[PH] Teleport please, i'm tired."

/*######
## npc_erozion
######*/

class npc_erozion : public CreatureScript
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -235,12 +235,12 @@ class npc_medivh_bm : public CreatureScript
}
};

struct Wave
struct PortalWave
{
uint32 PortalMob[4]; //spawns for portal waves (in order)
};

static Wave PortalWaves[]=
static PortalWave PortalWaves[]=
{
{ {NPC_INFINITE_ASSASIN, NPC_INFINITE_WHELP, NPC_INFINITE_CRONOMANCER, 0} },
{ {NPC_INFINITE_EXECUTIONER, NPC_INFINITE_CRONOMANCER, NPC_INFINITE_WHELP, NPC_INFINITE_ASSASIN} },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

namespace ThroneOfTheFourWinds
{
enum Spells
enum ToTFWSpells
{
SPELL_JET_STREAM = 84576,
SPELL_JET_STREAM_TRIGGERED = 84610,
Expand All @@ -43,19 +43,19 @@ enum Spells
SPELL_SLIPSTREAM_SAFE_FALL = 87740,
};

enum Events
enum ToTFWEvents
{
EVENT_EJECT_ALL_PASSENGERS = 1,
EVENT_THROW_PASSENGER = 2
};

enum Actions
enum ToTFWActions
{
// action id 1 is used by boss_conclave_of_wind
ACTION_PLAYER_LEFT_PLATFORM = 2,
};

enum VehicleSeats
enum ToTFWVehicleSeats
{
SEAT_0 = 0
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@

namespace VortexPinnacle
{
enum Texts
enum VPTrashTexts
{
SAY_FEIGN_DEATH = 0
};

enum Spells
enum VPTrashSpells
{
// Lurking Tempest
SPELL_LIGHTNING_BOLT = 89105,
Expand Down Expand Up @@ -74,7 +74,7 @@ enum Spells
SPELL_ARCANE_BARRAGE = 87845
};

enum Events
enum VPTrashEvents
{
EVENT_NONE,

Expand All @@ -94,7 +94,7 @@ enum Events
EVENT_EJECT_ALL_PASSENGERS
};

enum Points
enum VPTrashPoints
{
POINT_NONE,
POINT_RANDOM
Expand Down
8 changes: 4 additions & 4 deletions src/server/scripts/Maelstrom/Stonecore/stonecore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@
namespace Stonecore
{

enum Texts
enum MillhouseTexts
{
// Millhouse Manastorm
SAY_MILLHOUSE_EVENT_1 = 0,
SAY_MILLHOUSE_EVENT_2 = 1
};

enum Spells
enum MillhouseSpells
{
// Millhouse Manastorm
SPELL_SHADOW_BOLT = 81439,
Expand All @@ -53,7 +53,7 @@ enum Spells
// SPELL_PORTAL_VISUAL = 79754,
};

enum Events
enum MillhouseEvents
{
// Millhouse Manastorm
EVENT_FROSTBOLT_VOLLEY = 1,
Expand All @@ -65,7 +65,7 @@ enum Events
EVENT_RUN_AWAY
};

enum MovementPoints
enum MillhouseCMovementPoints
{
POINT_NONE,

Expand Down

0 comments on commit 40d6e2a

Please sign in to comment.