Experimental tweak, I'll revert this if everyone hates it but for now I want to see how things will be if airlocks use the environmental power channel.

-Changed airlocks to use the environmental power channel.
-Changed all airlock controlling devices to use the environmental power channel.
-Changed shutters to use the environmental power channel.
-Changed pipe meters to use the environmental power channel.



git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4784 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
giacomand@gmail.com
2012-09-30 18:51:23 +00:00
parent 00921387e7
commit f3f8340a3d
10 changed files with 19 additions and 3 deletions

View File

@@ -8,7 +8,6 @@
level = 1
var/area_uid
var/id_tag = null
power_channel = ENVIRON
var/on = 0
var/pump_direction = 1 //0 = siphoning, 1 = releasing

View File

@@ -226,7 +226,7 @@
return
power_change()
if(powered(ENVIRON))
if(powered(power_channel))
stat &= ~NOPOWER
else
stat |= NOPOWER

View File

@@ -151,6 +151,7 @@
icon_state = "meterX"
var/obj/machinery/atmospherics/pipe/target = null
anchored = 1.0
power_channel = ENVIRON
var/frequency = 0
var/id
use_power = 1
@@ -198,6 +199,7 @@
icon = 'icons/obj/stationobjs.dmi'
icon_state = "doorctrl0"
desc = "A remote control-switch for a door."
power_channel = ENVIRON
var/id = null
var/range = 10
var/normaldoorcontrol = 0

View File

@@ -94,6 +94,7 @@ obj/machinery/airlock_sensor
name = "Airlock Sensor"
anchored = 1
power_channel = ENVIRON
var/id_tag
var/master_tag
@@ -160,6 +161,7 @@ obj/machinery/access_button
name = "Access Button"
anchored = 1
power_channel = ENVIRON
var/master_tag
var/frequency = 1449

View File

@@ -67,6 +67,7 @@ Airlock index -> wire color are { 9, 4, 6, 7, 5, 8, 1, 2, 3 }.
name = "Airlock"
icon = 'icons/obj/doors/Doorint.dmi'
icon_state = "door_closed"
power_channel = ENVIRON
var/aiControlDisabled = 0 //If 1, AI control is disabled until the AI hacks back in and disables the lock. If 2, the AI has bypassed the lock. If -1, the control is enabled but the AI had bypassed it earlier, so if it is disabled again the AI would have no trouble getting back in.
var/hackProof = 0 // if 1, this door can't be hacked by the AI

View File

@@ -8,6 +8,7 @@
icon_state = "door_open"
opacity = 0
density = 0
power_channel = ENVIRON
var/blocked = 0
var/nextstate = null
@@ -19,7 +20,7 @@
power_change()
if(powered(ENVIRON))
if(powered(power_channel))
stat &= ~NOPOWER
else
stat |= NOPOWER

View File

@@ -2,6 +2,7 @@
name = "Shutters"
icon = 'icons/obj/doors/rapid_pdoor.dmi'
icon_state = "shutter1"
power_channel = ENVIRON
/obj/machinery/door/poddoor/shutters/New()
..()

View File

@@ -152,6 +152,7 @@ obj/machinery/embedded_controller/radio/access_controller
name = "Access Console"
density = 0
power_channel = ENVIRON
frequency = 1449

View File

@@ -209,6 +209,7 @@ obj/machinery/embedded_controller/radio/airlock_controller
density = 0
frequency = 1449
power_channel = ENVIRON
// Setup parameters only
var/id_tag

View File

@@ -48,6 +48,14 @@ Stuff which is in development and not yet visible to players or just code relate
should be listed in the changelog upon commit tho. Thanks. -->
<!-- To take advantage of the pretty new format (well it was new when I wrote this anyway), open the "add-to-changelog.html" file in any browser and add the stuff and then generate the html code and paste it here -->
<div class="commit sansserif">
<h2 class="date">30 September 2012</h2>
<h3 class="author">Giacom updated:</h3>
<ul class="changes bgimages16">
<li class="tweak">Airlocks now use the Environmental power channel, since they are <b>air</b>locks after-all. Meaning, when power is low the airlocks will still work until the environmental channel on the APC is turned off. This applies to all the door control buttons too. Pipe meters now use the environmental power channel. If you have any comments have this change, please let me know in the feedback section of the forums.</li>
</ul>
</div>
<div class="commit sansserif">
<h2 class="date">26 September 2012</h2>
<h3 class="author">Carnwennan updated:</h3>