confirm before killing

This commit is contained in:
2025-02-10 19:26:51 -06:00
committed by Celtic Minstrel
parent a6a886be2b
commit d2fb94b6c6
2 changed files with 21 additions and 6 deletions

View File

@@ -2085,13 +2085,16 @@ void debug_kill_party() {
if(recording){
record_action("debug_kill_party", "");
}
for(short i = 0; i < 6; i++) {
if(univ.party[i].is_alive())
kill_pc(univ.party[i],eMainStatus::ABSENT);
std::string confirm = cChoiceDlog("kill-party-confirm",{"yes","no"}).show();
if(confirm == "yes"){
for(short i = 0; i < 6; i++) {
if(univ.party[i].is_alive())
kill_pc(univ.party[i],eMainStatus::ABSENT);
}
draw_terrain();
add_string_to_buf("Debug: Kill the party.");
advance_time(false, true, true);
}
draw_terrain();
add_string_to_buf("Debug: Kill the party.");
advance_time(false, true, true);
}
void debug_magic_map() {