添加毒品圈判断

This commit is contained in:
aozhiwei 2020-05-28 18:16:40 +08:00
parent 97920b847e
commit 4f9da03f43

View File

@ -2154,7 +2154,7 @@ void Room::ProcDieAndroid(int die_time, int die_num)
alive_humans_copy.erase(alive_humans_copy.begin() + i);
break;
}
if (killer && (rand() % 100 < 70)) {
if (killer && ((rand() % 100 < 70) || !gas_data.old_area_meta)) {
hum->BeKill(killer->entity_uniid,
killer->name,
killer->curr_weapon->weapon_id);
@ -2174,7 +2174,7 @@ void Room::ProcDieAndroid(int die_time, int die_num)
++dead_num;
break;
}
} while(++try_count < 40 && dead_num < die_num && !alive_humans.empty());
} while(++try_count < 10 && dead_num < die_num && !alive_humans.empty());
}
void Room::CheckAutoDie(Human* target,