mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-02-03 05:00:56 +00:00
60 lines
1.7 KiB
Plaintext
60 lines
1.7 KiB
Plaintext
/obj/item/lego
|
|
name = "Lego of Doom"
|
|
throw_speed = 5
|
|
throw_range = 4
|
|
gender = PLURAL
|
|
icon = 'icons/obj/items_ch.dmi'
|
|
icon_state = "lego"
|
|
desc = "An absolutely horrifying mechanical trap, banned in most sectors across the universe. Placing one is considered a major war crime."
|
|
randpixel = 0
|
|
center_of_mass_x = 0 //CHOMPEdit
|
|
center_of_mass_y = 0 //CHOMPEdit
|
|
throwforce = 0
|
|
w_class = ITEMSIZE_SMALL
|
|
|
|
/obj/item/lego/Crossed(atom/movable/AM as mob|obj)
|
|
if(AM.is_incorporeal())
|
|
return
|
|
if(isliving(AM))
|
|
var/mob/living/L = AM
|
|
if(L.m_intent == I_RUN)
|
|
L.visible_message(
|
|
span_danger("[L] steps on \the [src]."),
|
|
span_danger("You step on \the [src], you poor bastard!"),
|
|
span_hear(span_bold("You hear the sound of immeasurable suffering!"))
|
|
)
|
|
L.adjustHalLoss(100)
|
|
playsound(src, 'sound/misc/legodeath.ogg', 50, 1)
|
|
qdel(src)
|
|
..()
|
|
|
|
/obj/item/lego/gib
|
|
name = "Lego of Doom"
|
|
throw_speed = 5
|
|
throw_range = 4
|
|
gender = PLURAL
|
|
icon = 'icons/obj/items_ch.dmi'
|
|
icon_state = "lego"
|
|
desc = "An absolutely horrifying mechanical trap, banned in most sectors across the universe. Placing one is considered a major war crime."
|
|
randpixel = 0
|
|
center_of_mass_x = 0 //CHOMPEdit
|
|
center_of_mass_y = 0 //CHOMPEdit
|
|
throwforce = 0
|
|
w_class = ITEMSIZE_SMALL
|
|
|
|
/obj/item/lego/gib/Crossed(atom/movable/AM as mob|obj)
|
|
if(AM.is_incorporeal())
|
|
return
|
|
if(isliving(AM))
|
|
var/mob/living/L = AM
|
|
if(L.m_intent == I_RUN)
|
|
L.visible_message(
|
|
span_danger("[L] steps on \the [src]."),
|
|
span_danger("You step on \the [src], you poor bastard!"),
|
|
span_hear(span_bold("You hear the sound of immeasurable suffering!"))
|
|
)
|
|
L.gib()
|
|
playsound(src, 'sound/misc/legodeath.ogg', 50, 1)
|
|
qdel(src)
|
|
..()
|