Wings negate fall damage from short falls (remake) (#62800)

Co-authored-by: Mothblocks <35135081+Mothblocks@users.noreply.github.com>
This commit is contained in:
Mickyan
2021-11-14 21:11:39 -08:00
committed by GitHub
co-authored by Mothblocks
parent dc3151a41f
commit 17e4b60a14
3 changed files with 17 additions and 6 deletions
@@ -48,11 +48,15 @@
return ..()
/mob/living/carbon/human/ZImpactDamage(turf/T, levels)
if(!HAS_TRAIT(src, TRAIT_FREERUNNING) || levels > 1) // falling off one level
if(stat != CONSCIOUS || levels > 1) // you're not The One
return ..()
visible_message(span_danger("[src] makes a hard landing on [T] but remains unharmed from the fall."), \
span_userdanger("You brace for the fall. You make a hard landing on [T] but remain unharmed."))
Knockdown(levels * 40)
var/obj/item/organ/external/wings/gliders = getorgan(/obj/item/organ/external/wings)
if(HAS_TRAIT(src, TRAIT_FREERUNNING) || gliders?.can_soften_fall()) // the power of parkour or wings allows falling short distances unscathed
visible_message(span_danger("[src] makes a hard landing on [T] but remains unharmed from the fall."), \
span_userdanger("You brace for the fall. You make a hard landing on [T] but remain unharmed."))
Knockdown(levels * 40)
return
return ..()
/mob/living/carbon/human/prepare_data_huds()
//Update med hud images...