From c45f53a208d0bc657ea57fba46c64b6323f0214c Mon Sep 17 00:00:00 2001 From: Aronai Sieyes Date: Sat, 31 Jul 2021 23:08:09 -0400 Subject: [PATCH] Warn before overwriting vore prefs as simple mobs --- code/modules/vore/eating/vorepanel_vr.dm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/code/modules/vore/eating/vorepanel_vr.dm b/code/modules/vore/eating/vorepanel_vr.dm index a3e5e0f3568..6fad708c641 100644 --- a/code/modules/vore/eating/vorepanel_vr.dm +++ b/code/modules/vore/eating/vorepanel_vr.dm @@ -302,6 +302,10 @@ return set_attr(usr, params) if("saveprefs") + if(!ishuman(host) && !issilicon(host)) + var/choice = tgui_alert(usr, "Warning: Saving your vore panel while playing what is very-likely not your normal character will overwrite whatever character you have loaded in character setup. Maybe this is your 'playing a simple mob' slot, though. Are you SURE you want to overwrite your current slot with these vore bellies?", "WARNING!", list("No, abort!", "Yes, save.")) + if(choice != "Yes, save.") + return TRUE if(!host.save_vore_prefs()) tgui_alert_async(usr, "ERROR: Virgo-specific preferences failed to save!","Error") else