[MIRROR] Add new Wallets! station trait (#6704)

* Add new Wallets! station trait

* Update wallets.dm

Co-authored-by: coiax <yellowbounder@gmail.com>
Co-authored-by: Gandalf <jzo123@hotmail.com>
This commit is contained in:
SkyratBot
2021-07-04 23:59:42 +01:00
committed by GitHub
co-authored by coiax Gandalf
parent 4eb10be816
commit fb5576ee8f
5 changed files with 171 additions and 12 deletions
+8 -3
View File
@@ -37,6 +37,7 @@
/obj/item/photo,
/obj/item/reagent_containers/dropper,
/obj/item/reagent_containers/syringe,
/obj/item/reagent_containers/pill,
/obj/item/screwdriver,
/obj/item/stamp),
list(/obj/item/screwdriver/power))
@@ -101,6 +102,7 @@
cached_flat_icon = null
if(!front_id)
return
COMPILE_OVERLAYS(front_id)
. += mutable_appearance(front_id.icon, front_id.icon_state)
. += front_id.overlays
. += mutable_appearance(icon, "wallet_overlay")
@@ -156,9 +158,12 @@
return ..()
/obj/item/storage/wallet/random
icon_state = "random_wallet"
icon_state = "random_wallet" // for mapping purposes
/obj/item/storage/wallet/random/PopulateContents()
new /obj/item/holochip(src, rand(5,30))
/obj/item/storage/wallet/random/Initialize()
. = ..()
icon_state = "wallet"
/obj/item/storage/wallet/random/PopulateContents()
new /obj/item/holochip(src, rand(5, 30))
new /obj/effect/spawner/lootdrop/wallet_loot(src)