Silly admins can't blindly break movement irreparably (#6897)

* Silly admins can't blindly break movement

* Updates pixel movement var protections
This commit is contained in:
Atermonera
2020-03-25 13:38:35 -07:00
committed by VirgoBot
parent 08be0a3fa1
commit 15e3ef676b
2 changed files with 8 additions and 1 deletions

View File

@@ -49,7 +49,7 @@
QDEL_NULL(riding_datum) //VOREStation Add QDEL_NULL(riding_datum) //VOREStation Add
/atom/movable/vv_edit_var(var_name, var_value) /atom/movable/vv_edit_var(var_name, var_value)
if(GLOB.VVpixelmovement[var_name]) //Pixel movement is not yet implemented, changing this will break everything irreversibly. if(var_name in GLOB.VVpixelmovement) //Pixel movement is not yet implemented, changing this will break everything irreversibly.
return FALSE return FALSE
return ..() return ..()

View File

@@ -310,6 +310,13 @@ GLOBAL_PROTECT(VVpixelmovement)
if(!variable) if(!variable)
return return
if(variable in GLOB.VVpixelmovement)
if(!check_rights(R_DEBUG))
return
var/prompt = alert(src, "Editing this var may irreparably break tile gliding for the rest of the round. THIS CAN'T BE UNDONE", "DANGER", "ABORT ", "Continue", " ABORT")
if (prompt != "Continue")
return
if(!O.can_vv_get(variable)) if(!O.can_vv_get(variable))
return return