feat(CI/Codestyle): added codestyle check (#3668)

This commit is contained in:
Kargatum
2021-01-09 17:59:50 +07:00
committed by GitHub
parent 57aa46244d
commit ea93a5c1a1
400 changed files with 238 additions and 748 deletions

View File

@@ -431,7 +431,6 @@ public:
if (creature->IsVendor() && player->GetReputationRank(59) >= REP_FRIENDLY)
AddGossipItemFor(player, 4781, 0, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_TRADE);
if (player->GetQuestRewardStatus(QUEST_A_BINDING_CONTRACT) != 1 &&
!player->HasItemCount(ITEM_THRORIUM_BROTHERHOOD_CONTRACT, 1, true) &&
player->HasItemCount(ITEM_SULFURON_INGOT))

View File

@@ -368,7 +368,6 @@ public:
void UpdateAI(uint32 diff) override
{
if (!UpdateVictim())
{
_events.Update(diff);

View File

@@ -53,7 +53,6 @@ enum Misc
REND_PATH_2 = 1379681,
};
struct Wave
{
uint32 entry;
@@ -111,7 +110,6 @@ static Wave Wave6[] = // 27 sec
{ 10442, 212.2642f, -430.7648f, 110.9807f }
};
/*Position const GythLoc = { 211.762f, -397.5885f, 111.1817f, 4.747295f };
Position const Teleport1Loc = { 194.2993f, -474.0814f, 121.4505f, -0.01225555f };
Position const Teleport2Loc = { 216.485f, -434.93f, 110.888f, -0.01225555f };*/

View File

@@ -61,7 +61,6 @@ enum Events
EVENT_INTRO_5 = 12
};
class boss_ragnaros : public CreatureScript
{
public:

View File

@@ -1,4 +1,4 @@
# Copyright (C)
# Copyright (C)
#
# This file is free software; as a special exception the author gives
# unlimited permission to copy and/or distribute it, with or without

View File

@@ -19,4 +19,3 @@ enum GameObjects
};
#endif

View File

@@ -31,7 +31,6 @@ enum Netherspite
SPELL_NETHERSPITE_ROAR = 38684,
};
const float PortalCoord[3][3] =
{
{-11195.353516f, -1613.237183f, 278.237258f}, // Left side

View File

@@ -10,7 +10,6 @@
#include "karazhan.h"
#include "SpellInfo.h"
enum PrinceSay
{
SAY_AGGRO = 0,
@@ -74,7 +73,6 @@ struct InfernalPoint
{ -10935.7f, -1996.0f }
};*/
//---------Infernal code first
class netherspite_infernal : public CreatureScript
{
@@ -100,7 +98,6 @@ public:
void EnterCombat(Unit* /*who*/) override { }
void MoveInLineOfSight(Unit* /*who*/) override { }
void UpdateAI(uint32 diff) override
{
if (HellfireTimer)
@@ -151,7 +148,6 @@ public:
};
};
class boss_malchezaar : public CreatureScript
{
public:
@@ -469,7 +465,6 @@ public:
uint32 AxesTargetSwitchTimer;
InstanceScript* instance;
void Initialize()
{
AxesTargetSwitchTimer = 7500;

View File

@@ -51,7 +51,6 @@ enum Creatures
NPC_PORTAL = 17265
};
class npc_kilrek : public CreatureScript
{
public:
@@ -142,7 +141,6 @@ public:
void AttackStart(Unit* /*who*/) override { }
void MoveInLineOfSight(Unit* /*who*/) override { }
void JustDied(Unit* /*killer*/) override
{
if (SacrificeGUID)
@@ -365,7 +363,6 @@ public:
}
}
if (SummonKilrekTimer <= diff)
{
DoCast(me, SPELL_SUMMON_IMP, true);

View File

@@ -133,7 +133,6 @@ public:
InstanceScript* instance;
uint32 AggroTimer;
uint32 WaterBoltTimer;
@@ -143,7 +142,6 @@ public:
bool SummonedTito;
bool TitoDied;
void Reset() override
{
Initialize();
@@ -797,11 +795,8 @@ enum RedRidingHood
CREATURE_BIG_BAD_WOLF = 17521,
};
#define GOSSIP_GRANDMA "What phat lewtz you have grandmother?"
class npc_grandmother : public CreatureScript
{
public:
@@ -997,7 +992,6 @@ enum JulianneRomulo
ROMULO_Y = -1758,
};
enum RAJPhase
{
PHASE_JULIANNE = 0,

View File

@@ -425,7 +425,6 @@ public:
}
};
void AddSC_instance_karazhan()
{
new instance_karazhan();

View File

@@ -413,7 +413,6 @@ public:
#define SAY_DIALOG_ARCANAGOS_8 "What have you done, wizard? This cannot be! I'm burning from... within!"
#define SAY_DIALOG_MEDIVH_9 "He should not have angered me. I must go... recover my strength now..."
//static float MedivPos[4] = {-11161.49f, -1902.24f, 91.48f, 1.94f};
static float ArcanagosPos[4] = {-11169.75f, -1881.48f, 107.39f, 4.83f};

View File

@@ -276,7 +276,6 @@ public:
break;
}
if (events.GetPhaseMask() == 0)
DoMeleeAttackIfReady();
}

View File

@@ -18,7 +18,6 @@ enum MTData
MAX_ENCOUNTER = 4
};
enum MTCreatures
{
NPC_DELRISSA = 24560,
@@ -38,5 +37,4 @@ enum MTGameObjects
GO_ESCAPE_ORB = 188173
};
#endif

