[Cleanup] Cleanup variable names in Bot::AddSpellToBotList() (#3248)

# Notes
- `max_hp` was named after a member variable.
This commit is contained in:
Alex King 2023-04-03 16:45:36 -04:00 committed by GitHub
parent f752b57a55
commit cb90d00832
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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. // adds a spell to the list, taking into account priority and resorting list as needed.
void Bot::AddSpellToBotList( void Bot::AddSpellToBotList(
int16 iPriority, int16 in_priority,
uint16 iSpellID, uint16 in_spell_id,
uint32 iType, uint32 in_type,
int16 iManaCost, int16 in_mana_cost,
int32 iRecastDelay, int32 in_recast_delay,
int16 iResistAdjust, int16 in_resist_adjust,
uint8 min_level, uint8 in_min_level,
uint8 max_level, uint8 in_max_level,
int8 min_hp, int8 in_min_hp,
int8 max_hp, int8 in_max_hp,
std::string bucket_name, std::string in_bucket_name,
std::string bucket_value, std::string in_bucket_value,
uint8 bucket_comparison uint8 in_bucket_comparison
) { ) {
if (!IsValidSpell(iSpellID)) { if (!IsValidSpell(in_spell_id)) {
return; return;
} }
HasAISpell = true; HasAISpell = true;
BotSpells_Struct t; BotSpells_Struct t;
t.priority = iPriority; t.priority = in_priority;
t.spellid = iSpellID; t.spellid = in_spell_id;
t.type = iType; t.type = in_type;
t.manacost = iManaCost; t.manacost = in_mana_cost;
t.recast_delay = iRecastDelay; t.recast_delay = in_recast_delay;
t.time_cancast = 0; t.time_cancast = 0;
t.resist_adjust = iResistAdjust; t.resist_adjust = in_resist_adjust;
t.minlevel = min_level; t.minlevel = in_min_level;
t.maxlevel = maxlevel; t.maxlevel = in_max_level;
t.min_hp = min_hp; t.min_hp = in_min_hp;
t.max_hp = max_hp; t.max_hp = in_max_hp;
t.bucket_name = bucket_name; t.bucket_name = in_bucket_name;
t.bucket_value = bucket_value; t.bucket_value = in_bucket_value;
t.bucket_comparison = bucket_comparison; t.bucket_comparison = in_bucket_comparison;
AIBot_spells.push_back(t); AIBot_spells.push_back(t);