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

@@ -1631,7 +1631,6 @@ void SpellMgr::LoadSpellGroups()
++count;
} while (result->NextRow());
sLog->outString(">> Loaded %u spell group definitions in %u ms", count, GetMSTimeDiffToNow(oldMSTime));
sLog->outString();
}
@@ -1672,7 +1671,6 @@ void SpellMgr::LoadSpellGroupStackRules()
break;
}
if (!present)
{
sLog->outErrorDb("SpellGroup id %u listed in `spell_group_stack_rules` does not exist", group_id);
@@ -3978,7 +3976,6 @@ void SpellMgr::LoadDbcDataCorrections()
spellInfo->Dispel = DISPEL_NONE;
});
//////////////////////////////////////////
////////// ULDUAR
//////////////////////////////////////////
@@ -7243,7 +7240,6 @@ void SpellMgr::LoadDbcDataCorrections()
}
if (spellInfo->activeIconID == 2158) // flight
{
spellInfo->Attributes |= SPELL_ATTR0_PASSIVE;
@@ -7275,7 +7271,6 @@ void SpellMgr::LoadDbcDataCorrections()
areaEntry->flags |= AREA_FLAG_REST_ZONE_ALLIANCE;
}
// Xinef: fix for something?
SummonPropertiesEntry* properties = const_cast<SummonPropertiesEntry*>(sSummonPropertiesStore.LookupEntry(121));
properties->Type = SUMMON_TYPE_TOTEM;
@@ -7291,21 +7286,18 @@ void SpellMgr::LoadDbcDataCorrections()
CreatureDisplayInfoEntry* displayEntry = const_cast<CreatureDisplayInfoEntry*>(sCreatureDisplayInfoStore.LookupEntry(17028)); // Kurken
displayEntry->scale = 2.5f;
// Oracles and Frenzyheart faction
FactionEntry* factionEntry = const_cast<FactionEntry*>(sFactionStore.LookupEntry(1104));
factionEntry->ReputationFlags[0] = 0;
factionEntry = const_cast<FactionEntry*>(sFactionStore.LookupEntry(1105));
factionEntry->ReputationFlags[0] = 0;
// Various factions, added 14, 16 to hostile mask
FactionTemplateEntry* factionTemplateEntry = const_cast<FactionTemplateEntry*>(sFactionTemplateStore.LookupEntry(1978)); // Warsong Offensive
factionTemplateEntry->hostileMask |= 8;
factionTemplateEntry = const_cast<FactionTemplateEntry*>(sFactionTemplateStore.LookupEntry(1921)); // The Taunka
factionTemplateEntry->hostileMask |= 8;
// Remove vehicles attr, making accessories selectable
VehicleSeatEntry* vse = const_cast<VehicleSeatEntry*>(sVehicleSeatStore.LookupEntry(4689)); // Siege Engine, Accessory
vse->m_flags &= ~VEHICLE_SEAT_FLAG_PASSENGER_NOT_SELECTABLE;
@@ -7318,7 +7310,6 @@ void SpellMgr::LoadDbcDataCorrections()
vse = const_cast<VehicleSeatEntry*>(sVehicleSeatStore.LookupEntry(3077)); // Salvaged Demolisher Seat, Ulduar - not allow to change seats
vse->m_flags &= ~VEHICLE_SEAT_FLAG_CAN_SWITCH;
// pussywizard: fix z offset for some vehicles:
vse = const_cast<VehicleSeatEntry*>(sVehicleSeatStore.LookupEntry(6206)); // Marrowgar - Bone Spike
vse->m_attachmentOffsetZ = 4.0f;
@@ -7348,13 +7339,10 @@ void SpellMgr::LoadDbcDataCorrections()
vse->m_attachmentOffsetX += 0.0f;
vse->m_attachmentOffsetY += 1.6f;
// Once Bitten, Twice Shy (10 player) - Icecrown Citadel
AchievementEntry* achievement = const_cast<AchievementEntry*>(sAchievementStore.LookupEntry(4539));
achievement->mapID = 631; // Correct map requirement (currently has Ulduar)
// Ring of Valor starting Locations
GraveyardStruct const* entry = sGraveyard->GetGraveyard(1364);
const_cast<GraveyardStruct*>(entry)->z += 6.0f;