mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-13 18:51:29 +00:00
Add ground spawns to discovered items feature. (#2648)
* Add ground spawns to discovered items feature.
* Add {}
This commit is contained in:
parent
d9e5056657
commit
f188c1394a
@ -535,6 +535,15 @@ bool Object::HandleClick(Client* sender, const ClickObject_Struct* click_object)
|
|||||||
sender->PutItemInInventory(EQ::invslot::slotCursor, *m_inst, false);
|
sender->PutItemInInventory(EQ::invslot::slotCursor, *m_inst, false);
|
||||||
sender->SendItemPacket(EQ::invslot::slotCursor, m_inst, ItemPacketTrade);
|
sender->SendItemPacket(EQ::invslot::slotCursor, m_inst, ItemPacketTrade);
|
||||||
|
|
||||||
|
// Could be an undiscovered ground_spawn
|
||||||
|
if (m_ground_spawn && (RuleB(Character, EnableDiscoveredItems)))
|
||||||
|
{
|
||||||
|
if (!sender->GetGM() && !sender->IsDiscovered(item->ID))
|
||||||
|
{
|
||||||
|
sender->DiscoverItem(item->ID);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if(cursordelete) // delete the item if it's a duplicate lore. We have to do this because the client expects the item packet
|
if(cursordelete) // delete the item if it's a duplicate lore. We have to do this because the client expects the item packet
|
||||||
sender->DeleteItemInInventory(EQ::invslot::slotCursor);
|
sender->DeleteItemInInventory(EQ::invslot::slotCursor);
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user