[Core] Pool-System: Allow pooling non-lootable gameobjects (c2638)
This commit is contained in:
parent
4a8a482151
commit
5feded2664
@ -793,15 +793,6 @@ void PoolManager::LoadFromDB()
|
|||||||
sLog.outErrorDb("`pool_gameobject` has a non existing gameobject spawn (GUID: %u) defined for pool id (%u), skipped.", guid, pool_id);
|
sLog.outErrorDb("`pool_gameobject` has a non existing gameobject spawn (GUID: %u) defined for pool id (%u), skipped.", guid, pool_id);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
GameObjectInfo const* goinfo = ObjectMgr::GetGameObjectInfo(data->id);
|
|
||||||
if (goinfo->type != GAMEOBJECT_TYPE_CHEST &&
|
|
||||||
goinfo->type != GAMEOBJECT_TYPE_GOOBER &&
|
|
||||||
goinfo->type != GAMEOBJECT_TYPE_FISHINGHOLE &&
|
|
||||||
goinfo->type != GAMEOBJECT_TYPE_TRAP)
|
|
||||||
{
|
|
||||||
sLog.outErrorDb("`pool_gameobject` has a not lootable gameobject spawn (GUID: %u, type: %u) defined for pool id (%u), skipped.", guid, goinfo->type, pool_id);
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
if (pool_id > max_pool_id)
|
if (pool_id > max_pool_id)
|
||||||
{
|
{
|
||||||
sLog.outErrorDb("`pool_gameobject` pool id (%i) is out of range compared to max pool id in `pool_template`, skipped.", pool_id);
|
sLog.outErrorDb("`pool_gameobject` pool id (%i) is out of range compared to max pool id in `pool_template`, skipped.", pool_id);
|
||||||
@ -865,15 +856,6 @@ void PoolManager::LoadFromDB()
|
|||||||
sLog.outErrorDb("`pool_gameobject_template` has a non existing gameobject spawn (GUID: %u Entry %u) defined for pool id (%u), skipped.", guid, entry_id, pool_id);
|
sLog.outErrorDb("`pool_gameobject_template` has a non existing gameobject spawn (GUID: %u Entry %u) defined for pool id (%u), skipped.", guid, entry_id, pool_id);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
GameObjectInfo const* goinfo = ObjectMgr::GetGameObjectInfo(data->id);
|
|
||||||
if (goinfo->type != GAMEOBJECT_TYPE_CHEST &&
|
|
||||||
goinfo->type != GAMEOBJECT_TYPE_GOOBER &&
|
|
||||||
goinfo->type != GAMEOBJECT_TYPE_FISHINGHOLE &&
|
|
||||||
goinfo->type != GAMEOBJECT_TYPE_TRAP)
|
|
||||||
{
|
|
||||||
sLog.outErrorDb("`pool_gameobject_template` has a not lootable gameobject spawn (GUID: %u Entry %u Type: %u) defined for pool id (%u), skipped.", guid, entry_id, goinfo->type, pool_id);
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
if (pool_id > max_pool_id)
|
if (pool_id > max_pool_id)
|
||||||
{
|
{
|
||||||
sLog.outErrorDb("`pool_gameobject_template` pool id (%i) is out of range compared to max pool id in `pool_template`, skipped.", pool_id);
|
sLog.outErrorDb("`pool_gameobject_template` pool id (%i) is out of range compared to max pool id in `pool_template`, skipped.", pool_id);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user