mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 17:51:28 +00:00
Fix for npc corpse looting not updating appearance of looted items
This commit is contained in:
parent
52d79f89a9
commit
a7cbe2f60e
@ -255,6 +255,7 @@ void NPC::AddLootDrop(const EQEmu::ItemData *item2, ItemList* itemlist, int16 ch
|
||||
item->attuned = 0;
|
||||
item->min_level = minlevel;
|
||||
item->max_level = maxlevel;
|
||||
item->equip_slot = EQEmu::inventory::slotInvalid;
|
||||
|
||||
if (equipit) {
|
||||
uint8 eslot = 0xFF;
|
||||
@ -399,8 +400,8 @@ void NPC::AddLootDrop(const EQEmu::ItemData *item2, ItemList* itemlist, int16 ch
|
||||
}
|
||||
if (found) {
|
||||
CalcBonuses(); // This is less than ideal for bulk adding of items
|
||||
item->equip_slot = foundslot;
|
||||
}
|
||||
item->equip_slot = item2->Slots;
|
||||
}
|
||||
|
||||
if(itemlist != nullptr)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user