remove corpse owner on every corpse after every 10s

This commit is contained in:
ErikasKontenis
2019-11-13 21:26:42 +02:00
parent ae7672ee55
commit 93f6c328fc
3 changed files with 7 additions and 1 deletions

View File

@@ -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)));