mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-07-19 02:56:14 +01:00
Toilet Overhaul (#19370)
* April Fool ! there's 30 minutes till midnight in my timezone so it's still valid * Powder that make the maintainer say yes * Apply suggestions from code review Co-authored-by: Cameron Lennox <killer65311@gmail.com> * Edits * Update watercloset.dm * five nights at space station toilet pls merge or else poopwater 2 pr will be next --------- Co-authored-by: Cameron Lennox <killer65311@gmail.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user