Skip to content

Commit

Permalink
Changes default verbs for staff (#7027)
Browse files Browse the repository at this point in the history
# About the pull request

Gives all staff announcement and remote control verbs.

# Changelog
:cl:
admin: All staff now have Admin Announcement and Toggle Remote Control
verbs.
admin: Moved shuttle manipulator to minor event perms rather than admin.
code: Changed rights check on Toggle Remote Control and Shuttle
Manipulator to check for mod/minor event perms respectively, or debug.
/:cl:
  • Loading branch information
realforest2001 committed Aug 25, 2024
1 parent 7c8d250 commit fad7c01
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions code/modules/admin/admin_verbs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,7 @@ GLOBAL_LIST_INIT(admin_verbs_admin, list(
/datum/admins/proc/admin_force_selfdestruct,
/client/proc/check_round_statistics,
/client/proc/force_teleporter,
/client/proc/matrix_editor,
/datum/admins/proc/open_shuttlepanel
/client/proc/matrix_editor
))

GLOBAL_LIST_INIT(admin_verbs_ban, list(
Expand Down Expand Up @@ -143,6 +142,7 @@ GLOBAL_LIST_INIT(admin_verbs_minor_event, list(
/client/proc/toggle_hardcore_perma,
/client/proc/toggle_bypass_joe_restriction,
/client/proc/toggle_joe_respawns,
/datum/admins/proc/open_shuttlepanel
))

GLOBAL_LIST_INIT(admin_verbs_major_event, list(
Expand Down Expand Up @@ -220,6 +220,7 @@ GLOBAL_LIST_INIT(admin_verbs_debug, list(
/datum/admins/proc/view_href_log, /*shows the server HREF log for this round*/
/datum/admins/proc/view_tgui_log, /*shows the server TGUI log for this round*/
/client/proc/admin_blurb,
/datum/admins/proc/open_shuttlepanel,
))

GLOBAL_LIST_INIT(admin_verbs_debug_advanced, list(
Expand Down
2 changes: 1 addition & 1 deletion code/modules/admin/tabs/event_tab.dm
Original file line number Diff line number Diff line change
Expand Up @@ -718,7 +718,7 @@
set name = "Toggle Remote Control"
set category = "Admin.Events"

if(!check_rights(R_SPAWN))
if(!check_rights(R_MOD|R_DEBUG))
return

remote_control = !remote_control
Expand Down
2 changes: 1 addition & 1 deletion code/modules/admin/verbs/shuttlepanel.dm
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
set name = "Shuttle Manipulator"
set desc = "Opens the shuttle manipulator UI."

if(!check_rights(R_ADMIN|R_DEBUG|R_HOST))
if(!check_rights(R_EVENT|R_DEBUG|R_HOST))
return

SSshuttle.tgui_interact(usr)
Expand Down

0 comments on commit fad7c01

Please sign in to comment.