mirror of
https://github.com/yogstation13/Yogstation.git
synced 2025-02-26 09:04:50 +00:00
spells don't trigger spam (#19477)
This commit is contained in:
@@ -104,8 +104,8 @@ List of nuances:
|
||||
if(isliving(AM))
|
||||
var/mob/living/L = AM
|
||||
if(!whisper)
|
||||
L.say(message, "clock", spans, language=/datum/language/common, ignore_spam = TRUE)
|
||||
L.say(message, "clock", spans, language=/datum/language/common, ignore_spam = TRUE, forced="clockwork_say")
|
||||
else
|
||||
L.whisper(message, "clock", spans, language=/datum/language/common)
|
||||
L.whisper(message, "clock", spans, language=/datum/language/common, ignore_spam = TRUE, forced="clockwork_say")
|
||||
else
|
||||
AM.say(message, language=/datum/language/common)
|
||||
AM.say(message, language=/datum/language/common, ignore_spam = TRUE, forced="clockwork_say")
|
||||
|
||||
@@ -176,7 +176,7 @@
|
||||
to_chat(usr, span_warning("\The [src]'s internal magic supply is still recharging!")) // Yogs -- text macro fix
|
||||
return
|
||||
|
||||
usr.say("Rise, my creation! Off your page into this realm!", forced = "stickman summoning")
|
||||
usr.say("Rise, my creation! Off your page into this realm!", ignore_spam = TRUE, forced = "stickman summoning")
|
||||
playsound(src.loc, 'sound/magic/summon_magic.ogg', 50, 1, 1)
|
||||
var/mob/living/M = new /mob/living/simple_animal/hostile/stickman(get_turf(usr))
|
||||
var/list/factions = usr.faction
|
||||
|
||||
@@ -344,15 +344,15 @@
|
||||
switch(invocation_type)
|
||||
if(INVOCATION_SHOUT)
|
||||
if(prob(50))
|
||||
owner.say(invocation, forced = "spell ([src])")
|
||||
owner.say(invocation, ignore_spam = TRUE, forced = "spell ([src])")
|
||||
else
|
||||
owner.say(replacetext(invocation," ","`"), forced = "spell ([src])")
|
||||
owner.say(replacetext(invocation," ","`"), ignore_spam = TRUE, forced = "spell ([src])")
|
||||
|
||||
if(INVOCATION_WHISPER)
|
||||
if(prob(50))
|
||||
owner.whisper(invocation, forced = "spell ([src])")
|
||||
owner.whisper(invocation, ignore_spam = TRUE, forced = "spell ([src])")
|
||||
else
|
||||
owner.whisper(replacetext(invocation," ","`"), forced = "spell ([src])")
|
||||
owner.whisper(replacetext(invocation," ","`"), ignore_spam = TRUE, forced = "spell ([src])")
|
||||
|
||||
if(INVOCATION_EMOTE)
|
||||
owner.visible_message(invocation, invocation_self_message)
|
||||
|
||||
Reference in New Issue
Block a user