[MIRROR] Toilet Overhaul (#12709)

Co-authored-by: Reo Lozzot <84661000+ReoDaProtovali@users.noreply.github.com>
Co-authored-by: Cameron Lennox <killer65311@gmail.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2026-04-23 22:04:18 -04:00
committed by GitHub
co-authored by Reo Lozzot Cameron Lennox
parent 84dd6caf7d
commit 7fb2f7ffd1
18 changed files with 467 additions and 284 deletions
@@ -0,0 +1,13 @@
//Craftable toilets in vorecode, 2026 oh yeah woo yeah
/datum/crafting_recipe/toilet
name = "toilet"
result = /obj/structure/toilet
reqs = list(
list(/obj/item/stack/material/steel = 5),
list(/obj/item/reagent_containers/glass/bucket = 1)
)
time = 3 SECONDS
category = CAT_MISC
/datum/crafting_recipe/toilet/on_craft_completion(mob/user, atom/result)
result.dir = user.dir //face the toilet where you face.
@@ -79,14 +79,13 @@
/datum/component/disposal_system_connection/proc/handle_flush(list/flushed_items, datum/gas_mixture/flush_gas)
PROTECTED_PROC(TRUE)
SHOULD_CALL_PARENT(TRUE)
// if no trunk connected, return false
if(!connected_trunk)
return FALSE
var/obj/structure/disposalholder/packet = new() // virtual holder object which actually travels through the pipes.
packet.init(flushed_items, flush_gas)
// if no trunk connected, expel immediately
if(!connected_trunk)
handle_expel(packet)
return TRUE
// start the holder processing movement
packet.forceMove(connected_trunk)
packet.active = TRUE