Files
CHOMPStation2/code/game/objects/items/weapons/lego.dm
CHOMPStation2StaffMirrorBot 16d5b45148 [MIRROR] intent cleanup (#9778)
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
2025-01-03 21:57:25 +01:00

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)
..()