mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-23 12:07:27 +01:00
Wallets and ID card tweaks (#20250)
* wallet the third * MORE id card tweaks * farie review
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user