From ee79fc139e3e45175c44b4e6fd8d8616d9bb73b0 Mon Sep 17 00:00:00 2001 From: TDSSS <32099540+TDSSS@users.noreply.github.com> Date: Tue, 6 Aug 2019 01:52:10 +0200 Subject: [PATCH] Made update icon less stupid --- code/game/gamemodes/cult/talisman.dm | 3 +++ code/modules/paperwork/paper.dm | 2 -- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/code/game/gamemodes/cult/talisman.dm b/code/game/gamemodes/cult/talisman.dm index e2ff5a809e5..08633ef92f4 100644 --- a/code/game/gamemodes/cult/talisman.dm +++ b/code/game/gamemodes/cult/talisman.dm @@ -8,6 +8,9 @@ var/uses = 1 var/health_cost = 0 //The amount of health taken from the user when invoking the talisman +/obj/item/paper/talisman/update_icon()//overriding this so the update_icon doesn't turn them into normal looking paper + SEND_SIGNAL(src, COMSIG_OBJ_UPDATE_ICON) + /obj/item/paper/talisman/examine(mob/user) if(iscultist(user) || user.stat == DEAD) to_chat(user, "Name: [cultist_name]") diff --git a/code/modules/paperwork/paper.dm b/code/modules/paperwork/paper.dm index 86c460f53de..7d8850dbd90 100644 --- a/code/modules/paperwork/paper.dm +++ b/code/modules/paperwork/paper.dm @@ -54,8 +54,6 @@ /obj/item/paper/update_icon() ..() - if(istype(src, /obj/item/paper/talisman))//let's not override talisman sprites, tyvm - return if(info) icon_state = "paper_words" return