1
This commit is contained in:
parent
0313de2402
commit
c1574bff16
@ -2546,6 +2546,29 @@ void Human::DeadDrop()
|
||||
*old_skin = Skin();
|
||||
}
|
||||
}
|
||||
{
|
||||
//头盔
|
||||
if (helmet != 0) {
|
||||
a8::Vec2 dir = a8::Vec2::UP;
|
||||
dir.Rotate(a8::RandAngle());
|
||||
room->CreateLoot(helmet, GetPos() + dir * (40 + rand() % 50), 1, 1);
|
||||
helmet = 0;
|
||||
}
|
||||
//衣服
|
||||
if (chest != 0) {
|
||||
a8::Vec2 dir = a8::Vec2::UP;
|
||||
dir.Rotate(a8::RandAngle());
|
||||
room->CreateLoot(chest, GetPos() + dir * (40 + rand() % 50), 1, 1);
|
||||
chest = 0;
|
||||
}
|
||||
//背包
|
||||
if (backpack != 0) {
|
||||
a8::Vec2 dir = a8::Vec2::UP;
|
||||
dir.Rotate(a8::RandAngle());
|
||||
room->CreateLoot(backpack, GetPos() + dir * (40 + rand() % 50), 1, 1);
|
||||
backpack = 0;
|
||||
}
|
||||
}
|
||||
for (size_t slot = 0; slot < inventory_.size(); ++slot) {
|
||||
if (inventory_[slot] > 0) {
|
||||
MetaData::Equip* equip_meta = MetaMgr::Instance()->GetEquipBySlotId(slot);
|
||||
|
Loading…
x
Reference in New Issue
Block a user