From c5e211f07e8932f7d7b048ebb50e5d39fec859e5 Mon Sep 17 00:00:00 2001 From: Aokromes Date: Sat, 29 Apr 2017 10:53:48 +0200 Subject: Coding style --- .../EasternKingdoms/zone_dun_morogh_area_coldridge_valley.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/server/scripts/EasternKingdoms/zone_dun_morogh_area_coldridge_valley.cpp b/src/server/scripts/EasternKingdoms/zone_dun_morogh_area_coldridge_valley.cpp index ee816c4c5a8..7dd1ddcf63a 100644 --- a/src/server/scripts/EasternKingdoms/zone_dun_morogh_area_coldridge_valley.cpp +++ b/src/server/scripts/EasternKingdoms/zone_dun_morogh_area_coldridge_valley.cpp @@ -144,13 +144,13 @@ public: void Initialize() { hitBySpell = false; - PercentHP = urand(15, 55); + percentHP = urand(15, 55); } void Reset() override { Initialize(); - me->SetHealth(me->CountPctFromMaxHealth(PercentHP)); + me->SetHealth(me->CountPctFromMaxHealth(percentHP)); } void SpellHit(Unit* caster, SpellInfo const* spell) override @@ -162,7 +162,7 @@ public: } if (spell->Id == SPELL_FLASH_HEAL) if (caster->GetTypeId() == TYPEID_PLAYER) - caster->ToPlayer()->KilledMonsterCredit(QUEST_KILL_CREDIT); + caster->ToPlayer()->KilledMonsterCredit(QUEST_KILL_CREDIT); } void UpdateAI(uint32 diff) override @@ -177,7 +177,7 @@ public: switch (eventId) { case EVENT_RESET_HEALTH: - me->SetHealth(me->CountPctFromMaxHealth(PercentHP)); + me->SetHealth(me->CountPctFromMaxHealth(percentHP)); hitBySpell = false; break; default: @@ -187,7 +187,7 @@ public: } private: EventMap _events; - int8 PercentHP; + int8 percentHP; bool hitBySpell; }; @@ -261,7 +261,6 @@ public: struct npc_milos_gyro_AI : public VehicleAI { npc_milos_gyro_AI(Creature* creature) : VehicleAI(creature) - { Initialize(); } -- cgit v1.2.3