Wallets and ID card tweaks (#20250)

* wallet the third

* MORE id card tweaks

* farie review
This commit is contained in:
Contrabang
2023-01-25 20:13:38 +01:00
committed by GitHub
parent fa83a85f73
commit 7afa6cb087
2 changed files with 28 additions and 17 deletions
@@ -57,7 +57,7 @@
if(wearing_human.wear_id == src)
wearing_human.sec_hud_set_ID()
update_icon(UPDATE_ICON_STATE)
update_appearance(UPDATE_NAME|UPDATE_ICON_STATE)
/obj/item/storage/wallet/update_icon_state()
if(front_id)
@@ -77,6 +77,16 @@
icon_state = "wallet"
/obj/item/storage/wallet/update_name(updates)
. = ..()
if(front_id)
name = "wallet displaying [front_id]"
else
name = get_empty_wallet_name()
/obj/item/storage/wallet/proc/get_empty_wallet_name()
return initial(name)
/obj/item/storage/wallet/GetID()
return front_id
@@ -118,12 +128,11 @@
new color_wallet(loc)
qdel(src)
return
UpdateDesc()
update_appearance(UPDATE_NAME|UPDATE_DESC|UPDATE_ICON_STATE)
/obj/item/storage/wallet/color/proc/UpdateDesc()
name = "cheap [item_color] wallet"
/obj/item/storage/wallet/color/update_desc(updates)
. = ..()
desc = "A cheap, [item_color] wallet from the arcade."
icon_state = "[item_color]_wallet"
/obj/item/storage/wallet/color/update_icon_state()
if(front_id)
@@ -159,3 +168,6 @@
/obj/item/storage/waller/color/brown
item_color = "brown"
/obj/item/storage/wallet/color/get_empty_wallet_name()
return "cheap [item_color] wallet"