From fe5b602a6f8f0922499da3a74a252664b8fa40f2 Mon Sep 17 00:00:00 2001 From: "baloh.matevz" Date: Sat, 11 Feb 2012 22:46:05 +0000 Subject: [PATCH] - Removed the table where mail gets to at mail sorting because mobs keep getting stuck there. - You can no longer control disposal units from within them! - Disposal units now auto trigger every 30 game ticks, if they are fully pressurized and if they have something (or someone) in them. So no more hiding in disposal units! - Added this to the changelog. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@3108 316c924e-a436-60f5-8080-3fe189b3f50e --- code/modules/recycling/disposal.dm | 17 +++++++++++++++++ html/changelog.html | 2 ++ maps/tgstation.2.0.8.dmm | 2 +- 3 files changed, 20 insertions(+), 1 deletion(-) diff --git a/code/modules/recycling/disposal.dm b/code/modules/recycling/disposal.dm index dcf6e956e1b..a47a0467504 100644 --- a/code/modules/recycling/disposal.dm +++ b/code/modules/recycling/disposal.dm @@ -18,6 +18,8 @@ var/flush = 0 // true if flush handle is pulled var/obj/structure/disposalpipe/trunk/trunk = null // the attached pipe trunk var/flushing = 0 // true if flushing in progress + var/flush_every_ticks = 30 //Every 30 ticks it will look whether it is ready to flush + var/flush_count = 0 //this var adds 1 once per tick. When it reaches flush_every_ticks it resets and tries to flush. // create a new disposal // find the attached trunk (if present) and init gas resvr. @@ -159,10 +161,14 @@ // human interact with machine attack_hand(mob/user as mob) + if(user && user.loc == src) + usr << "\red You cannot reach the controls from inside." + return interact(user, 0) // user interaction proc/interact(mob/user, var/ai=0) + src.add_fingerprint(user) if(stat & BROKEN) user.machine = null @@ -197,6 +203,9 @@ // handle machine interaction Topic(href, href_list) + if(usr.loc == src) + usr << "\red You cannot reach the controls from inside." + return ..() src.add_fingerprint(usr) if(stat & BROKEN) @@ -271,6 +280,14 @@ if(stat & BROKEN) // nothing can happen if broken return + flush_count++ + if( flush_count >= flush_every_ticks ) + if( contents.len ) + if(mode == 2) + spawn(0) + flush() + flush_count = 0 + src.updateDialog() if(flush && air_contents.return_pressure() >= 2*ONE_ATMOSPHERE) // flush can happen even without power diff --git a/html/changelog.html b/html/changelog.html index fbb762f0177..3d8e97507cb 100644 --- a/html/changelog.html +++ b/html/changelog.html @@ -107,6 +107,8 @@ should be listed in the changelog upon commit tho. Thanks. -->
  • Removed the wall that was blocking the entrance to the theater
  • Made a small redesign for the HoP's office so that people running towards it from the escape hallway don't run right into the queue, annoying everyong
  • The engineering, command and security airlocks now glow green when closing instead of red to match all the other airlocks
  • +
  • The disposal units now auto trigger every 30 game ticks, if there is something (or someone) in them. So no more hiding in disposal units!
  • +
  • You can no longer control the disposal unit from within it. You will have to wait for it to trigger itself.
  • Pete updated: