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:
Geeves
2020-12-26 12:17:00 +02:00
committed by GitHub
parent 4f03289e40
commit 22472919c3
10 changed files with 37 additions and 7 deletions
+3 -1
View File
@@ -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)
+5 -1
View File
@@ -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)