Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
harryob committed Sep 1, 2023
1 parent dc54271 commit 1b80bb7
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions code/modules/organs/limbs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -711,8 +711,6 @@ This function completely restores a damaged organ to perfect condition.
SHOULD_CALL_PARENT(TRUE)
RETURN_TYPE(/list)

icon_state = ""

. = list()

if(parent?.status & LIMB_DESTROYED)
Expand All @@ -725,15 +723,13 @@ This function completely restores a damaged organ to perfect condition.

var/image/limb = image(layer = -BODYPARTS_LAYER)

var/race_icon = species.icobase

if ((status & LIMB_ROBOT) && !(owner.species && owner.species.flags & IS_SYNTHETIC))
limb.icon = 'icons/mob/robotic.dmi'
limb.icon_state = "[icon_name]"
. += limb
return

limb.icon = race_icon
limb.icon = species.icobase
limb.icon_state = "[get_limb_icon_name(species, body_type, limb_gender, icon_name, ethnicity)]"

. += limb
Expand Down

0 comments on commit 1b80bb7

Please sign in to comment.