tgstation/-tg-station — pull request #480 by Tastyfish (2013-04-30 13:39:51+00:00)
Title: Fixed robots having a bad sleep & rest verb, and cleaned up powersink code

* Silicons could sleep and rest, where sleep did nothing, and rest arbitrarily froze movement without any form of feedback or IC meaning. Thus, they were removed for silicons. This fixes #144.
* Powersink code was kinda nasty with it overall being an FSM, but the transitions were a pile of redundant variable changes, and it was hard to tell exactly what changed and what didn't when various events happened. I mainly did this because it seemed to easy for it to become bugged so that it would keep draining while unattached or something.
* As another, this fix also properly disconnects the powersink if the wire underneith it is cut. I don't think that bug has been reported yet.