From 0ec934b863ced2c4ff2d69c0480f11b8a795ae60 Mon Sep 17 00:00:00 2001 From: Casey Date: Sun, 16 Oct 2022 17:02:52 -0400 Subject: [PATCH] Merge pull request #13900 from Cameron653/syringe_overlay Fixes an oversight with syringes. --- code/modules/reagents/reagent_containers/syringes_vr.dm | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/code/modules/reagents/reagent_containers/syringes_vr.dm b/code/modules/reagents/reagent_containers/syringes_vr.dm index 83c5bacaef..89d81d1f18 100644 --- a/code/modules/reagents/reagent_containers/syringes_vr.dm +++ b/code/modules/reagents/reagent_containers/syringes_vr.dm @@ -85,7 +85,7 @@ //Allow for capped syringes /obj/item/weapon/reagent_containers/syringe/update_icon() - cut_overlays(src) + cut_overlays() var/matrix/tf = matrix() if(isstorage(loc)) @@ -101,12 +101,11 @@ icon_state = "capped" return - var/list/new_overlays = list() var/rounded_vol = round(reagents.total_volume, round(reagents.maximum_volume / 3)) if(reagents.total_volume) filling = image(icon, src, "filler[rounded_vol]") filling.color = reagents.get_color() - new_overlays += filling + add_overlay(filling) if(ismob(loc)) var/injoverlay @@ -115,9 +114,8 @@ injoverlay = "draw" if (SYRINGE_INJECT) injoverlay = "inject" - new_overlays += injoverlay + add_overlay(injoverlay) - add_overlay(new_overlays) icon_state = "[rounded_vol]" item_state = "syringe_[rounded_vol]"