[Feature] NPCs with bows and arrows do ranged attacks (#2322)

* NPCs with bows and arrows do ranged attacks

Who knew!!

* PR comments

Co-authored-by: Akkadius <akkadius1@gmail.com>
This commit is contained in:
Michael Cook (mackal)
2022-07-30 15:28:06 -04:00
committed by GitHub
parent 0f9427098d
commit dd71420a0e
4 changed files with 55 additions and 36 deletions
+10
View File
@@ -400,6 +400,16 @@ void NPC::AddLootDrop(
item->trivial_max_level = loot_drop.trivial_max_level;
item->equip_slot = EQ::invslot::SLOT_INVALID;
// unsure if required to equip, YOLO for now
if (item2->ItemType == EQ::item::ItemTypeBow) {
SetBowEquipped(true);
}
if (item2->ItemType == EQ::item::ItemTypeArrow) {
SetArrowEquipped(true);
}
if (loot_drop.equip_item > 0) {
uint8 eslot = 0xFF;
char newid[20];