Skip to content

Commit

Permalink
Re-adds the Disk Compartmentalizer (ParadiseSS13#26460)
Browse files Browse the repository at this point in the history
* Re-adds the Disk Compartmentalizer

* Apply suggestions from code review

Co-authored-by: 1080pCat <[email protected]>
Signed-off-by: LtDiggs <[email protected]>

* Apply suggestions from code review

Co-authored-by: Ryan <[email protected]>
Signed-off-by: LtDiggs <[email protected]>

---------

Signed-off-by: LtDiggs <[email protected]>
Co-authored-by: 1080pCat <[email protected]>
Co-authored-by: Ryan <[email protected]>
  • Loading branch information
3 people authored Aug 14, 2024
1 parent ef2b3cd commit 2929d49
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 0 deletions.
1 change: 1 addition & 0 deletions code/game/machinery/constructable_frame.dm
Original file line number Diff line number Diff line change
Expand Up @@ -565,6 +565,7 @@ to destroy them and players will be able to make replacements.
"Smart Chemical Storage" = /obj/machinery/smartfridge/secure/chemistry,
"Smart Virus Storage" = /obj/machinery/smartfridge/secure/chemistry/virology,
"Drink Showcase" = /obj/machinery/smartfridge/drinks,
"Disk Compartmentalizer" = /obj/machinery/smartfridge/disks,
"Identification Card Compartmentalizer" = /obj/machinery/smartfridge/id,
"Circuit Board Storage" = /obj/machinery/smartfridge/secure/circuits,
"AI Laws Storage" = /obj/machinery/smartfridge/secure/circuits/aiupload)
Expand Down
34 changes: 34 additions & 0 deletions code/modules/food_and_drinks/kitchen_machinery/smartfridge.dm
Original file line number Diff line number Diff line change
Expand Up @@ -694,6 +694,40 @@
/obj/machinery/smartfridge/secure/chemistry/preloaded/syndicate/Initialize(mapload)
. = ..()
req_access = list(ACCESS_SYNDICATE)

/**
* # Disk Compartmentalizer
*
* Disk variant of the [Smart Fridge][/obj/machinery/smartfridge].
*/
/obj/machinery/smartfridge/disks
name = "disk compartmentalizer"
desc = "A machine capable of storing a variety of disks. Denoted by most as the DSU (disk storage unit)."
icon_state = "disktoaster"
icon_lightmask = "disktoaster"
pass_flags = PASSTABLE
visible_contents = TRUE
board_type = /obj/machinery/smartfridge/disks

/obj/machinery/smartfridge/disks/Initialize(mapload)
. = ..()
accepted_items_typecache = typecacheof(list(
/obj/item/disk
))

/obj/machinery/smartfridge/disks/update_fridge_contents()
switch(length(contents))
if(0)
fill_level = null
if(1)
fill_level = 1
if(2)
fill_level = 2
if(3)
fill_level = 3
if(4 to INFINITY)
fill_level = 4

/obj/machinery/smartfridge/id
name = "identification card compartmentalizer"
desc = "A machine capable of storing identification cards and PDAs. It's great for lost and terminated cards."
Expand Down
Binary file modified icons/obj/vending.dmi
Binary file not shown.

0 comments on commit 2929d49

Please sign in to comment.