From b19d3ac8a269c07639b703fdb1013d88c9aaecb3 Mon Sep 17 00:00:00 2001 From: Alex King <89047260+Kinglykrab@users.noreply.github.com> Date: Sat, 29 Apr 2023 20:59:05 -0400 Subject: [PATCH] [Cleanup] Remove unused methods in zone/bot.cpp and zone/bot.h (#3315) # Notes - Remove `DoFinishedSpellAETarget()`. - Remove `SendBotArcheryWearChange()`. - These are unused. --- zone/bot.cpp | 23 ----------------------- zone/bot.h | 2 -- 2 files changed, 25 deletions(-) diff --git a/zone/bot.cpp b/zone/bot.cpp index cafac7bb3..74df37948 100644 --- a/zone/bot.cpp +++ b/zone/bot.cpp @@ -3605,19 +3605,6 @@ void Bot::LevelBotWithClient(Client* client, uint8 level, bool sendlvlapp) { } } -void Bot::SendBotArcheryWearChange(uint8 material_slot, uint32 material, uint32 color) { - auto outapp = new EQApplicationPacket(OP_WearChange, sizeof(WearChange_Struct)); - auto wc = (WearChange_Struct*)outapp->pBuffer; - - wc->spawn_id = GetID(); - wc->material = material; - wc->color.Color = color; - wc->wear_slot_id = material_slot; - - entity_list.QueueClients(this, outapp); - safe_delete(outapp); -} - // Returns the item id that is in the bot inventory collection for the specified slot. EQ::ItemInstance* Bot::GetBotItem(uint16 slot_id) { EQ::ItemInstance* item = m_inv.GetItem(slot_id); @@ -5867,16 +5854,6 @@ void Bot::GenerateSpecialAttacks() { SetSpecialAbility(SPECATK_TRIPLE, 1); } -bool Bot::DoFinishedSpellAETarget(uint16 spell_id, Mob* spellTarget, EQ::spells::CastingSlot slot, bool& stopLogic) { - if (GetClass() == BARD) { - if (!ApplyBardPulse(bardsong, this, bardsong_slot)) - InterruptSpell(SONG_ENDS_ABRUPTLY, 0x121, bardsong); - - stopLogic = true; - } - return true; -} - bool Bot::DoFinishedSpellSingleTarget(uint16 spell_id, Mob* spellTarget, EQ::spells::CastingSlot slot, bool& stopLogic) { if ( diff --git a/zone/bot.h b/zone/bot.h index e3946d2fc..5cd5323a9 100644 --- a/zone/bot.h +++ b/zone/bot.h @@ -196,10 +196,8 @@ public: void SetAttackTimer() override; uint64 GetClassHPFactor(); int64 CalcMaxHP() override; - bool DoFinishedSpellAETarget(uint16 spell_id, Mob* spellTarget, EQ::spells::CastingSlot slot, bool &stopLogic); bool DoFinishedSpellSingleTarget(uint16 spell_id, Mob* spellTarget, EQ::spells::CastingSlot slot, bool &stopLogic); bool DoFinishedSpellGroupTarget(uint16 spell_id, Mob* spellTarget, EQ::spells::CastingSlot slot, bool &stopLogic); - void SendBotArcheryWearChange(uint8 material_slot, uint32 material, uint32 color); void Camp(bool save_to_database = true); void SetTarget(Mob* mob) override; void Zone();