From efcbfebf99c6cc70f5ed77e079aeb27d93ce8e9a Mon Sep 17 00:00:00 2001 From: ZomgPonies Date: Mon, 2 Mar 2015 11:22:21 -0500 Subject: [PATCH] Emergency corgi runtime Fix --- .../living/simple_animal/friendly/corgi.dm | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/code/modules/mob/living/simple_animal/friendly/corgi.dm b/code/modules/mob/living/simple_animal/friendly/corgi.dm index 7837713dd17..23c5f23af80 100644 --- a/code/modules/mob/living/simple_animal/friendly/corgi.dm +++ b/code/modules/mob/living/simple_animal/friendly/corgi.dm @@ -47,15 +47,16 @@ if(toxins_alert) toxin.icon_state = "tox1" else toxin.icon_state = "tox0" - switch(health) - if(30 to INFINITY) healths.icon_state = "health0" - if(26 to 29) healths.icon_state = "health1" - if(21 to 25) healths.icon_state = "health2" - if(16 to 20) healths.icon_state = "health3" - if(11 to 15) healths.icon_state = "health4" - if(6 to 10) healths.icon_state = "health5" - if(1 to 5) healths.icon_state = "health6" - else healths.icon_state = "health7" + if (healths) + switch(health) + if(30 to INFINITY) healths.icon_state = "health0" + if(26 to 29) healths.icon_state = "health1" + if(21 to 25) healths.icon_state = "health2" + if(16 to 20) healths.icon_state = "health3" + if(11 to 15) healths.icon_state = "health4" + if(6 to 10) healths.icon_state = "health5" + if(1 to 5) healths.icon_state = "health6" + else healths.icon_state = "health7" regenerate_icons() /mob/living/simple_animal/corgi/Die()