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

@@ -419,7 +419,6 @@ public:
};
};
void AddSC_boss_bjarngrim()
{
new boss_bjarngrim();

View File

@@ -180,7 +180,6 @@ public:
return saveStream.str();
}
void Load(const char* in) override
{
if (!in)

View File

@@ -165,7 +165,6 @@ public:
};
};
class spell_krystallus_shatter : public SpellScriptLoader
{
public:

View File

@@ -497,7 +497,6 @@ public:
me->SetUInt32Value(UNIT_NPC_FLAGS, UNIT_NPC_FLAG_GOSSIP | UNIT_NPC_FLAG_QUESTGIVER);
// Spawn Chest and quest credit
if (Player* plr = SelectTargetFromPlayerList(200.0f))
{

View File

@@ -119,7 +119,6 @@ public:
}
}
void OnCreatureCreate(Creature* creature) override
{
switch(creature->GetEntry())

View File

@@ -2,7 +2,6 @@
* Originally written by Xinef - Copyright (C) 2016+ AzerothCore <www.azerothcore.org>, released under GNU AGPL v3 license: https://github.com/azerothcore/azerothcore-wotlk/blob/master/LICENSE-AGPL3
*/
#include "ObjectMgr.h"
#include "ScriptMgr.h"
#include "ScriptedCreature.h"

View File

@@ -66,7 +66,6 @@ enum AssemblySpells
#define SPELL_LIGHTNING_WHIRL RAID_MODE(SPELL_LIGHTNING_WHIRL_10, SPELL_LIGHTNING_WHIRL_25)
#define SPELL_LIGHTNING_TENDRILS RAID_MODE(SPELL_LIGHTNING_TENDRILS_10, SPELL_LIGHTNING_TENDRILS_25)
enum eEnums
{
// Steelbreaker
@@ -831,7 +830,6 @@ public:
};
};
class spell_shield_of_runes : public SpellScriptLoader
{
public:

View File

@@ -1669,7 +1669,6 @@ public:
}
}
void HandleScript(SpellEffIndex /*eff*/)
{
Creature* target = GetHitCreature();
@@ -2027,7 +2026,6 @@ public:
}
};
class spell_demolisher_ride_vehicle : public SpellScriptLoader
{
public:

View File

@@ -42,7 +42,6 @@ enum FreyaSpells
SPELL_UNSTABLE_SUN_FREYA_DAMAGE_25 = 62865,
SPELL_UNSTABLE_SUN_VISUAL = 62216,
// ELDERS
SPELL_DRAINED_OF_POWER = 62467,
SPELL_STONEBARK_ESSENCE = 62483,
@@ -1055,7 +1054,6 @@ public:
};
};
class boss_freya_healthy_spore : public CreatureScript
{
public:

View File

@@ -94,7 +94,6 @@ enum VezaxEvents
#define TEXT_VEZAX_DEATH "Oh, what horrors await...."
#define TEXT_VEZAX_HARDMODE "Behold, now! Terror, absolute!"
class boss_vezax : public CreatureScript
{
public:

View File

@@ -363,7 +363,6 @@ public:
}
}
void UpdateAI(uint32 diff) override
{
if (addSpawnTimer <= diff)

View File

@@ -76,7 +76,6 @@ enum eEvents
EVENT_GRAB,
};
class npc_ulduar_iron_construct : public CreatureScript
{
public:

View File

@@ -635,7 +635,6 @@ public:
};
};
// predicate function to select non main tank target
class StoneGripTargetSelector : public acore::unary_function<Unit*, bool>
{

View File

@@ -71,7 +71,6 @@ enum SpellData
SPELL_SLEEP = 64394,
};
enum NPCs
{
//NPC_MIMIRON = 33350,
@@ -87,7 +86,6 @@ enum NPCs
NPC_MAGNETIC_CORE = 34068,
};
enum GOs
{
//GO_MIMIRON_ELEVATOR = 194749,
@@ -98,7 +96,6 @@ enum GOs
// pads: 194740-48
};
enum HardMode
{
SPELL_EMERGENCY_MODE = 64582,
@@ -130,7 +127,6 @@ enum HardMode
SPELL_ENTER_VEHICLE_4 = 63316,
};
enum EVENTS
{
// Mimiron:
@@ -203,7 +199,6 @@ enum EVENTS
EVENT_EMERGENCY_BOT_ATTACK = 70,
};
enum SOUNDS
{
SOUND_TANK_INTRO = 15611,
@@ -227,7 +222,6 @@ enum SOUNDS
SOUND_TANK_HARD_INTRO = 15629,
};
#define SPELL_NAPALM_SHELL RAID_MODE(SPELL_NAPALM_SHELL_10, SPELL_NAPALM_SHELL_25)
#define SPELL_PLASMA_BLAST RAID_MODE(SPELL_PLASMA_BLAST_10, SPELL_PLASMA_BLAST_25)
#define SPELL_MINE_EXPLOSION RAID_MODE(SPELL_MINE_EXPLOSION_10, SPELL_MINE_EXPLOSION_25)
@@ -236,7 +230,6 @@ enum SOUNDS
#define SPELL_HAND_PULSE_L RAID_MODE(SPELL_HAND_PULSE_10_L, SPELL_HAND_PULSE_25_L)
#define SPELL_FROST_BOMB_EXPLOSION RAID_MODE(SPELL_FROST_BOMB_EXPLOSION_10, SPELL_FROST_BOMB_EXPLOSION_25)
#define TEXT_AGGRO "Oh, my! I wasn't expecting company! The workshop is such a mess! How embarrassing!"
#define TEXT_BERSERK "Oh, my! It would seem that we are out of time, my friends!"
#define TEXT_HARDMODE "Now why would you go and do something like that? Didn't you see the sign that said 'DO NOT PUSH THIS BUTTON!'? How will we finish testing with the self-destruct mechanism active?"
@@ -274,8 +267,6 @@ enum ComputerTalks
TALK_COMPUTER_ZERO = 12,
};
#define GetMimiron() ObjectAccessor::GetCreature(*me, pInstance->GetData64(TYPE_MIMIRON))
#define GetLMK2() ObjectAccessor::GetCreature(*me, pInstance->GetData64(DATA_MIMIRON_LEVIATHAN_MKII))
#define GetVX001() ObjectAccessor::GetCreature(*me, pInstance->GetData64(DATA_MIMIRON_VX001))

