mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-31 09:08:30 +01:00
Pre-filled test tube rack fixes (#88728)
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user