Admin VV dropdown button to grant all access (#93427)

This commit is contained in:
Isratosh
2025-10-19 10:26:26 -06:00
committed by GitHub
parent b2ea9b114a
commit 58422276a6
2 changed files with 8 additions and 0 deletions

View File

@@ -136,6 +136,7 @@
#define VV_HK_VIEW_PLANES "view_planes"
#define VV_HK_GIVE_AI "give_ai"
#define VV_HK_GIVE_AI_SPEECH "give_ai_speech"
#define VV_HK_GIVE_ACCESS "give_access"
// /mob/living
#define VV_HK_GIVE_SPEECH_IMPEDIMENT "impede_speech"

View File

@@ -1382,6 +1382,7 @@
VV_DROPDOWN_OPTION(VV_HK_GIVE_DIRECT_CONTROL, "Give Direct Control")
VV_DROPDOWN_OPTION(VV_HK_OFFER_GHOSTS, "Offer Control to Ghosts")
VV_DROPDOWN_OPTION(VV_HK_VIEW_PLANES, "View/Edit Planes")
VV_DROPDOWN_OPTION(VV_HK_GIVE_ACCESS, "Give Access")
/mob/vv_do_topic(list/href_list)
. = ..()
@@ -1455,6 +1456,12 @@
if(!check_rights(R_DEBUG))
return
usr.client.edit_plane_masters(src)
if(href_list[VV_HK_GIVE_ACCESS])
if(!check_rights(NONE))
return
AddComponent(/datum/component/simple_access, SSid_access.get_region_access_list(list(REGION_ALL_GLOBAL)))
to_chat(usr, span_notice("Access granted."))
/**
* extra var handling for the logging var
*/