mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-26 22:42:26 +01:00
Light Step (#10664)
Added LIGHTSTEP to the syndi no-slip shoes. This prevents you from activating mouse traps and landmines while wearing them, as well as letting you dodge past soap, banana peels, and oil spills.
This commit is contained in:
@@ -503,7 +503,9 @@
|
||||
|
||||
/obj/item/toy/snappop/Crossed(H as mob|obj)
|
||||
if((ishuman(H))) //i guess carp and shit shouldn't set them off
|
||||
var/mob/living/carbon/M = H
|
||||
var/mob/living/carbon/human/M = H
|
||||
if(M.shoes?.item_flags & LIGHTSTEP)
|
||||
return
|
||||
if(M.m_intent == M_RUN)
|
||||
to_chat(M, SPAN_WARNING("You step on the snap pop!"))
|
||||
do_pop()
|
||||
|
||||
@@ -57,6 +57,11 @@
|
||||
|
||||
/obj/item/landmine/Crossed(AM as mob|obj)
|
||||
if(deployed)
|
||||
if(ishuman(AM))
|
||||
var/mob/living/carbon/human/H = AM
|
||||
if(H.shoes?.item_flags & LIGHTSTEP)
|
||||
..()
|
||||
return
|
||||
if(isliving(AM))
|
||||
var/mob/living/L = AM
|
||||
if(L.mob_size >= 5)
|
||||
|
||||
@@ -22,9 +22,10 @@
|
||||
var/damage_coef = 1
|
||||
if(H.buckled)
|
||||
return
|
||||
|
||||
if(H.resting)
|
||||
return
|
||||
if(H.shoes?.item_flags & LIGHTSTEP)
|
||||
return
|
||||
|
||||
to_chat(H, SPAN_DANGER("You step on \the [src]!"))
|
||||
playsound(get_turf(src), 'sound/effects/glass_step.ogg', 50, TRUE)
|
||||
|
||||
@@ -47,7 +47,11 @@
|
||||
overlays += image('icons/obj/items.dmi', icon_state = "soap_key_overlay")
|
||||
|
||||
/obj/item/soap/Crossed(AM as mob|obj)
|
||||
if (istype(AM, /mob/living))
|
||||
if(isliving(AM))
|
||||
if(ishuman(AM))
|
||||
var/mob/living/carbon/human/H = AM
|
||||
if(H.shoes?.item_flags & LIGHTSTEP)
|
||||
return
|
||||
var/mob/living/M = AM
|
||||
M.slip("the [src.name]",3)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user