mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-23 05:00:55 +01:00
TGUIfies some VV actions, replaces the actions dropdown with a searchable one (#95480)
This commit is contained in:
@@ -421,13 +421,13 @@ ADMIN_VERB(remove_spell, R_FUN, "Remove Spell", ADMIN_VERB_NO_DESCRIPTION, ADMIN
|
||||
BLACKBOX_LOG_ADMIN_VERB("Remove Spell")
|
||||
|
||||
ADMIN_VERB(give_disease, R_FUN, "Give Disease", ADMIN_VERB_NO_DESCRIPTION, ADMIN_CATEGORY_HIDDEN, mob/living/victim)
|
||||
var/datum/disease/D = input(user, "Choose the disease to give to that guy", "ACHOO") as null|anything in sort_list(SSdisease.diseases, GLOBAL_PROC_REF(cmp_typepaths_asc))
|
||||
if(!D)
|
||||
var/datum/disease/disease = tgui_input_list(user, "Choose the disease to give to that guy", "ACHOO", sort_list(SSdisease.diseases, GLOBAL_PROC_REF(cmp_typepaths_asc)))
|
||||
if(!disease)
|
||||
return
|
||||
victim.ForceContractDisease(new D, FALSE, TRUE)
|
||||
victim.ForceContractDisease(new disease, FALSE, TRUE)
|
||||
BLACKBOX_LOG_ADMIN_VERB("Give Disease")
|
||||
log_admin("[key_name(user)] gave [key_name(victim)] the disease [D].")
|
||||
message_admins(span_adminnotice("[key_name_admin(user)] gave [key_name_admin(victim)] the disease [D]."))
|
||||
log_admin("[key_name(user)] gave [key_name(victim)] the disease [disease].")
|
||||
message_admins(span_adminnotice("[key_name_admin(user)] gave [key_name_admin(victim)] the disease [disease]."))
|
||||
|
||||
ADMIN_VERB_AND_CONTEXT_MENU(object_say, R_FUN, "OSay", ADMIN_VERB_NO_DESCRIPTION, ADMIN_CATEGORY_HIDDEN, obj/speaker in world)
|
||||
var/message = tgui_input_text(user, "What do you want the message to be?", "Make Sound", encode = FALSE)
|
||||
|
||||
Reference in New Issue
Block a user