This commit is contained in:
Ghommie
2020-04-11 17:43:09 +02:00
parent 31e0321808
commit 7615f63753
+5 -2
View File
@@ -187,15 +187,18 @@ GLOBAL_LIST_INIT(spells, typesof(/obj/effect/proc_holder/spell)) //needed for th
return TRUE
/obj/effect/proc_holder/spell/proc/invocation(mob/user = usr) //spelling the spell out and setting it on recharge/reducing charges amount
var/mob/living/L
if(isliving(user))
L = user
switch(invocation_type)
if("shout")
if(user.can_speak_vocal(invocation))
if(!L || L.can_speak_vocal(invocation))
if(prob(50))//Auto-mute? Fuck that noise
user.say(invocation, forced = "spell")
else
user.say(replacetext(invocation," ","`"), forced = "spell")
if("whisper")
if(user.can_speak_vocal(invocation))
if(!L || L.can_speak_vocal(invocation))
if(prob(50))
user.whisper(invocation)
else