mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-21 19:19:12 +01:00
Warn before overwriting vore prefs as simple mobs
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user