Angry Eye Fix (#10916)

Vampire blood eyes now properly disappear when they lose frenzy.
This commit is contained in:
Geeves
2021-01-10 12:56:15 +02:00
committed by GitHub
parent e0854fd1e3
commit 59b4d21c84
5 changed files with 21 additions and 8 deletions
+1
View File
@@ -82,6 +82,7 @@
var/list/genetic_markings // Markings (body_markings) to apply to the icon
var/list/temporary_markings // Same as above, but not preserved when cloning
var/list/cached_markings // The two above lists cached for perf. reasons.
var/list/additional_images
var/atom/movable/applied_pressure //Pressure applied to wounds. It'll make them bleed less, generally.
+6
View File
@@ -112,6 +112,7 @@
if(vampire && (vampire.status & VAMP_FRENZIED))
var/image/return_image = image(H.species.eyes_icons, H, "[H.species.eyes]_frenzy", EFFECTS_ABOVE_LIGHTING_LAYER)
return_image.appearance_flags = KEEP_APART
LAZYADD(additional_images, return_image)
return list(return_image)
/obj/item/organ/external/proc/apply_markings(restrict_to_robotic = FALSE)
@@ -223,6 +224,11 @@
/obj/item/organ/external/proc/get_additional_images(var/mob/living/carbon/human/H)
return
/obj/item/organ/external/proc/cut_additional_images(var/mob/living/carbon/human/H)
if(LAZYLEN(additional_images))
H.cut_overlay(additional_images, TRUE)
LAZYCLEARLIST(additional_images)
// new damage icon system
// adjusted to set damage_state to brute/burn code only (without r_name0 as before)
/obj/item/organ/external/update_icon()