mirror of
https://github.com/goonstation/goonstation-2020.git
synced 2026-08-24 20:46:12 +01:00
39 lines
825 B
Plaintext
39 lines
825 B
Plaintext
/datum/targetable/vampiric_zombie/speak
|
|
name = "Speak"
|
|
desc = "Telepathically speak to your master and your fellow ghouls."
|
|
icon_state = "ghoulspeak"
|
|
targeted = 0
|
|
target_nodamage_check = 1
|
|
max_range = 1
|
|
cooldown = 0
|
|
pointCost = 0
|
|
when_stunned = 1
|
|
not_when_handcuffed = 0
|
|
restricted_area_check = 0
|
|
unlock_message = ""
|
|
|
|
incapacitation_check()
|
|
.= 1
|
|
|
|
cast(mob/target)
|
|
if (!holder)
|
|
return 1
|
|
|
|
var/mob/living/M = holder.owner
|
|
var/datum/abilityHolder/vampiric_zombie/H = holder
|
|
|
|
if (!M)
|
|
return 1
|
|
|
|
var/message = html_encode(input("Choose something to say:","Enter Message.","") as null|text)
|
|
if (!message)
|
|
return
|
|
logTheThing("say", M, M.name, "[message]")
|
|
|
|
if (!H.master)
|
|
boutput(M, __red("Your link to your master has been severed!"))
|
|
return 1
|
|
|
|
.= H.msg_to_master(message)
|
|
|
|
return 0 |