mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 18:22:39 +00:00
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:
@@ -49,7 +49,7 @@
|
||||
QDEL_NULL(riding_datum) //VOREStation Add
|
||||
|
||||
/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 ..()
|
||||
|
||||
|
||||
@@ -310,6 +310,13 @@ GLOBAL_PROTECT(VVpixelmovement)
|
||||
if(!variable)
|
||||
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))
|
||||
return
|
||||
|
||||
|
||||
Reference in New Issue
Block a user