Files
Paradise/code/game/objects/items/weapons/storage/surgical_tray.dm
T
bad8b31afa Changes all .len to length() where applicable (#25174)
* Globals work

* Double access works

* All other things

* Revert "All other things"

This reverts commit 6574442eb6.

* More changes that compile and work

* IT WORKS AAAAAA

* Changes even more .len to length()

* Apply suggestions from code review

* Update code/datums/mind.dm

* Update code/__HELPERS/sorts/InsertSort.dm

Co-authored-by: Deniz <66401072+Oyu07@users.noreply.github.com>

* Update code/__HELPERS/sanitize_values.dm

Co-authored-by: Deniz <66401072+Oyu07@users.noreply.github.com>

---------

Co-authored-by: FunnyMan3595 (Charlie Nolan) <funnyman@google.com>
Co-authored-by: Deniz <66401072+Oyu07@users.noreply.github.com>
2024-04-19 17:32:09 +00:00

43 lines
1.3 KiB
Plaintext

// Sprites from CM13
/obj/item/storage/surgical_tray
name = "surgical tray"
desc = "A small metallic tray covered in sterile tarp. Intended to store surgical tools in a neat and clean fashion."
icon_state = "surgical_tray"
storage_slots = 22 // 11 Items, x2 to be sure
w_class = WEIGHT_CLASS_BULKY
max_w_class = WEIGHT_CLASS_GIGANTIC
max_combined_w_class = 38 // Items listed add up to 19, x2 to be sure
can_hold = list(
/obj/item/scalpel,
/obj/item/cautery,
/obj/item/hemostat,
/obj/item/retractor,
/obj/item/FixOVein,
/obj/item/surgicaldrill,
/obj/item/circular_saw,
/obj/item/bonegel,
/obj/item/bonesetter,
/obj/item/stack/medical/bruise_pack,
/obj/item/stack/medical/ointment
)
/obj/item/storage/surgical_tray/Initialize(mapload)
. = ..()
new /obj/item/scalpel(src)
new /obj/item/cautery(src)
new /obj/item/hemostat(src)
new /obj/item/retractor(src)
new /obj/item/FixOVein(src)
new /obj/item/surgicaldrill(src)
new /obj/item/circular_saw(src)
new /obj/item/bonegel(src)
new /obj/item/bonesetter(src)
new /obj/item/stack/medical/bruise_pack/advanced(src)
new /obj/item/stack/medical/ointment/advanced(src)
/obj/item/storage/surgical_tray/update_icon_state()
if(!length(contents))
icon_state = "surgical_tray_e"
else
icon_state = "surgical_tray"