View File

@@ -621,7 +621,6 @@ public:
};
};
// Theirs
/*######
##Quest 12848

View File

@@ -7,7 +7,6 @@
#include "shadowfang_keep.h"
#include "TemporarySummon.h"
enum Creatures
{
NPC_ASH = 3850,
@@ -16,7 +15,6 @@ enum Creatures
NPC_ARUGAL_VOIDWALKER = 4627
};
class instance_shadowfang_keep : public InstanceMapScript
{
public:

View File

@@ -238,7 +238,6 @@ public:
if (!player)
return;
uint32 uiEntry = aPlaguedCritters[urand(0, 2)];
for (uint8 i = 0; i < 30; ++i)
{
@@ -380,7 +379,6 @@ public:
if (_gateTrapsCooldown[i])
break;
// Check that the trap is not on cooldown, if so check if player/pet is in range
for (Map::PlayerList::const_iterator itr = players.begin(); itr != players.end(); ++itr)
{
@@ -586,7 +584,6 @@ public:
}
};
InstanceScript* GetInstanceScript(InstanceMap* map) const override
{
return new instance_stratholme_InstanceMapScript(map);

View File

@@ -78,4 +78,3 @@ enum MiscIds
};
#endif

View File

@@ -156,7 +156,6 @@ public:
events2.ScheduleEvent(EVENT_INTRO_2, 3000);
}
void KilledUnit(Unit* victim) override
{
if (victim->GetTypeId() == TYPEID_PLAYER && roll_chance_i(50))

View File

@@ -16,7 +16,6 @@ enum Yells
SAY_SATH_SPELL1 = 3,
SAY_SATH_SPELL2 = 4,
SAY_EVIL_AGGRO = 0,
SAY_EVIL_SLAY = 1,
SAY_GOOD_PLRWIN = 2,

View File

@@ -53,7 +53,6 @@ enum CreatureIds
NPC_VOID_SENTINEL = 25772,
NPC_VOID_SPAWN = 25824,
NPC_KILJAEDEN_CONTROLLER = 25608,
NPC_KILJAEDEN = 25315,
NPC_ANVEENA = 26046,

View File

@@ -395,7 +395,6 @@ public:
void MoveInLineOfSight(Unit* /*who*/) override { }
void MovementInform(uint32, uint32) override
{
arrived = true;
@@ -454,4 +453,3 @@ void AddSC_boss_akilzon()
new boss_akilzon();
new npc_akilzon_eagle();
}

View File

@@ -799,7 +799,6 @@ public:
}
};
class boss_slither : public CreatureScript
{
public:
@@ -1000,4 +999,3 @@ void AddSC_boss_hex_lord_malacrass()
new boss_alyson_antille();
new spell_hexlord_unstable_affliction();
}

View File

@@ -468,7 +468,6 @@ public:
void MoveInLineOfSight(Unit* /*who*/) override { }
void UpdateAI(uint32 /*diff*/) override { }
};
@@ -709,4 +708,3 @@ void AddSC_boss_janalai()
new npc_janalai_hatchling();
new npc_janalai_egg();
}

View File

@@ -462,4 +462,3 @@ void AddSC_boss_nalorakk()
{
new boss_nalorakk();
}

View File

@@ -599,4 +599,3 @@ void AddSC_boss_zuljin()
new boss_zuljin();
new npc_zuljin_vortex();
}

View File

@@ -405,4 +405,3 @@ void AddSC_instance_zulaman()
{
new instance_zulaman();
}

View File

@@ -102,4 +102,3 @@ void AddSC_boss_grilek()
{
new boss_grilek();
}

View File

@@ -168,4 +168,3 @@ void AddSC_boss_hakkar()
{
new boss_hakkar();
}

View File

@@ -162,4 +162,3 @@ void AddSC_boss_renataki()
{
new boss_renataki();
}

View File

@@ -94,4 +94,3 @@ void AddSC_boss_wushoolay()
{
new boss_wushoolay();
}

View File

@@ -302,7 +302,6 @@ public:
};
};
// Theirs
class npc_ghoul_flayer : public CreatureScript
{

View File

@@ -14,7 +14,6 @@ EndScriptData */
/* ContentData
EndContentData */
void AddSC_eversong_woods()
{
}

View File

@@ -625,8 +625,6 @@ public:
};
};
/*###### THEIR: ######*/
/*######

View File

@@ -481,7 +481,6 @@ enum ThrallMisc
THRALL_SAY_THRONE_10 = 34,
THRALL_SAY_THRONE_11 = 35,
// Sounds
SOUND_THRALL_1 = 16212,
SOUND_THRALL_2 = 16214,