mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-09 07:46:20 +00:00
Admin VV dropdown button to grant all access (#93427)
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user