Makes voremobs with fullness-specific eye overlays utilize them.

Fixes voremobs with belly state specific eye/glow overlays not updating the overlays to match the fullness sprites
This commit is contained in:
Verkister
2021-06-08 16:51:09 +03:00
parent 71b2bc6240
commit bf7c81f85d
4 changed files with 7 additions and 0 deletions
@@ -42,6 +42,7 @@
var/vore_fullness = 0 // How "full" the belly is (controls icons)
var/vore_icons = 0 // Bitfield for which fields we have vore icons for.
var/vore_eyes = FALSE // For mobs with fullness specific eye overlays.
var/life_disabled = 0 // For performance reasons
var/mount_offset_x = 5 // Horizontal riding offset.
@@ -84,6 +85,9 @@
icon_state = "[icon_dead]-[vore_fullness]"
else if(((stat == UNCONSCIOUS) || resting || incapacitated(INCAPACITATION_DISABLED) ) && icon_rest && (vore_icons & SA_ICON_REST))
icon_state = "[icon_rest]-[vore_fullness]"
if(vore_eyes) //Update eye layer if applicable.
remove_eyes()
add_eyes()
update_transform()
/mob/living/simple_mob/proc/will_eat(var/mob/living/M)
@@ -96,6 +96,7 @@
mount_offset_y = 24
mount_offset_x = -9
has_eye_glow = TRUE
vore_eyes = TRUE
/mob/living/simple_mob/vore/aggressive/dragon/Login()
. = ..()
@@ -30,6 +30,7 @@
icon = 'icons/mob/vore64x64.dmi'
vis_height = 64
has_eye_glow = TRUE
vore_eyes = TRUE
faction = "insects"
maxHealth = 90
@@ -33,6 +33,7 @@
icon = 'icons/mob/vore64x64.dmi'
vis_height = 64
has_eye_glow = TRUE
vore_eyes = TRUE
faction = "insects"
maxHealth = 200