add missing corpses from 781. remove self implemented logic for corpse owner expire. Update every monster with new corpse for self owner expiring

This commit is contained in:
ErikasKontenis
2019-11-17 14:33:25 +02:00
parent 408706dc78
commit 7f7357a419
148 changed files with 769 additions and 153 deletions

View File

@@ -712,7 +712,6 @@ bool Creature::dropCorpse(Creature* lastHitCreature, Creature* mostDamageCreatur
if (corpse) {
g_game.internalAddItem(tile, corpse, INDEX_WHEREEVER, FLAG_NOLIMIT);
g_game.startDecay(corpse);
g_scheduler.addEvent(createSchedulerTask(10000, std::bind(&Game::RemoveCorpseOwner, &g_game, corpse)));
}
//scripting event - onDeath

View File

@@ -3772,11 +3772,6 @@ 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)));

View File

@@ -485,7 +485,6 @@ class Game
void setBedSleeper(BedItem* bed, uint32_t guid);
void removeBedSleeper(uint32_t guid);
bool reload(ReloadTypes_t reloadType);
void Game::RemoveCorpseOwner(Item* item);
Groups groups;
Map map;
Raids raids;