From bf318d581d5340f81eaf045321a971d79e44fbb1 Mon Sep 17 00:00:00 2001 From: Molti Date: Tue, 9 Apr 2024 23:00:58 -0500 Subject: [PATCH] proper overlays --- code/modules/spells/spell_types/jaunt/tar_pool.dm | 2 +- .../code/modules/jungleland/jungle_structures.dm | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/code/modules/spells/spell_types/jaunt/tar_pool.dm b/code/modules/spells/spell_types/jaunt/tar_pool.dm index 1afc1c4f4a5e..147611047a9a 100644 --- a/code/modules/spells/spell_types/jaunt/tar_pool.dm +++ b/code/modules/spells/spell_types/jaunt/tar_pool.dm @@ -1,6 +1,6 @@ /datum/action/cooldown/spell/jaunt/ethereal_jaunt/tar_pool name = "Return to tar" - desc = "Temporarily dissolve into a pool of tar, in this form you are involnurable to damage." + desc = "Temporarily dissolve into a pool of tar, in this form you are invulnerable to damage." button_icon = 'yogstation/icons/mob/actions/actions.dmi' button_icon_state = "tarshift" background_icon = 'yogstation/icons/mob/actions/backgrounds.dmi' diff --git a/yogstation/code/modules/jungleland/jungle_structures.dm b/yogstation/code/modules/jungleland/jungle_structures.dm index 48975e677ace..3d066e899516 100644 --- a/yogstation/code/modules/jungleland/jungle_structures.dm +++ b/yogstation/code/modules/jungleland/jungle_structures.dm @@ -453,7 +453,7 @@ GLOBAL_LIST_INIT(nests, list()) /obj/structure/tar_assistant_spawner/Initialize() . = ..() - update_icon() + update_appearance(UPDATE_OVERLAYS) /obj/structure/tar_assistant_spawner/examine(mob/user) . = ..() @@ -463,11 +463,11 @@ GLOBAL_LIST_INIT(nests, list()) else . += "There is a humanoid shaped hole carved into the pillar..." -/obj/structure/tar_assistant_spawner/update_icon() - . = ..() - cut_overlays() - if(!used) - add_overlay(image(icon=src.icon,icon_state="tar_assistant")) +/obj/structure/tar_assistant_spawner/update_overlays() + . = ..() + if(used) + return + . += mutable_appearance(icon, "tar_assistant") /obj/structure/tar_assistant_spawner/attack_hand(mob/user) if(used) @@ -504,7 +504,7 @@ GLOBAL_LIST_INIT(nests, list()) to_chat(user,span_boldnotice("A wave of unusual energy washes over you as you realize you are now the master of [H].")) used = TRUE in_use = FALSE - update_icon() + update_appearance(UPDATE_OVERLAYS) /obj/effect/dummy/phased_mob/spell_jaunt/tar_pool name = "pool of tar"