Revert "Revert "Merge pull request #838 from ArchieBeepBoop/test1""

This reverts commit 08c8f744a9.
This commit is contained in:
Archie
2021-01-08 17:03:24 -03:00
parent 08c8f744a9
commit 87ce4d858c
141 changed files with 12700 additions and 12694 deletions
+3 -5
View File
@@ -447,11 +447,9 @@ GLOBAL_LIST_INIT(admin_verbs_hideable, list(
mob.name = initial(mob.name)
mob.mouse_opacity = initial(mob.mouse_opacity)
else
var/new_key = ckeyEx(input("Enter your desired display name.", "Fake Key", key) as text|null)
var/new_key = ckeyEx(stripped_input(usr, "Enter your desired display name.", "Fake Key", key, 26))
if(!new_key)
return
if(length(new_key) >= 26)
new_key = copytext(new_key, 1, 26)
holder.fakekey = new_key
createStealthKey()
if(isobserver(mob))
@@ -558,9 +556,9 @@ GLOBAL_LIST_INIT(admin_verbs_hideable, list(
set desc = "Gives a spell to a mob."
var/list/spell_list = list()
var/type_length = length("/obj/effect/proc_holder/spell") + 2
var/type_length = length_char("/obj/effect/proc_holder/spell") + 2
for(var/A in GLOB.spells)
spell_list[copytext("[A]", type_length)] = A
spell_list[copytext_char("[A]", type_length)] = A
var/obj/effect/proc_holder/spell/S = input("Choose the spell to give to that guy", "ABRAKADABRA") as null|anything in spell_list
if(!S)
return