mirror of
https://github.com/ErikasKontenis/SabrehavenServer.git
synced 2025-12-17 23:27:11 +01:00
remove corpse owner on every corpse after every 10s
This commit is contained in:
@@ -3762,6 +3762,11 @@ void Game::internalDecayItem(Item* item)
|
||||
}
|
||||
}
|
||||
|
||||
void Game::RemoveCorpseOwner(Item* item)
|
||||
{
|
||||
item->removeAttribute(ITEM_ATTRIBUTE_CORPSEOWNER);
|
||||
}
|
||||
|
||||
void Game::checkDecay()
|
||||
{
|
||||
g_scheduler.addEvent(createSchedulerTask(EVENT_DECAYINTERVAL, std::bind(&Game::checkDecay, this)));
|
||||
|
||||
Reference in New Issue
Block a user