People can now walk on one leg. (#35065)

* legs are now OK

* Losing a leg will knock you down

* Bolas will no longer affect legless people, halved chance of hitting if the target is one-legged
This commit is contained in:
boy2mantwicethefam
2023-10-07 00:26:30 +03:00
committed by GitHub
parent c1f10f1d4a
commit 046d35dccf
4 changed files with 23 additions and 6 deletions

View File

@@ -47,13 +47,16 @@
E = organ_name
else
E = get_organ(organ_name)
var/is_holding_cane = find_held_item_by_type(/obj/item/weapon/cane)
if(!E || (E.status & ORGAN_DESTROYED) || (E.status & ORGAN_PEG))
. += 2*multiplier
if(is_holding_cane)
. -= 1*multiplier //Halve the movement speed penalty
if(E.status & ORGAN_SPLINTED)
if(!find_held_item_by_type(/obj/item/weapon/cane))
if(!is_holding_cane)
. += 0.5*multiplier
else if(E.status & ORGAN_BROKEN)
if(!find_held_item_by_type(/obj/item/weapon/cane))
if(!is_holding_cane)
. += 1*multiplier
. += 0.5*multiplier