[MIRROR] mass refactor of holder checks (#11155)

Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2025-07-08 10:31:10 -07:00
committed by GitHub
parent 54d0d16826
commit 7161a6c22e
60 changed files with 381 additions and 123 deletions

View File

@@ -2,7 +2,7 @@
set category = "Mapping"
set name = "Check Piping"
set background = 1
if(!src.holder)
if(!check_rights_for(src, R_HOLDER))
return
feedback_add_details("admin_verb","CP") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
@@ -43,7 +43,7 @@
/client/proc/powerdebug()
set category = "Mapping"
set name = "Check Power"
if(!src.holder)
if(!check_rights_for(src, R_HOLDER))
return
feedback_add_details("admin_verb","CPOW") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!