mirror of
https://github.com/SPLURT-Station/S.P.L.U.R.T-Station-13.git
synced 2025-12-21 23:33:22 +00:00
-Fixes Trash Can recipie. Now craftable with 10 metal, removed with welder. -Adds an additional sprite for Duke Purple Tea so Tea and Coco don't look the same. -Adds Bacon and Eggs Sprite and Food Item -Adds Unique Sprite for Drying Agent bottle. -Adds Chocolate Bar to the... Chocolate Vendor. -Allows Trash Bag to fit Limbs (Not Heads) -Allows Mops to be Printable -Allows Bio Bags to pick up Limbs and Organs. Disallows Cybernetics, Brains, and Implants. Ports the following from TG: Printable Mops https://github.com/tgstation/tgstation/pull/44141 Makes Limbs Small Weight (To Fit in Trashbags) https://github.com/tgstation/tgstation/pull/44730
45 lines
1.2 KiB
Plaintext
45 lines
1.2 KiB
Plaintext
/obj/structure/closet/crate/bin
|
|
desc = "A trash bin, place your trash here for the janitor to collect."
|
|
name = "trash bin"
|
|
icon_state = "largebins"
|
|
open_sound = 'sound/effects/bin_open.ogg'
|
|
close_sound = 'sound/effects/bin_close.ogg'
|
|
material_drop = /obj/item/stack/sheet/metal
|
|
material_drop_amount = 10
|
|
anchored = TRUE
|
|
horizontal = FALSE
|
|
delivery_icon = null
|
|
|
|
/obj/structure/closet/crate/bin/New()
|
|
..()
|
|
update_icon()
|
|
|
|
/obj/structure/closet/crate/bin/update_icon()
|
|
..()
|
|
cut_overlays()
|
|
if(contents.len == 0)
|
|
add_overlay("largebing")
|
|
else if(contents.len >= storage_capacity)
|
|
add_overlay("largebinr")
|
|
else
|
|
add_overlay("largebino")
|
|
|
|
/obj/structure/closet/crate/bin/attackby(obj/item/W, mob/user, params)
|
|
if(istype(W, /obj/item/storage/bag/trash))
|
|
var/obj/item/storage/bag/trash/T = W
|
|
to_chat(user, "<span class='notice'>You fill the bag.</span>")
|
|
for(var/obj/item/O in src)
|
|
SEND_SIGNAL(T, COMSIG_TRY_STORAGE_INSERT, O, user, TRUE)
|
|
T.update_icon()
|
|
do_animate()
|
|
return TRUE
|
|
else
|
|
return ..()
|
|
|
|
/obj/structure/closet/crate/bin/proc/do_animate()
|
|
playsound(loc, open_sound, 15, 1, -3)
|
|
flick("animate_largebins", src)
|
|
spawn(13)
|
|
playsound(loc, close_sound, 15, 1, -3)
|
|
update_icon()
|