From 9ab6ba96646eabc6033e83b3b818ab678864ab4d Mon Sep 17 00:00:00 2001 From: Kitzunu <24550914+Kitzunu@users.noreply.github.com> Date: Wed, 21 Jul 2021 23:57:20 +0200 Subject: [PATCH] chore(Core/Misc): remove toxic language (#6988) --- src/server/game/AI/SmartScripts/SmartScript.cpp | 4 ++-- src/server/game/AI/SmartScripts/SmartScriptMgr.cpp | 2 +- src/server/game/Entities/Player/Player.cpp | 2 +- src/server/game/Entities/Unit/Unit.cpp | 2 +- src/server/game/Entities/Vehicle/Vehicle.cpp | 2 +- src/server/game/Spells/Auras/SpellAuraEffects.cpp | 2 +- src/server/game/Spells/Spell.cpp | 12 ++++++------ src/server/game/Spells/SpellEffects.cpp | 2 +- .../scripts/Northrend/Ulduar/Ulduar/boss_xt002.cpp | 4 ++-- 9 files changed, 16 insertions(+), 16 deletions(-) diff --git a/src/server/game/AI/SmartScripts/SmartScript.cpp b/src/server/game/AI/SmartScripts/SmartScript.cpp index 9344bb835..e37181e0d 100644 --- a/src/server/game/AI/SmartScripts/SmartScript.cpp +++ b/src/server/game/AI/SmartScripts/SmartScript.cpp @@ -150,7 +150,7 @@ void SmartScript::ProcessAction(SmartScriptHolder& e, Unit* unit, uint32 var0, u case SMART_ACTION_TALK: { ObjectList* targets = GetTargets(e, unit); - Creature* talker = e.target.type == 0 ? me : nullptr; // xinef: tc retardness fix + Creature* talker = e.target.type == 0 ? me : nullptr; Unit* talkTarget = nullptr; if (targets) { @@ -3603,7 +3603,7 @@ ObjectList* SmartScript::GetTargets(SmartScriptHolder const& e, Unit* invoker /* l->assign(objectList->begin(), objectList->end()); } - // xinef: return l, retardness... what if list is empty? will return empty list instead of null pointer + // xinef: return l, what if list is empty? will return empty list instead of null pointer break; } case SMART_TARGET_CLOSEST_CREATURE: diff --git a/src/server/game/AI/SmartScripts/SmartScriptMgr.cpp b/src/server/game/AI/SmartScripts/SmartScriptMgr.cpp index f0b8f82cb..2f182556a 100644 --- a/src/server/game/AI/SmartScripts/SmartScriptMgr.cpp +++ b/src/server/game/AI/SmartScripts/SmartScriptMgr.cpp @@ -227,7 +227,7 @@ void SmartAIMgr::LoadSmartAIFromDB() if (!IsEventValid(temp)) continue; - // xinef: specific check for timed events, fix db makers retardness + // xinef: specific check for timed events, fix db makers switch (temp.event.type) { case SMART_EVENT_UPDATE: diff --git a/src/server/game/Entities/Player/Player.cpp b/src/server/game/Entities/Player/Player.cpp index c2bd33ea1..c477cfc0c 100644 --- a/src/server/game/Entities/Player/Player.cpp +++ b/src/server/game/Entities/Player/Player.cpp @@ -13000,7 +13000,7 @@ void Player::LearnTalent(uint32 talentId, uint32 talentRank) } // xinef: check amount of points spent in current talent tree - // xinef: be smart and quick, not retarded like TC + // xinef: be smart and quick uint32 spentPoints = 0; if (talentInfo->Row > 0) { diff --git a/src/server/game/Entities/Unit/Unit.cpp b/src/server/game/Entities/Unit/Unit.cpp index bb7c61bfa..e7ddf9f29 100644 --- a/src/server/game/Entities/Unit/Unit.cpp +++ b/src/server/game/Entities/Unit/Unit.cpp @@ -2582,7 +2582,7 @@ float Unit::CalculateLevelPenalty(SpellInfo const* spellProto) const float LvlPenalty = 0.0f; - // xinef: added brackets, trinity retards... + // xinef: added brackets if (spellProto->SpellLevel < 20) LvlPenalty = (20.0f - spellProto->SpellLevel) * 3.75f; diff --git a/src/server/game/Entities/Vehicle/Vehicle.cpp b/src/server/game/Entities/Vehicle/Vehicle.cpp index 267fa44f2..63270326b 100644 --- a/src/server/game/Entities/Vehicle/Vehicle.cpp +++ b/src/server/game/Entities/Vehicle/Vehicle.cpp @@ -369,7 +369,7 @@ bool Vehicle::AddPassenger(Unit* unit, int8 seatId) unit->m_movementInfo.transport.seat = seat->first; unit->m_movementInfo.transport.guid = _me->GetGUID(); - // xinef: removed retarded seat->first == 0 check... + // xinef: removed seat->first == 0 check... if (_me->GetTypeId() == TYPEID_UNIT && unit->GetTypeId() == TYPEID_PLAYER && seat->second.SeatInfo->m_flags & VEHICLE_SEAT_FLAG_CAN_CONTROL) diff --git a/src/server/game/Spells/Auras/SpellAuraEffects.cpp b/src/server/game/Spells/Auras/SpellAuraEffects.cpp index 115078350..29518982d 100644 --- a/src/server/game/Spells/Auras/SpellAuraEffects.cpp +++ b/src/server/game/Spells/Auras/SpellAuraEffects.cpp @@ -4359,7 +4359,7 @@ void AuraEffect::HandleAuraModIncreaseHealthPercent(AuraApplication const* aurAp float percent = target->GetHealthPct(); target->HandleStatModifier(UNIT_MOD_HEALTH, TOTAL_PCT, float(GetAmount()), apply); - // Xinef: idiots, pct was rounded down and could "kill" creature by setting its health to 0 making npc zombie + // Xinef: pct was rounded down and could "kill" creature by setting its health to 0 making npc zombie if (target->IsAlive()) if (uint32 healthAmount = CalculatePct(target->GetMaxHealth(), percent)) target->SetHealth(healthAmount); diff --git a/src/server/game/Spells/Spell.cpp b/src/server/game/Spells/Spell.cpp index 1b7e8d33b..bf13a79ac 100644 --- a/src/server/game/Spells/Spell.cpp +++ b/src/server/game/Spells/Spell.cpp @@ -2712,7 +2712,7 @@ SpellMissInfo Spell::DoSpellHitOnUnit(Unit* unit, uint32 effectMask, bool scaleA { if (unit->IsImmunedToSpellEffect(m_spellInfo, effectNumber)) effectMask &= ~(1 << effectNumber); - // Xinef: What retarded added this shit? Buggs out polymorph + // Xinef: Buggs out polymorph // Xinef: And this is checked in MagicSpellHitResult, why we check resistance twice? // Xinef: And why we check every spell effect basing on rand and generic dispel info? some effects will be appliend and some wont? WTF? /*else if (m_spellInfo->Effects[effectNumber].IsAura() && !m_spellInfo->IsPositiveEffect(effectNumber)) @@ -3355,13 +3355,13 @@ SpellCastResult Spell::prepare(SpellCastTargets const* targets, AuraEffect const ((m_targets.GetObjectTarget() && m_caster != m_targets.GetObjectTarget()) || m_spellInfo->IsPositive())) { // Xinef: Creature should focus to cast target if there is explicit target or self if casting positive spell - // Xinef: Creature should not rotate like a retard when casting spell... based on halion behavior + // Xinef: Creature should not rotate when casting spell... based on halion behavior m_caster->ToCreature()->FocusTarget(this, m_targets.GetObjectTarget() != nullptr ? m_targets.GetObjectTarget() : m_caster); } } //item: first cast may destroy item and second cast causes crash - // xinef: removed !m_spellInfo->StartRecoveryTime because of TC retardiness + // xinef: removed !m_spellInfo->StartRecoveryTime // second los check failed in events // xinef: removed itemguid check, currently there is no such item in database if (!m_casttime && /*!m_castItemGUID &&*/ GetCurrentContainer() == CURRENT_GENERIC_SPELL) @@ -3640,9 +3640,9 @@ void Spell::_cast(bool skipCheck) if (modOwner) modOwner->RemoveSpellMods(this); - // Xinef: Fucking retarded idiots, why do we keep focus after spell is sent to air? + // Xinef: why do we keep focus after spell is sent to air? // Xinef: Because of this, in the middle of some animation after setting targetguid to 0 etc - // Xinef: we get focused to it out of nowhere, idiots... + // Xinef: we get focused to it out of nowhere... if (Creature* creatureCaster = m_caster->ToCreature()) creatureCaster->ReleaseFocus(this); } @@ -7032,7 +7032,7 @@ SpellCastResult Spell::CheckItems() } // check weapon presence in slots for main/offhand weapons - if (/*Moar retardnes! never skip those checks !(_triggeredCastFlags & TRIGGERED_IGNORE_EQUIPPED_ITEM_REQUIREMENT) &&*/ m_spellInfo->EquippedItemClass >= 0) + if (/*never skip those checks !(_triggeredCastFlags & TRIGGERED_IGNORE_EQUIPPED_ITEM_REQUIREMENT) &&*/ m_spellInfo->EquippedItemClass >= 0) { // main hand weapon required if (m_spellInfo->HasAttribute(SPELL_ATTR3_REQUIRES_MAIN_HAND_WEAPON)) diff --git a/src/server/game/Spells/SpellEffects.cpp b/src/server/game/Spells/SpellEffects.cpp index 4b066bfc0..4bc93beed 100644 --- a/src/server/game/Spells/SpellEffects.cpp +++ b/src/server/game/Spells/SpellEffects.cpp @@ -3919,7 +3919,7 @@ void Spell::EffectScriptEffect(SpellEffIndex effIndex) } break; }*/ - /* disabled for now, was being abused by idiots + /* disabled for now, was being abused // 5,000 Gold case 46642: { diff --git a/src/server/scripts/Northrend/Ulduar/Ulduar/boss_xt002.cpp b/src/server/scripts/Northrend/Ulduar/Ulduar/boss_xt002.cpp index 2f1645cb2..17fdc53b4 100644 --- a/src/server/scripts/Northrend/Ulduar/Ulduar/boss_xt002.cpp +++ b/src/server/scripts/Northrend/Ulduar/Ulduar/boss_xt002.cpp @@ -586,7 +586,7 @@ public: } } - // tc idiots, they use updateAI, while we have movementinform :) + // tc use updateAI, while we have movementinform :) void MovementInform(uint32 type, uint32 /*param*/) override { if (type == POINT_MOTION_TYPE) @@ -786,7 +786,7 @@ public: } } - // tc idiots, they use updateAI, while we have movementinform :) + // tc they use updateAI, while we have movementinform :) void MovementInform(uint32 type, uint32 /*param*/) override { if (type == POINT_MOTION_TYPE)