[MIRROR] moves sdql spell to vv dropdown (#5522)

* moves sdql spell to vv dropdown (#58911)

* moves sdql spell to vv dropdown

Co-authored-by: Fikou <piotrbryla@onet.pl>
This commit is contained in:
SkyratBot
2021-05-07 07:42:51 +01:00
committed by GitHub
co-authored by Fikou
parent bfa74ccf8d
commit f8f2c8222f
3 changed files with 7 additions and 2 deletions
+1
View File
@@ -110,6 +110,7 @@
#define VV_HK_DIRECT_CONTROL "direct_control"
#define VV_HK_GIVE_DIRECT_CONTROL "give_direct_control"
#define VV_HK_OFFER_GHOSTS "offer_ghosts"
#define VV_HK_SDQL_SPELL "sdql_spell"
// /mob/living/carbon
#define VV_HK_MAKE_AI "aiify"
@@ -207,8 +207,8 @@
#undef RAW_ADDRESS
/client/proc/cmd_give_sdql_spell(mob/target in GLOB.mob_list)
set category = "Debug.Admin"
set name = "Give SDQL spell"
set hidden = TRUE
if(CONFIG_GET(flag/sdql_spells))
var/datum/give_sdql_spell/ui = new(usr, target)
ui.ui_interact(usr)
+5 -1
View File
@@ -1191,6 +1191,7 @@
VV_DROPDOWN_OPTION(VV_HK_DIRECT_CONTROL, "Assume Direct Control")
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_SDQL_SPELL, "Give SDQL Spell")
/mob/vv_do_topic(list/href_list)
. = ..()
@@ -1242,7 +1243,10 @@
if(!check_rights(NONE))
return
offer_control(src)
if(href_list[VV_HK_SDQL_SPELL])
if(!check_rights(R_DEBUG))
return
usr.client.cmd_give_sdql_spell(src)
/**
* extra var handling for the logging var
*/