This commit is contained in:
aozhiwei 2023-04-28 13:22:14 +08:00
parent c7d45faa84
commit ac98f6a6e0
3 changed files with 12 additions and 2 deletions

View File

@ -2583,9 +2583,17 @@ void Human::ProcLootWeapon(AddItemDTO& dto)
}
if (weapons[GUN_SLOT1].weapon_id != 0 && weapons[GUN_SLOT2].weapon_id != 0) {
if (GetCurrWeapon() == &weapons[GUN_SLOT1]) {
DropWeapon(GUN_SLOT2, 1);
if (mt::Param::s().pickup_weapon_replace_type) {
DropWeapon(GUN_SLOT1, 1);
} else {
DropWeapon(GUN_SLOT2, 1);
}
} else {
DropWeapon(GUN_SLOT1, 1);
if (mt::Param::s().pickup_weapon_replace_type) {
DropWeapon(GUN_SLOT2, 1);
} else {
DropWeapon(GUN_SLOT1, 1);
}
}
}
bool switch_gun = false;

View File

@ -36,6 +36,7 @@ namespace mt
s_.match_robot_time = GetIntParam("match_robot_time", 0);
s_.match_choose_time = GetIntParam("match_choose_time", 0);
s_.match_lock_time = GetIntParam("match_lock_time", 0);
s_.pickup_weapon_replace_type = GetIntParam("pickup_weapon_replace_type", 0);
#if 1
s_.match_lock_time++;
#endif

View File

@ -25,6 +25,7 @@ namespace mt
int newbie_room_weapon_id = 0;
std::vector<int> newbie_room_skills;
std::vector<const mt::SafeArea*> newbie_room_area;
int pickup_weapon_replace_type = 0;
int downed_relive_recover_hp = 0;