Fixes dirt vulnerability

Fixes dirt vulnerability trait being completely bonkers broken and causing slips on every single step regardless of whether the floors were even clean or not and also makes it not affect walk intent.
This commit is contained in:
Verkister
2021-11-27 01:11:46 +02:00
committed by GitHub
parent 5043070c9d
commit 0ff148ef5f

View File

@@ -124,7 +124,7 @@
bloodDNA = null bloodDNA = null
if(src.wet || (dirtslip && (dirt > 50 || outdoors))) //CHOMPEdit if(src.wet || (dirtslip && (dirt > 50 || outdoors == 1))) //CHOMPEdit
if(M.buckled || (src.wet == 1 && M.m_intent == "walk")) if(M.buckled || (src.wet == 1 && M.m_intent == "walk"))
return return
@@ -139,6 +139,8 @@
floor_type = "dirty" floor_type = "dirty"
else if(outdoors) else if(outdoors)
floor_type = "uneven" floor_type = "uneven"
if(src.wet == 0 && M.m_intent == "walk")
return
//CHOMPEdit End //CHOMPEdit End
switch(src.wet) switch(src.wet)
if(2) // Lube if(2) // Lube
@@ -188,4 +190,4 @@
else if( istype(M, /mob/living/silicon/robot )) else if( istype(M, /mob/living/silicon/robot ))
new /obj/effect/decal/cleanable/blood/oil(src) new /obj/effect/decal/cleanable/blood/oil(src)
else if(ishuman(M)) else if(ishuman(M))
add_blood(M) add_blood(M)