From d521357c068fc3cc86a6dcdf339e3fd24f95e8d2 Mon Sep 17 00:00:00 2001 From: "baloh.matevz" Date: Sun, 12 Feb 2012 23:18:28 +0000 Subject: [PATCH] - So apparently disposals were too hungry for air. They take far less of it now. They however still take the same amount of time to pressurize tho. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@3118 316c924e-a436-60f5-8080-3fe189b3f50e --- code/modules/recycling/disposal.dm | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/code/modules/recycling/disposal.dm b/code/modules/recycling/disposal.dm index a47a046750..d74c1b2c8b 100644 --- a/code/modules/recycling/disposal.dm +++ b/code/modules/recycling/disposal.dm @@ -5,6 +5,7 @@ // Automatically recharges air (unless off), will flush when ready if pre-set // Can hold items and human size things, no other draggables // Toilets are a type of disposal bin for small objects only and work on magic. By magic, I mean torque rotation +#define SEND_PRESSURE 0.05*ONE_ATMOSPHERE /obj/machinery/disposal name = "disposal unit" @@ -191,7 +192,7 @@ else dat += "Pump: Off On (idle)
" - var/per = 100* air_contents.return_pressure() / (2*ONE_ATMOSPHERE) + var/per = 100* air_contents.return_pressure() / (SEND_PRESSURE) dat += "Pressure: [round(per, 1)]%
" @@ -290,7 +291,7 @@ src.updateDialog() - if(flush && air_contents.return_pressure() >= 2*ONE_ATMOSPHERE) // flush can happen even without power + if(flush && air_contents.return_pressure() >= SEND_PRESSURE ) // flush can happen even without power flush() if(stat & NOPOWER) // won't charge if no power @@ -307,7 +308,7 @@ var/atom/L = loc // recharging from loc turf var/datum/gas_mixture/env = L.return_air() - var/pressure_delta = (ONE_ATMOSPHERE*2.1) - air_contents.return_pressure() + var/pressure_delta = (SEND_PRESSURE*1.01) - air_contents.return_pressure() if(env.temperature > 0) var/transfer_moles = 0.1 * pressure_delta*air_contents.volume/(env.temperature * R_IDEAL_GAS_EQUATION) @@ -318,7 +319,7 @@ // if full enough, switch to ready mode - if(air_contents.return_pressure() >= 2*ONE_ATMOSPHERE) + if(air_contents.return_pressure() >= SEND_PRESSURE) mode = 2 update() return