Files
Tim 46e1f8ff27 Fix closets, crates, and drawers missing material tags (#94273)
## About The Pull Request
This adds custom material lists to closets and crates so it shows what
materials they are made out of when examined.

## Why It's Good For The Game
<img width="603" height="494" alt="dreamseeker_XhFtjANMiX"
src="https://github.com/user-attachments/assets/c31e0789-75ce-40d6-a56d-a52f6490da68"
/>

## Changelog
🆑
fix: Fix closets, crates, and drawers missing material tags
/🆑

---------

Co-authored-by: Ghom <42542238+Ghommie@users.noreply.github.com>
2025-12-09 21:52:03 +01:00

55 lines
1.9 KiB
Plaintext

/obj/structure/closet/secure_closet/personal
desc = "It's a secure locker for personnel. The first person to swipe their ID gains control."
name = "personal closet"
req_access = list(ACCESS_ALL_PERSONAL_LOCKERS)
card_reader_installed = TRUE
/obj/structure/closet/secure_closet/personal/Initialize(mapload)
. = ..()
var/static/list/choices
if(isnull(choices))
choices = list("Personal")
access_choices = choices
/obj/structure/closet/secure_closet/personal/can_unlock(mob/living/user, obj/item/card/id/player_id, obj/item/card/id/registered_id)
if(isnull(registered_id)) //first time anyone can unlock
return TRUE
else
if(allowed(user)) //players with ACCESS_ALL_PERSONAL_LOCKERS can override your ID
return TRUE
return player_id == registered_id
/obj/structure/closet/secure_closet/personal/PopulateContents()
..()
if(prob(50))
new /obj/item/storage/backpack/duffelbag(src)
if(prob(50))
new /obj/item/storage/backpack(src)
else
new /obj/item/storage/backpack/satchel(src)
new /obj/item/radio/headset( src )
/obj/structure/closet/secure_closet/personal/patient
name = "patient's closet"
/obj/structure/closet/secure_closet/personal/patient/PopulateContents()
new /obj/item/clothing/under/color/white( src )
new /obj/item/clothing/shoes/sneakers/white( src )
/obj/structure/closet/secure_closet/personal/cabinet
icon_state = "cabinet"
resistance_flags = FLAMMABLE
max_integrity = 70
open_sound = 'sound/machines/closet/wooden_closet_open.ogg'
close_sound = 'sound/machines/closet/wooden_closet_close.ogg'
open_sound_volume = 25
close_sound_volume = 50
door_anim_time = 0 // no animation
custom_materials = list(/datum/material/wood = SHEET_MATERIAL_AMOUNT * 2)
material_drop = /obj/item/stack/sheet/mineral/wood
/obj/structure/closet/secure_closet/personal/cabinet/PopulateContents()
new /obj/item/storage/backpack/satchel/leather/withwallet( src )
new /obj/item/instrument/piano_synth(src)
new /obj/item/radio/headset( src )