Warn before overwriting vore prefs as simple mobs

This commit is contained in:
Aronai Sieyes
2021-07-31 23:08:09 -04:00
parent 3c5fd5dcd3
commit c45f53a208
+4
View File
@@ -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