mirror of
https://github.com/goonstation/goonstation-2016.git
synced 2026-07-12 09:32:38 +01:00
47 lines
1.3 KiB
Plaintext
47 lines
1.3 KiB
Plaintext
/datum/targetable/grinch/instakill
|
|
name = "Murder"
|
|
desc = "Induces instant cardiac arrest in a target."
|
|
targeted = 1
|
|
target_anything = 0
|
|
target_nodamage_check = 1
|
|
max_range = 1
|
|
cooldown = 4800
|
|
start_on_cooldown = 0
|
|
pointCost = 0
|
|
when_stunned = 0
|
|
not_when_handcuffed = 1
|
|
|
|
cast(mob/target)
|
|
if (!holder)
|
|
return 1
|
|
|
|
var/mob/living/M = holder.owner
|
|
|
|
if (!M || !target || !ismob(target))
|
|
return 1
|
|
|
|
if (M == target)
|
|
boutput(M, __red("Why would you want to kill yourself?"))
|
|
return 1
|
|
|
|
if (get_dist(M, target) > src.max_range)
|
|
boutput(M, __red("[target] is too far away."))
|
|
return 1
|
|
|
|
if (target.stat == 2)
|
|
boutput(M, __red("It would be a waste of time to murder the dead."))
|
|
return 1
|
|
|
|
if (!iscarbon(target))
|
|
boutput(M, __red("[target] is immune to the disease."))
|
|
return 1
|
|
|
|
var/mob/living/L = target
|
|
|
|
playsound(M.loc, 'sound/misc/loudcrunch.ogg', 75, 1, -1)
|
|
M.visible_message("<span style=\"color:red\"><b>[M] shrinks [L]'s heart down two sizes too small!</b></span>")
|
|
L.add_fingerprint(M) // Why not leave some forensic evidence?
|
|
L.contract_disease(/datum/ailment/disease/flatline, null, null, 1) // path, name, strain, bypass resist
|
|
|
|
logTheThing("combat", M, L, "uses the murder ability to induce cardiac arrest on %target% at [log_loc(M)].")
|
|
return 0 |