This commit is contained in:
aozhiwei 2022-11-25 18:27:37 +08:00
parent 9d74243158
commit 1fd175e5f5

View File

@ -4461,7 +4461,10 @@ void Human::DropWeapon(int weapon_idx, int num)
}
}
}
if (create_loot) {
if (create_loot ||
weapon_idx == GUN_SLOT0 ||
weapon_idx == GUN_SLOT1 ||
weapon_idx == GUN_SLOT2) {
a8::Vec2 dir = a8::Vec2::UP;
dir.Rotate(a8::RandAngle());
room->CreateLoot(weapon_id, GetPos() + dir * (40 + rand() % 50), 1, 1);