View File

@@ -70,7 +70,6 @@
#define TEXT_DEEP_BREATH "Razorscale takes a deep breath..."
#define TEXT_GROUNDED_PERMANENTLY "Razorscale grounded permanently!"
#define CORDS_GROUND 588.0f, -166.0f, 391.1f
#define CORDS_AIR 588.0f, -178.0f, 490.0f
#define REPAIR_POINTS 25

View File

@@ -301,7 +301,6 @@ const Position Middle = {2134.68f, -263.13f, 419.44f, M_PI * 1.5f};
const uint32 RollTable[3] = { 32877, 32878, 32876 };
class boss_thorim : public CreatureScript
{
public:

View File

@@ -95,7 +95,6 @@ enum Misc
{
HEART_VEHICLE_SEAT = 0,
ACTION_AWAKEN_HEART = -5,
ACTION_HIDE_HEART = -4,
ACTION_HEART_BROKEN = -3,
@@ -106,7 +105,6 @@ enum Misc
DATA_XT002_GRAVITY_ACHIEV = 51,
};
class boss_xt002 : public CreatureScript
{
public:

View File

@@ -285,7 +285,6 @@ enum Misc
ACTION_ILLUSION_ICECROWN = 2,
ACTION_ILLUSION_STORMWIND = 3,
EVENT_PHASE_ONE = 1,
EVENT_PHASE_TWO = 2,
EVENT_PHASE_THREE = 3,
@@ -319,7 +318,6 @@ static LocationsXY yoggPortalLoc[] =
const Position Middle = {1980.28f, -25.5868f, 329.397f, M_PI * 1.5f};
class boss_yoggsaron_sara : public CreatureScript
{
public:
@@ -1975,7 +1973,6 @@ public:
};
};
class boss_yoggsaron_llane : public CreatureScript
{
public:
@@ -2534,7 +2531,6 @@ public:
{
PrepareAuraScript(spell_yogg_saron_protective_gaze_AuraScript);
void CalculateAmount(AuraEffect const* /*aurEff*/, int32& amount, bool& /*canBeRecalculated*/)
{
// Set absorbtion amount to unlimited
@@ -2967,7 +2963,6 @@ private:
uint8 const _requiredIllusion;
};
class achievement_yogg_saron_kiss_and_make_up : public AchievementCriteriaScript
{
public:

View File

@@ -101,7 +101,6 @@ public:
uint64 m_keepersgateGUID;
uint64 m_keepersGossipGUID[4];
void Initialize() override
{
// Bosses
@@ -1017,7 +1016,6 @@ public:
OUT_LOAD_INST_DATA_COMPLETE;
}
void Update(uint32 diff) override
{
if (_events.Empty())
@@ -1139,7 +1137,6 @@ const Position vehiclePositions[30] =
{119.8f, -112.37f, 409.803f, 0.0f},
};
void instance_ulduar::instance_ulduar_InstanceMapScript::SpawnLeviathanEncounterVehicles(uint8 mode)
{
if (!_leviathanVehicles.empty())

View File

@@ -411,7 +411,6 @@ public:
}
};
void AddSC_ulduar()
{
new npc_ulduar_keeper();

View File

@@ -139,7 +139,6 @@ enum UlduarNPCs
NPC_SALVAGED_DEMOLISHER_TURRET = 33167,
NPC_BRANN_BASE_CAMP = 33579,
// Algalon the Observer
NPC_BRANN_BRONZBEARD_ALG = 34064,
NPC_AZEROTH = 34246,
@@ -252,7 +251,6 @@ enum UlduarMisc
ACTION_TOWER_OF_FLAMES_DESTROYED = 3,
ACTION_TOWER_OF_LIFE_DESTROYED = 4,
// Algalon the Observer
WORLD_STATE_ALGALON_DESPAWN_TIMER = 4131,
WORLD_STATE_ALGALON_TIMER_ENABLED = 4132,