Files
kyunkyunkyun b0463d3c83 Convert most spans to defines (#31080)
* spanish?

* aaaagain

* keep maptext

* Update robot_items.dm

* Update span_defines.dm

* compiles

* Update silicon_mob.dm

* compile
2025-12-13 23:55:48 +00:00

29 lines
1.1 KiB
Plaintext

/datum/spell/alien_spell/whisper
name = "Whisper"
desc = "Whisper into a target's mind."
plasma_cost = 10
action_icon_state = "alien_whisper"
var/target
/datum/spell/alien_spell/whisper/create_new_targeting() // Yeah this is copy and pasted code from cryoken and it's good enough
var/datum/spell_targeting/click/T = new()
T.allowed_type = /mob/living
T.click_radius = 0
T.try_auto_target = FALSE
T.selection_type = SPELL_SELECTION_RANGE
T.include_user = TRUE
return T
/datum/spell/alien_spell/whisper/cast(list/targets, mob/living/carbon/user)
var/mob/living/target = targets[1]
var/msg = tgui_input_text(user, "Message:", "Alien Whisper")
if(!msg)
revert_cast(user)
return
log_say("(AWHISPER to [key_name(target)]) [msg]", user)
to_chat(target, "<span class='noticealien'>You hear a strange, alien voice in your head...<span class='noticealien'> [msg]")
to_chat(user, SPAN_NOTICEALIEN("You said: [msg] to [target]"))
for(var/mob/dead/observer/ghosts in GLOB.player_list)
ghosts.show_message("<i>Alien message from <b>[user]</b> ([ghost_follow_link(user, ghost=ghosts)]) to <b>[target]</b> ([ghost_follow_link(target, ghost=ghosts)]): [msg]</i>")