From c21dc7929abaa4af7563f7f2d8caeae3477728ff Mon Sep 17 00:00:00 2001 From: variableundefined <40092670+variableundefined@users.noreply.github.com> Date: Thu, 16 Aug 2018 22:22:51 +0800 Subject: [PATCH] Wallet icon defaults to green if it is filled with an id of any type --- code/game/objects/items/weapons/storage/wallets.dm | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/code/game/objects/items/weapons/storage/wallets.dm b/code/game/objects/items/weapons/storage/wallets.dm index 06eaae8421c..2b93bec6b52 100644 --- a/code/game/objects/items/weapons/storage/wallets.dm +++ b/code/game/objects/items/weapons/storage/wallets.dm @@ -49,9 +49,6 @@ if(front_id) switch(front_id.icon_state) - if("id") - icon_state = "walletid" - return if("silver") icon_state = "walletid_silver" return @@ -61,6 +58,9 @@ if("centcom") icon_state = "walletid_centcom" return + else + icon_state = "walletid" + return icon_state = "wallet" @@ -124,9 +124,6 @@ /obj/item/storage/wallet/color/update_icon() if(front_id) switch(front_id.icon_state) - if("id") - icon_state = "[item_color]_walletid" - return if("silver") icon_state = "[item_color]_walletid_silver" return @@ -136,6 +133,9 @@ if("centcom") icon_state = "[item_color]_walletid_centcom" return + else + icon_state = "[item_color]_walletid" + return icon_state = "[item_color]_wallet" /obj/item/storage/wallet/color/blue