mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-13 10:31:29 +00:00
[Cleanup] Remove unused methods in zone/bot.cpp and zone/bot.h (#3315)
# Notes - Remove `DoFinishedSpellAETarget()`. - Remove `SendBotArcheryWearChange()`. - These are unused.
This commit is contained in:
parent
6a393bf0c3
commit
b19d3ac8a2
23
zone/bot.cpp
23
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.
|
// Returns the item id that is in the bot inventory collection for the specified slot.
|
||||||
EQ::ItemInstance* Bot::GetBotItem(uint16 slot_id) {
|
EQ::ItemInstance* Bot::GetBotItem(uint16 slot_id) {
|
||||||
EQ::ItemInstance* item = m_inv.GetItem(slot_id);
|
EQ::ItemInstance* item = m_inv.GetItem(slot_id);
|
||||||
@ -5867,16 +5854,6 @@ void Bot::GenerateSpecialAttacks() {
|
|||||||
SetSpecialAbility(SPECATK_TRIPLE, 1);
|
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) {
|
bool Bot::DoFinishedSpellSingleTarget(uint16 spell_id, Mob* spellTarget, EQ::spells::CastingSlot slot, bool& stopLogic) {
|
||||||
|
|
||||||
if (
|
if (
|
||||||
|
|||||||
@ -196,10 +196,8 @@ public:
|
|||||||
void SetAttackTimer() override;
|
void SetAttackTimer() override;
|
||||||
uint64 GetClassHPFactor();
|
uint64 GetClassHPFactor();
|
||||||
int64 CalcMaxHP() override;
|
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 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);
|
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 Camp(bool save_to_database = true);
|
||||||
void SetTarget(Mob* mob) override;
|
void SetTarget(Mob* mob) override;
|
||||||
void Zone();
|
void Zone();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user