1
This commit is contained in:
parent
0c244156f0
commit
dbb7d34342
@ -551,6 +551,14 @@ int Room::CreateLootEx(int equip_id, a8::Vec2 born_pos, a8::Vec2 pos, int count,
|
||||
AddToEntityHash(entity);
|
||||
grid_service->AddRoomEntity(this, entity);
|
||||
entity->BroadcastFullState(this);
|
||||
if (equip_meta->i->_inventory_slot() == IS_OIL_BUCKET) {
|
||||
MetaData::MapThing* dummy_meta = MetaMgr::Instance()->GetMapThing(equip_meta->int_param1);
|
||||
if (dummy_meta->i->thing_type() != kObstacleOilBucket) {
|
||||
abort();
|
||||
}
|
||||
RoomObstacle* dummy_obj = CreateObstacle(equip_meta->int_param1, pos.x, pos.y);
|
||||
entity->dummy_thing_uniid = dummy_obj->GetUniId();
|
||||
}
|
||||
return entity->GetUniId();
|
||||
} else {
|
||||
return 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user