mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-22 03:27:46 +01:00
Adds vorepanel save doublecheck for non-slot chars
Makes the vorepanel save button also do the double check it gives for simplemobs when the user is playing a character whose real_name doesn't match their client prefs, such as during body swap shenanigans etc.
This commit is contained in:
@@ -304,7 +304,7 @@
|
||||
return set_attr(usr, params)
|
||||
|
||||
if("saveprefs")
|
||||
if(!ishuman(host) && !issilicon(host))
|
||||
if(host.real_name != host.client.prefs.real_name || !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
|
||||
|
||||
Reference in New Issue
Block a user