mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-15 20:22:07 +00:00
* Refactors most spans into span procs * AA * a * AAAAAAAAAAAAAAAAAAAAAA * Update species.dm Co-authored-by: Watermelon914 <37270891+Watermelon914@users.noreply.github.com> Co-authored-by: Gandalf <jzo123@hotmail.com>
22 lines
779 B
Plaintext
22 lines
779 B
Plaintext
/// Rips off all the limbs of the target
|
|
/datum/smite/nugget
|
|
name = "Nugget"
|
|
|
|
/datum/smite/nugget/effect(client/user, mob/living/target)
|
|
. = ..()
|
|
|
|
if (!iscarbon(target))
|
|
to_chat(user, span_warning("This must be used on a carbon mob."), confidential = TRUE)
|
|
return
|
|
|
|
var/mob/living/carbon/carbon_target = target
|
|
var/timer = 2 SECONDS
|
|
for (var/_limb in carbon_target.bodyparts)
|
|
var/obj/item/bodypart/limb = _limb
|
|
if (limb.body_part == HEAD || limb.body_part == CHEST)
|
|
continue
|
|
addtimer(CALLBACK(limb, /obj/item/bodypart/.proc/dismember), timer)
|
|
addtimer(CALLBACK(GLOBAL_PROC, .proc/playsound, carbon_target, 'sound/effects/cartoon_pop.ogg', 70), timer)
|
|
addtimer(CALLBACK(carbon_target, /mob/living/.proc/spin, 4, 1), timer - 0.4 SECONDS)
|
|
timer += 2 SECONDS
|