Business Cards (#11504)

This commit is contained in:
Geeves
2021-03-26 00:55:12 +02:00
committed by GitHub
parent 7c6b389d10
commit 492dc6d2ce
7 changed files with 89 additions and 6 deletions
@@ -0,0 +1,36 @@
/obj/item/storage/business_card_holder
name = "business card holder"
desc = "A sleek holster for your business card. You wouldn't want it getting damaged in any way."
storage_slots = 5
icon = 'icons/obj/office_supplies.dmi'
icon_state = "holder"
w_class = ITEMSIZE_TINY
max_w_class = ITEMSIZE_TINY
can_hold = list(/obj/item/paper/business_card)
/obj/item/storage/business_card_holder/update_icon()
cut_overlays()
if(length(contents))
var/mutable_appearance/card_overlay = mutable_appearance(icon, "holder-overlay")
card_overlay.appearance_flags = RESET_COLOR
add_overlay(card_overlay)
/obj/item/paper/business_card
name = "business card"
desc = "A small slip of paper, capable of elevating your status on the social hierachy between you and your co-workers, provided you picked the right font."
icon = 'icons/obj/office_supplies.dmi'
icon_state = "generic_card1"
/obj/item/paper/business_card/attack_self(mob/living/user)
user.examinate(src)
/obj/item/paper/business_card/alt
icon_state = "generic_card2"
/obj/item/paper/business_card/rounded
icon_state = "rounded_corners"
/obj/item/paper/business_card/glass
name = "glass business card"
desc = "A fancy variant of the classic business card. This one immediately indicates that you're serious about your business, but the contents of the card will seal the deal."
icon_state = "glass_card"
@@ -35,7 +35,9 @@
/obj/item/stamp,
/obj/item/device/paicard,
/obj/item/device/encryptionkey,
/obj/item/fluff)
/obj/item/fluff,
/obj/item/storage/business_card_holder
)
slot_flags = SLOT_ID
var/obj/item/card/id/front_id = null