chore(Core): Remove unnecessary slang Cosmetic (#9325)
* Remove unnecessary slang Removes ZOMG! that is used in the src in logging and notes. Completely Unnecessary. Contributes to nothing useful. Inflates source. Not needed at all in any shape or form. Not Developer Lingo either. * Further Clean Up Removed Profanity * sensible grammar correction * More ZOMG! removal
This commit is contained in:
@@ -1564,7 +1564,7 @@ bool Creature::LoadCreatureFromDB(ObjectGuid::LowType spawnId, Map* map, bool ad
|
||||
return false;
|
||||
}
|
||||
|
||||
// xinef: fix shitness from db
|
||||
// xinef: fix from db
|
||||
if ((addToMap || gridLoad) && !data->overwrittenZ)
|
||||
{
|
||||
float tz = map->GetHeight(data->posX, data->posY, data->posZ + 1.0f, true);
|
||||
|
||||
@@ -418,7 +418,7 @@ void Puppet::InitSummon()
|
||||
else
|
||||
{
|
||||
LOG_INFO("misc", "Puppet::InitSummon (B1)");
|
||||
//ABORT(); // ZOMG!
|
||||
//ABORT();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1326,7 +1326,7 @@ void GameObject::TriggeringLinkedGameObject(uint32 trapEntry, Unit* target)
|
||||
if (!trapSpell) // checked at load already
|
||||
return;
|
||||
|
||||
// xinef: wtf, many spells have range 0 but radius > 0
|
||||
// xinef: many spells have range 0 but radius > 0
|
||||
float range = float(target->GetSpellMaxRangeForTarget(GetOwner(), trapSpell));
|
||||
if (range < 1.0f)
|
||||
range = 5.0f;
|
||||
|
||||
@@ -1836,7 +1836,7 @@ void Pet::resetTalentsForAllPetsOf(Player* owner, Pet* online_pet /*= nullptr*/)
|
||||
// now need only reset for offline pets (all pets except online case)
|
||||
uint32 except_petnumber = online_pet ? online_pet->GetCharmInfo()->GetPetNumber() : 0;
|
||||
|
||||
// xinef: zomg! sync query
|
||||
// xinef: sync query
|
||||
CharacterDatabasePreparedStatement* stmt = CharacterDatabase.GetPreparedStatement(CHAR_SEL_CHAR_PET);
|
||||
stmt->setUInt32(0, owner->GetGUID().GetCounter());
|
||||
stmt->setUInt32(1, except_petnumber);
|
||||
@@ -1846,7 +1846,7 @@ void Pet::resetTalentsForAllPetsOf(Player* owner, Pet* online_pet /*= nullptr*/)
|
||||
if (!resultPets)
|
||||
return;
|
||||
|
||||
// xinef: zomg! sync query
|
||||
// xinef: sync query
|
||||
stmt = CharacterDatabase.GetPreparedStatement(CHAR_SEL_PET_SPELL_LIST);
|
||||
stmt->setUInt32(0, owner->GetGUID().GetCounter());
|
||||
stmt->setUInt32(1, except_petnumber);
|
||||
|
||||
@@ -8115,7 +8115,7 @@ void Player::SendInitWorldStates(uint32 zoneid, uint32 areaid)
|
||||
data << uint32(0x6fc) << uint32(0x0); // 25 1788 gold mine (0 - conflict, 1 - horde)
|
||||
data << uint32(0x6fd) << uint32(0x0); // 26 1789 gold mine (1 - show/0 - hide)
|
||||
data << uint32(0x6fe) << uint32(0x0); // 27 1790 gold mine color
|
||||
data << uint32(0x700) << uint32(0x0); // 28 1792 gold mine color, wtf?, may be LM?
|
||||
data << uint32(0x700) << uint32(0x0); // 28 1792 gold mine color, may be LM?
|
||||
data << uint32(0x701) << uint32(0x0); // 29 1793 lumber mill color (0 - conflict, 1 - horde contr)
|
||||
data << uint32(0x702) << uint32(0x0); // 30 1794 lumber mill (show/hide)
|
||||
data << uint32(0x703) << uint32(0x0); // 31 1795 lumber mill color color
|
||||
@@ -9428,7 +9428,7 @@ void Player::RemovePetitionsAndSigns(ObjectGuid guid, uint32 type)
|
||||
|
||||
void Player::LeaveAllArenaTeams(ObjectGuid guid)
|
||||
{
|
||||
// xinef: zomg! sync query
|
||||
// xinef: sync query
|
||||
CharacterDatabasePreparedStatement* stmt = CharacterDatabase.GetPreparedStatement(CHAR_SEL_PLAYER_ARENA_TEAMS);
|
||||
stmt->setUInt32(0, guid.GetCounter());
|
||||
PreparedQueryResult result = CharacterDatabase.Query(stmt);
|
||||
@@ -10828,7 +10828,7 @@ void Player::SendInitialPacketsBeforeAddToMap()
|
||||
/// Pass 'this' as argument because we're not stored in ObjectAccessor yet
|
||||
GetSocial()->SendSocialList(this, SOCIAL_FLAG_ALL);
|
||||
|
||||
// guild bank list wtf?
|
||||
// guild bank list?
|
||||
|
||||
// Homebind
|
||||
WorldPacket data(SMSG_BINDPOINTUPDATE, 5 * 4);
|
||||
@@ -10905,7 +10905,7 @@ void Player::SendInitialPacketsAfterAddToMap()
|
||||
auraList.front()->HandleEffect(this, AURA_EFFECT_HANDLE_SEND_FOR_CLIENT, true);
|
||||
}
|
||||
|
||||
// Fix mount shit... to tired to think, update block gets messed somewhere
|
||||
// Fix mount, update block gets messed somewhere
|
||||
{
|
||||
if (!isBeingLoaded() && GetMountBlockId() && !HasAuraType(SPELL_AURA_MOUNTED))
|
||||
{
|
||||
|
||||
@@ -1491,7 +1491,7 @@ void Player::RemoveRewardedQuest(uint32 questId, bool update /*= true*/)
|
||||
void Player::SendQuestUpdate(uint32 questId)
|
||||
{
|
||||
uint32 zone = 0, area = 0;
|
||||
// xinef: shittness fixup
|
||||
// xinef: fixup
|
||||
uint32 oldSpellId = 0;
|
||||
|
||||
SpellAreaForQuestMapBounds saBounds = sSpellMgr->GetSpellAreaForQuestMapBounds(questId);
|
||||
@@ -1515,7 +1515,7 @@ void Player::SendQuestUpdate(uint32 questId)
|
||||
|
||||
saBounds = sSpellMgr->GetSpellAreaForQuestEndMapBounds(questId);
|
||||
|
||||
// xinef: shittness fixup
|
||||
// xinef: fixup
|
||||
uint32 skipSpellId = 0;
|
||||
oldSpellId = 0;
|
||||
if (saBounds.first != saBounds.second)
|
||||
|
||||
@@ -1149,7 +1149,7 @@ InventoryResult Player::CanStoreItem(uint8 bag, uint8 slot, ItemPosCountVec& des
|
||||
if( pItem->IsBag() && pItem->IsNotEmptyBag() )
|
||||
return EQUIP_ERR_CAN_ONLY_DO_WITH_EMPTY_BAGS;
|
||||
|
||||
// Xinef: Removed next bullshit loot generated check
|
||||
// Xinef: Removed next loot generated check
|
||||
if (pItem->GetGUID() == GetLootGUID())
|
||||
{
|
||||
if (no_space_count)
|
||||
@@ -1629,7 +1629,7 @@ InventoryResult Player::CanStoreItems(Item** pItems, int count) const
|
||||
if (!pProto)
|
||||
return EQUIP_ERR_ITEM_NOT_FOUND;
|
||||
|
||||
// Xinef: Removed next bullshit loot generated check
|
||||
// Xinef: Removed next loot generated check
|
||||
if (pItem->GetGUID() == GetLootGUID())
|
||||
return EQUIP_ERR_ALREADY_LOOTED;
|
||||
|
||||
@@ -2065,7 +2065,7 @@ InventoryResult Player::CanBankItem(uint8 bag, uint8 slot, ItemPosCountVec& dest
|
||||
if (!pProto)
|
||||
return swap ? EQUIP_ERR_ITEMS_CANT_BE_SWAPPED : EQUIP_ERR_ITEM_NOT_FOUND;
|
||||
|
||||
// Xinef: Removed next bullshit loot generated check
|
||||
// Xinef: Removed next loot generated check
|
||||
if (pItem->GetGUID() == GetLootGUID())
|
||||
return EQUIP_ERR_ALREADY_LOOTED;
|
||||
|
||||
@@ -3641,7 +3641,7 @@ void Player::SwapItem(uint16 src, uint16 dst)
|
||||
|
||||
if (pDstItem)
|
||||
{
|
||||
// Xinef: Removed next bullshit loot generated check
|
||||
// Xinef: Removed next loot generated check
|
||||
if (pDstItem->GetGUID() == GetLootGUID()) // prevent swap looting item
|
||||
{
|
||||
//best error message found for attempting to swap while looting
|
||||
@@ -3940,7 +3940,7 @@ void Player::SwapItem(uint16 src, uint16 dst)
|
||||
{
|
||||
if (Item* bagItem = bag->GetItemByPos(i))
|
||||
{
|
||||
// Xinef: Removed next bullshit loot generated check
|
||||
// Xinef: Removed next loot generated check
|
||||
if (bagItem->GetGUID() == GetLootGUID())
|
||||
{
|
||||
m_session->DoLootRelease(GetLootGUID());
|
||||
@@ -3958,7 +3958,7 @@ void Player::SwapItem(uint16 src, uint16 dst)
|
||||
{
|
||||
if (Item* bagItem = bag->GetItemByPos(i))
|
||||
{
|
||||
// Xinef: Removed next bullshit loot generated check
|
||||
// Xinef: Removed next loot generated check
|
||||
if (bagItem->GetGUID() == GetLootGUID())
|
||||
{
|
||||
m_session->DoLootRelease(GetLootGUID());
|
||||
@@ -5632,7 +5632,7 @@ bool Player::LoadFromDB(ObjectGuid playerGuid, CharacterDatabaseQueryHolder cons
|
||||
|
||||
_LoadDeclinedNames(holder.GetPreparedResult(PLAYER_LOGIN_QUERY_LOAD_DECLINED_NAMES));
|
||||
|
||||
//m_achievementMgr->CheckAllAchievementCriteria(); // pussywizard: ZOMG! disabled this bullshit
|
||||
//m_achievementMgr->CheckAllAchievementCriteria(); // pussywizard: disabled this
|
||||
|
||||
_LoadEquipmentSets(holder.GetPreparedResult(PLAYER_LOGIN_QUERY_LOAD_EQUIPMENT_SETS));
|
||||
|
||||
@@ -6056,7 +6056,7 @@ Item* Player::_LoadItem(CharacterDatabaseTransaction trans, uint32 zoneId, uint3
|
||||
}
|
||||
else
|
||||
{
|
||||
// xinef: zomg! sync query
|
||||
// xinef: sync query
|
||||
stmt = CharacterDatabase.GetPreparedStatement(CHAR_SEL_ITEM_REFUNDS);
|
||||
stmt->setUInt32(0, item->GetGUID().GetCounter());
|
||||
stmt->setUInt32(1, GetGUID().GetCounter());
|
||||
@@ -7587,7 +7587,7 @@ void Player::_SaveQuestStatus(CharacterDatabaseTransaction trans)
|
||||
{
|
||||
if (saveItr->second)
|
||||
stmt = CharacterDatabase.GetPreparedStatement(CHAR_INS_CHAR_QUESTSTATUS_REWARDED);
|
||||
else // xinef: what the fuck is this shit? quest can be removed by spelleffect if (!keepAbandoned)
|
||||
else // xinef: what the is this? quest can be removed by spelleffect if (!keepAbandoned)
|
||||
stmt = CharacterDatabase.GetPreparedStatement(CHAR_DEL_CHAR_QUESTSTATUS_REWARDED_BY_QUEST);
|
||||
|
||||
stmt->setUInt32(0, GetGUID().GetCounter());
|
||||
|
||||
@@ -2739,7 +2739,7 @@ void Unit::SendMeleeAttackStop(Unit* victim)
|
||||
{
|
||||
// pussywizard: calling SendMeleeAttackStop without clearing UNIT_STATE_MELEE_ATTACKING and then AttackStart the same player may spoil npc rotating!
|
||||
// pussywizard: this happens in some boss scripts, just add clearing here
|
||||
// ClearUnitState(UNIT_STATE_MELEE_ATTACKING); // ZOMG! commented out for now
|
||||
// ClearUnitState(UNIT_STATE_MELEE_ATTACKING); // commented out for now
|
||||
|
||||
WorldPacket data(SMSG_ATTACKSTOP, (8 + 8 + 4));
|
||||
data << GetPackGUID();
|
||||
@@ -9714,7 +9714,7 @@ bool Unit::Attack(Unit* victim, bool meleeAttack)
|
||||
return false;
|
||||
}
|
||||
|
||||
//if (HasFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_PACIFIED)) // pussywizard: wtf? why having this flag prevents from entering combat? it should just prevent melee attack
|
||||
//if (HasFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_PACIFIED)) // pussywizard: why having this flag prevents from entering combat? it should just prevent melee attack
|
||||
// return false;
|
||||
|
||||
// nobody can attack GM in GM-mode
|
||||
@@ -11173,7 +11173,7 @@ uint32 Unit::SpellDamageBonusTaken(Unit* caster, SpellInfo const* spellProto, ui
|
||||
if (!spellProto->ValidateAttribute6SpellDamageMods(caster, *i, damagetype == DOT))
|
||||
continue;
|
||||
|
||||
// Only death knight spell with this aura, ZOMG!
|
||||
// Only death knight spell with this aura
|
||||
if ((*i)->GetSpellInfo()->SpellFamilyName == SPELLFAMILY_DEATHKNIGHT)
|
||||
if (!caster || caster->GetGUID() != (*i)->GetCasterGUID())
|
||||
continue;
|
||||
@@ -17606,7 +17606,7 @@ bool Unit::SetCharmedBy(Unit* charmer, CharmType type, AuraApplication const* au
|
||||
return false;
|
||||
|
||||
// Pets already have a properly initialized CharmInfo, don't overwrite it.
|
||||
// Xinef: I need charmInfo for vehicle so bullshit
|
||||
// Xinef: I need charmInfo for vehicle
|
||||
if (/*type != CHARM_TYPE_VEHICLE &&*/ !GetCharmInfo())
|
||||
{
|
||||
InitCharmInfo();
|
||||
@@ -18175,7 +18175,7 @@ void Unit::SetPhaseMask(uint32 newPhaseMask, bool update)
|
||||
|
||||
if (IsInWorld())
|
||||
{
|
||||
// xinef: ZOMG!, to comment, bellow line should be removed
|
||||
// xinef: to comment, bellow line should be removed
|
||||
// pussywizard: goign to other phase (valithria, algalon) should not remove such auras
|
||||
//RemoveNotOwnSingleTargetAuras(newPhaseMask, true); // we can lost access to caster or target
|
||||
|
||||
|
||||
@@ -1853,7 +1853,7 @@ public:
|
||||
void JumpTo(float speedXY, float speedZ, bool forward = true);
|
||||
void JumpTo(WorldObject* obj, float speedZ);
|
||||
|
||||
void SendMonsterMove(float NewPosX, float NewPosY, float NewPosZ, uint32 TransitTime, SplineFlags sf = SPLINEFLAG_WALK_MODE); // pussywizard: need to just send packet, with no shitty movement/spline
|
||||
void SendMonsterMove(float NewPosX, float NewPosY, float NewPosZ, uint32 TransitTime, SplineFlags sf = SPLINEFLAG_WALK_MODE); // pussywizard: need to just send packet, with no movement/spline
|
||||
void MonsterMoveWithSpeed(float x, float y, float z, float speed);
|
||||
//void SetFacing(float ori, WorldObject* obj = nullptr);
|
||||
//void SendMonsterMove(float NewPosX, float NewPosY, float NewPosZ, uint8 type, uint32 MovementFlags, uint32 Time, Player* player = nullptr);
|
||||
|
||||
@@ -61,11 +61,11 @@ Vehicle::~Vehicle()
|
||||
{
|
||||
if (Unit* unit = ObjectAccessor::GetUnit(*_me, itr->second.Passenger.Guid))
|
||||
{
|
||||
LOG_FATAL("vehicles", "ZOMG! ~Vehicle(), unit: %s, entry: %u, typeid: %u, this_entry: %u, this_typeid: %u!", unit->GetName().c_str(), unit->GetEntry(), unit->GetTypeId(), _me ? _me->GetEntry() : 0, _me ? _me->GetTypeId() : 0);
|
||||
LOG_FATAL("vehicles", "Vehicle(), unit: %s, entry: %u, typeid: %u, this_entry: %u, this_typeid: %u!", unit->GetName().c_str(), unit->GetEntry(), unit->GetTypeId(), _me ? _me->GetEntry() : 0, _me ? _me->GetTypeId() : 0);
|
||||
unit->_ExitVehicle();
|
||||
}
|
||||
else
|
||||
LOG_FATAL("vehicles", "ZOMG! ~Vehicle(), unknown guid!");
|
||||
LOG_FATAL("vehicles", "Vehicle(), unknown guid!");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -392,15 +392,15 @@ bool Vehicle::AddPassenger(Unit* unit, int8 seatId)
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
LOG_INFO("vehicles", "ZOMG! CRASH! Try-catch in Unit::SetCharmedBy()!");
|
||||
LOG_INFO("vehicles", "ZOMG! CRASH! Try-catch in Unit::SetCharmedBy(). not null: %u", _me ? 1 : 0);
|
||||
LOG_INFO("vehicles", "CRASH! Try-catch in Unit::SetCharmedBy()!");
|
||||
LOG_INFO("vehicles", "CRASH! Try-catch in Unit::SetCharmedBy(). not null: %u", _me ? 1 : 0);
|
||||
if (!_me)
|
||||
return false;
|
||||
LOG_INFO("vehicles", "ZOMG! CRASH! Try-catch in Unit::SetCharmedBy(). Is: %u!", _me->IsInWorld());
|
||||
LOG_INFO("vehicles", "ZOMG! CRASH! Try-catch in Unit::SetCharmedBy(). Is2: %u!", _me->IsDuringRemoveFromWorld());
|
||||
LOG_INFO("vehicles", "ZOMG! CRASH! Try-catch in Unit::SetCharmedBy(). Unit %s!", _me->GetName().c_str());
|
||||
LOG_INFO("vehicles", "ZOMG! CRASH! Try-catch in Unit::SetCharmedBy(). typeid: %u!", _me->GetTypeId());
|
||||
LOG_INFO("vehicles", "ZOMG! CRASH! Try-catch in Unit::SetCharmedBy(). Unit %s, typeid: %u, in world: %u, duringremove: %u has wrong CharmType! Charmer %s, typeid: %u, in world: %u, duringremove: %u.", _me->GetName().c_str(), _me->GetTypeId(), _me->IsInWorld(), _me->IsDuringRemoveFromWorld(), unit->GetName().c_str(), unit->GetTypeId(), unit->IsInWorld(), unit->IsDuringRemoveFromWorld());
|
||||
LOG_INFO("vehicles", "CRASH! Try-catch in Unit::SetCharmedBy(). Is: %u!", _me->IsInWorld());
|
||||
LOG_INFO("vehicles", "CRASH! Try-catch in Unit::SetCharmedBy(). Is2: %u!", _me->IsDuringRemoveFromWorld());
|
||||
LOG_INFO("vehicles", "CRASH! Try-catch in Unit::SetCharmedBy(). Unit %s!", _me->GetName().c_str());
|
||||
LOG_INFO("vehicles", "CRASH! Try-catch in Unit::SetCharmedBy(). typeid: %u!", _me->GetTypeId());
|
||||
LOG_INFO("vehicles", "CRASH! Try-catch in Unit::SetCharmedBy(). Unit %s, typeid: %u, in world: %u, duringremove: %u has wrong CharmType! Charmer %s, typeid: %u, in world: %u, duringremove: %u.", _me->GetName().c_str(), _me->GetTypeId(), _me->IsInWorld(), _me->IsDuringRemoveFromWorld(), unit->GetName().c_str(), unit->GetTypeId(), unit->IsInWorld(), unit->IsDuringRemoveFromWorld());
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user