mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-23 13:05:44 +01:00
update_icons(), UpdateIcon() and updateicon() are now changed to be update_icon(). Many interactions expect a target to have an update_icon(), so they should all be the same. Also fixed some stuff that was using relative pathing, along the way.
21 lines
504 B
Plaintext
21 lines
504 B
Plaintext
/mob/living/carbon/alien/regenerate_icons()
|
|
overlays = list()
|
|
update_icon()
|
|
|
|
/mob/living/carbon/alien/update_icon()
|
|
|
|
var/state = 0
|
|
if(amount_grown > max_grown*0.75)
|
|
state = 2
|
|
else if(amount_grown > max_grown*0.25)
|
|
state = 1
|
|
|
|
if(stat == DEAD)
|
|
icon_state = "[initial(icon_state)][state]_dead"
|
|
else if (stunned)
|
|
icon_state = "[initial(icon_state)][state]_stun"
|
|
else if(lying || resting)
|
|
icon_state = "[initial(icon_state)][state]_sleep"
|
|
else
|
|
icon_state = "[initial(icon_state)][state]"
|