Pre-filled test tube rack fixes (#88728)

This commit is contained in:
_0Steven
2025-01-07 14:42:02 +01:00
committed by GitHub
parent 25003df3a7
commit 9d7c406abd
3 changed files with 18 additions and 11 deletions
+2 -11
View File
@@ -803,17 +803,7 @@
lefthand_file = 'icons/mob/inhands/equipment/medical_lefthand.dmi'
righthand_file = 'icons/mob/inhands/equipment/medical_righthand.dmi'
w_class = WEIGHT_CLASS_SMALL
/obj/item/storage/test_tube_rack/Initialize(mapload)
. = ..()
atom_storage.allow_quick_gather = TRUE
atom_storage.max_slots = 8
atom_storage.screen_max_columns = 4
atom_storage.screen_max_rows = 2
atom_storage.set_holdable(/obj/item/reagent_containers/cup/tube)
/obj/item/storage/test_tube_rack/attack_self(mob/user)
emptyStorage()
storage_type = /datum/storage/test_tube_rack
/obj/item/storage/test_tube_rack/update_icon_state()
icon_state = "[base_icon_state][contents.len > 0 ? contents.len : null]"
@@ -822,4 +812,5 @@
/obj/item/storage/test_tube_rack/full/PopulateContents()
for(var/i in 1 to atom_storage.max_slots)
new /obj/item/reagent_containers/cup/tube(src)
update_appearance(UPDATE_ICON_STATE)