死亡时普通子弹不掉落
This commit is contained in:
parent
56716dbc4b
commit
ef1faddfed
@ -2080,12 +2080,16 @@ void Human::DeadDrop()
|
|||||||
if (inventory_[slot] > 0) {
|
if (inventory_[slot] > 0) {
|
||||||
MetaData::Equip* equip_meta = MetaMgr::Instance()->GetEquipBySlotId(slot);
|
MetaData::Equip* equip_meta = MetaMgr::Instance()->GetEquipBySlotId(slot);
|
||||||
if (equip_meta) {
|
if (equip_meta) {
|
||||||
if (equip_meta->i->equip_type() == 2 &&
|
switch (equip_meta->i->_inventory_slot()) {
|
||||||
MetaMgr::Instance()->fighting_mode) {
|
case 4:
|
||||||
return;
|
case 5:
|
||||||
|
case 6:
|
||||||
|
{
|
||||||
|
a8::Vec2 drop_pos = GetPos();
|
||||||
|
room->DropItem(drop_pos, equip_meta->i->id(), inventory_[slot], 1);
|
||||||
|
}
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
a8::Vec2 drop_pos = GetPos();
|
|
||||||
room->DropItem(drop_pos, equip_meta->i->id(), inventory_[slot], 1);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user