忽略空掉落

This commit is contained in:
aozhiwei 2020-05-25 11:50:05 +08:00
parent cfe26ae1a6
commit ec0cfff61d

View File

@ -2948,6 +2948,9 @@ void Human::DropItems(Obstacle* obstacle)
is_treasure_box = ((RoomObstacle*)obstacle)->is_treasure_box; is_treasure_box = ((RoomObstacle*)obstacle)->is_treasure_box;
} }
int drop_id = obstacle->meta->i->drop(); int drop_id = obstacle->meta->i->drop();
if (drop_id == 0) {
return;
}
if (room->room_type == RT_NewBrid && IsPlayer()) { if (room->room_type == RT_NewBrid && IsPlayer()) {
if (is_treasure_box) { if (is_treasure_box) {
if (box_drop_times_ < MetaMgr::Instance()->newbie_airdrop.size()) { if (box_drop_times_ < MetaMgr::Instance()->newbie_airdrop.size()) {