Locks some really gamebreaking verbs to Maints (#17633)

This commit is contained in:
AffectedArc07
2022-04-22 08:27:54 +09:00
committed by GitHub
parent 135fb1802f
commit 469168517a
15 changed files with 27 additions and 57 deletions
+4
View File
@@ -5,6 +5,10 @@
set hidden = 1
if(!SSticker)
return
if(!check_rights(R_MAINTAINER))
return
switch(cinematic)
if("explosion")
var/parameter = input(src, "station_missed = ?", "Enter Parameter", 0) as num
-19
View File
@@ -1,22 +1,3 @@
/client/proc/Debug2()
set category = "Debug"
set name = "Debug-Game"
if(!check_rights(R_DEBUG))
return
if(GLOB.debug2)
GLOB.debug2 = 0
message_admins("[key_name_admin(src)] toggled debugging off.")
log_admin("[key_name(src)] toggled debugging off.")
else
GLOB.debug2 = 1
message_admins("[key_name_admin(src)] toggled debugging on.")
log_admin("[key_name(src)] toggled debugging on.")
SSblackbox.record_feedback("tally", "admin_verb", 1, "Debug Game") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
/* 21st Sept 2010
Updated by Skie -- Still not perfect but better!
Stuff you can't do:
+2 -1
View File
@@ -125,7 +125,8 @@
set category = "Debug"
// It's gated by "Debug Verbs", so might as well gate it to the debug permission
if(!check_rights(R_DEBUG))
// AA: This seems harmless but is **incredibly** powerful and dangerous. Maints only.
if(!check_rights(R_MAINTAINER))
return
var/refstring = clean_input("Which reference?","Ref")
+1 -1
View File
@@ -543,7 +543,7 @@ GLOBAL_PROTECT(VVmaint_only)
if(prompt != "Continue")
return FALSE
if(param_var_name in GLOB.VVmaint_only)
if(!is_maintainer(usr))
if(!check_rights(R_MAINTAINER))
alert(usr, "Editing this variable is restricted to Maintainers only.", "Error", "Ok")
return FALSE
+1 -1
View File
@@ -5,7 +5,7 @@
set name = "Set Ticklag"
set desc = "Sets a new tick lag. Recommend you don't mess with this too much! Stable, time-tested ticklag value is 0.9"
if(!check_rights(R_DEBUG)) return
if(!check_rights(R_MAINTAINER)) return
var/newtick = input("Sets a new tick lag. Please don't mess with this too much! The stable, time-tested ticklag value is 0.9","Lag of Tick", world.tick_lag) as num|null
//I've used ticks of 2 before to help with serious singulo lags
@@ -9,7 +9,6 @@ GLOBAL_LIST_INIT(admin_verbs_show_debug_verbs, list(
/client/proc/count_objects_all,
/client/proc/cmd_assume_direct_control,
/client/proc/startSinglo,
/client/proc/ticklag,
/client/proc/cmd_admin_grantfullaccess,
/client/proc/cmd_admin_areatest,
/client/proc/cmd_admin_rejuvenate,
@@ -17,7 +16,6 @@ GLOBAL_LIST_INIT(admin_verbs_show_debug_verbs, list(
/client/proc/forceEvent,
/client/proc/admin_redo_space_transitions,
/client/proc/make_turf_space_map,
/client/proc/vv_by_ref
))
// Would be nice to make this a permanent admin pref so we don't need to click it each time