Implements BS recycling for the BS compostor (#6925)

This commit is contained in:
Verkister
2023-09-05 22:07:27 +03:00
committed by GitHub
parent 61b0f01fe6
commit acc55ec478

View File

@@ -96,12 +96,14 @@
density = TRUE density = TRUE
var/muffin_mode = FALSE var/muffin_mode = FALSE
var/mob/living/simple_mob/vore/aggressive/corrupthound/muffinmonster var/mob/living/simple_mob/vore/aggressive/corrupthound/muffinmonster
var/obj/machinery/recycling/crusher/crusher //Bluespace connection for recyclables
/obj/structure/biowaste_tank/Initialize() /obj/structure/biowaste_tank/Initialize()
muffinmonster = new /mob/living/simple_mob/vore/aggressive/corrupthound/muffinmonster(src) muffinmonster = new /mob/living/simple_mob/vore/aggressive/corrupthound/muffinmonster(src)
muffinmonster.name = "Activate Muffin Monster" muffinmonster.name = "Activate Muffin Monster"
muffinmonster.voremob_loaded = TRUE muffinmonster.voremob_loaded = TRUE
muffinmonster.init_vore() muffinmonster.init_vore()
crusher = locate(/obj/machinery/recycling/crusher)
return ..() return ..()
/obj/structure/biowaste_tank/AllowDrop() /obj/structure/biowaste_tank/AllowDrop()
@@ -121,6 +123,9 @@
C.forceMove(src) C.forceMove(src)
qdel(thing) qdel(thing)
return return
if(istype(crusher) && istype(thing, /obj/item/debris_pack))
crusher.take_item(thing)
return
if(muffin_mode) if(muffin_mode)
if(muffinmonster) if(muffinmonster)
thing.forceMove(muffinmonster.vore_selected) thing.forceMove(muffinmonster.vore_selected)
@@ -175,3 +180,4 @@
B.desc = "With a resounding CRUNCH, your form has gotten snagged by the Muffin Monster's rotational interlocking cutters indiscriminately crunching away at anything unlucky enough to end up in its hopper, only for the insatiable machine to grind it all down into a slurry mulch fine enough to pass through the narrow sewage lines trouble-free..." B.desc = "With a resounding CRUNCH, your form has gotten snagged by the Muffin Monster's rotational interlocking cutters indiscriminately crunching away at anything unlucky enough to end up in its hopper, only for the insatiable machine to grind it all down into a slurry mulch fine enough to pass through the narrow sewage lines trouble-free..."
B.digest_brute = 20 B.digest_brute = 20
B.special_entrance_sound = 'sound/machines/blender.ogg' B.special_entrance_sound = 'sound/machines/blender.ogg'
B.recycling = TRUE