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
+6 -1
View File
@@ -85,7 +85,12 @@
if(armed)
if(israt(AM))
triggered(AM)
else if(istype(AM, /mob/living))
else if(ishuman(AM))
var/mob/living/carbon/human/H = AM
if(!(H.shoes?.item_flags & LIGHTSTEP))
triggered(H)
H.visible_message(SPAN_WARNING("\The [H] accidentally steps on \the [src]."), SPAN_WARNING("You accidentally step on \the [src]."))
else if(isliving(AM))
var/mob/living/L = AM
triggered(L)
L.visible_message(SPAN_WARNING("\The [L] accidentally steps on \the [src]."), SPAN_WARNING("You accidentally step on \the [src]."))