Makes sprite update on nutrition gain past 900

This commit is contained in:
SatinIsle
2023-09-26 01:17:48 +01:00
parent 74748cfdf3
commit f6c839cc8e
@@ -36,6 +36,7 @@
buckle_movable = TRUE
buckle_lying = FALSE
var/initial_icon = "raptorpurple"
var/wg_state = 0
var/random_skin = 1
var/list/skins = list(
@@ -107,11 +108,24 @@
"The constant, rhythmic kneading and massaging starts to take its toll along with the muggy heat, making you feel weaker and weaker!",
"The raptor happily wanders around while digesting its meal, almost like it is trying to show off the hanging gut you've given it. Not like it made much of a difference on his already borderline obese form anyway~")
/mob/living/simple_mob/vore/raptor/adjust_nutrition()
..()
consider_wg()
/mob/living/simple_mob/vore/raptor/proc/consider_wg()
var/past_state = wg_state
if(nutrition >= 900)
wg_state = 1
else
wg_state = 0
if(past_state != wg_state)
update_icon()
/mob/living/simple_mob/vore/raptor/update_icon()
if(nutrition >= 450)
if(wg_state == 1)
icon_living = "[initial_icon]_fat"
icon_state = icon_living
else if(nutrition < 450)
else
icon_living = "[initial_icon]"
icon_state = icon_living
. = ..()
@@ -132,4 +146,5 @@
if(vore_eyes && voremob_awake) //Update eye layer if applicable.
remove_eyes()
add_eyes()
update_transform()
update_transform()