From cb90d00832c1dc1da375ef7d46b36434759396b9 Mon Sep 17 00:00:00 2001 From: Alex King <89047260+Kinglykrab@users.noreply.github.com> Date: Mon, 3 Apr 2023 16:45:36 -0400 Subject: [PATCH] [Cleanup] Cleanup variable names in Bot::AddSpellToBotList() (#3248) # Notes - `max_hp` was named after a member variable. --- zone/botspellsai.cpp | 56 ++++++++++++++++++++++---------------------- 1 file changed, 28 insertions(+), 28 deletions(-) diff --git a/zone/botspellsai.cpp b/zone/botspellsai.cpp index 76f95c4db..897fc8602 100644 --- a/zone/botspellsai.cpp +++ b/zone/botspellsai.cpp @@ -3443,41 +3443,41 @@ DBbotspells_Struct* ZoneDatabase::GetBotSpells(uint32 bot_spell_id) // adds a spell to the list, taking into account priority and resorting list as needed. void Bot::AddSpellToBotList( - int16 iPriority, - uint16 iSpellID, - uint32 iType, - int16 iManaCost, - int32 iRecastDelay, - int16 iResistAdjust, - uint8 min_level, - uint8 max_level, - int8 min_hp, - int8 max_hp, - std::string bucket_name, - std::string bucket_value, - uint8 bucket_comparison + int16 in_priority, + uint16 in_spell_id, + uint32 in_type, + int16 in_mana_cost, + int32 in_recast_delay, + int16 in_resist_adjust, + uint8 in_min_level, + uint8 in_max_level, + int8 in_min_hp, + int8 in_max_hp, + std::string in_bucket_name, + std::string in_bucket_value, + uint8 in_bucket_comparison ) { - if (!IsValidSpell(iSpellID)) { + if (!IsValidSpell(in_spell_id)) { return; } HasAISpell = true; BotSpells_Struct t; - t.priority = iPriority; - t.spellid = iSpellID; - t.type = iType; - t.manacost = iManaCost; - t.recast_delay = iRecastDelay; - t.time_cancast = 0; - t.resist_adjust = iResistAdjust; - t.minlevel = min_level; - t.maxlevel = maxlevel; - t.min_hp = min_hp; - t.max_hp = max_hp; - t.bucket_name = bucket_name; - t.bucket_value = bucket_value; - t.bucket_comparison = bucket_comparison; + t.priority = in_priority; + t.spellid = in_spell_id; + t.type = in_type; + t.manacost = in_mana_cost; + t.recast_delay = in_recast_delay; + t.time_cancast = 0; + t.resist_adjust = in_resist_adjust; + t.minlevel = in_min_level; + t.maxlevel = in_max_level; + t.min_hp = in_min_hp; + t.max_hp = in_max_hp; + t.bucket_name = in_bucket_name; + t.bucket_value = in_bucket_value; + t.bucket_comparison = in_bucket_comparison; AIBot_spells.push_back(t);