Ports more missing limb checks from polaris and fixes removing hands not dropping items. (#4212)

-adds more checks for missing limbs in the icon updates
-fixes #4140
This commit is contained in:
Alberyk
2018-01-29 23:17:18 +02:00
committed by Erki
parent 14c11b6d4c
commit d2ae96d7b0
3 changed files with 12 additions and 2 deletions
@@ -169,7 +169,7 @@ There are several things that need to be remembered:
var/damage_appearance = ""
for(var/obj/item/organ/external/O in organs)
if(O.is_stump())
if(isnull(O) || O.is_stump())
continue
//if(O.status & ORGAN_DESTROYED) damage_appearance += "d" //what is this?
//else
@@ -187,7 +187,7 @@ There are several things that need to be remembered:
// blend the individual damage states with our icons
for(var/obj/item/organ/external/O in organs)
if(O.is_stump())
if(isnull(O) || O.is_stump())
continue
O.update_icon()
+4
View File
@@ -125,6 +125,10 @@
/obj/item/organ/external/hand/removed()
owner.drop_from_inventory(owner.gloves)
if(body_part == HAND_LEFT)
owner.drop_l_hand()
else
owner.drop_r_hand()
..()
/obj/item/organ/external/hand/right
+6
View File
@@ -0,0 +1,6 @@
author: Alberyk
delete-after: True
changes:
- bugfix: "Cutting someone's hand should now force them to drop the item they are holding on said hand."