Changes some 1s and 0s to TRUE and FALSE (#1967)

This commit is contained in:
CitadelStationBot
2017-07-10 18:13:16 -05:00
committed by kevinz000
parent 1b70c06474
commit ff6bbbedf5
522 changed files with 1924 additions and 1917 deletions
@@ -3,8 +3,8 @@
desc = "Holds antimatter."
icon = 'icons/obj/machines/antimatter.dmi'
icon_state = "jar"
density = 0
anchored = 0
density = FALSE
anchored = FALSE
force = 8
throwforce = 10
throw_speed = 1
+4 -4
View File
@@ -3,8 +3,8 @@
desc = "This device injects antimatter into connected shielding units, the more antimatter injected the more power produced. Wrench the device to set it up."
icon = 'icons/obj/machines/antimatter.dmi'
icon_state = "control"
anchored = 0
density = 1
anchored = FALSE
density = TRUE
use_power = IDLE_POWER_USE
idle_power_usage = 100
active_power_usage = 1000
@@ -164,14 +164,14 @@
user.visible_message("[user.name] secures the [src.name] to the floor.", \
"<span class='notice'>You secure the anchor bolts to the floor.</span>", \
"<span class='italics'>You hear a ratchet.</span>")
src.anchored = 1
src.anchored = TRUE
connect_to_network()
else if(!linked_shielding.len > 0)
playsound(src.loc, W.usesound, 75, 1)
user.visible_message("[user.name] unsecures the [src.name].", \
"<span class='notice'>You remove the anchor bolts.</span>", \
"<span class='italics'>You hear a ratchet.</span>")
src.anchored = 0
src.anchored = FALSE
disconnect_from_network()
else
to_chat(user, "<span class='warning'>Once bolted and linked to a shielding unit it the [src.name] is unable to be moved!</span>")
+5 -5
View File
@@ -13,15 +13,15 @@
icon = 'icons/obj/machines/antimatter.dmi'
icon_state = "shield"
anchored = 1
density = 1
anchored = TRUE
density = TRUE
dir = NORTH
use_power = NO_POWER_USE//Living things generally dont use power
idle_power_usage = 0
active_power_usage = 0
var/obj/machinery/power/am_control_unit/control_unit = null
var/processing = 0//To track if we are in the update list or not, we need to be when we are damaged and if we ever
var/processing = FALSE//To track if we are in the update list or not, we need to be when we are damaged and if we ever
var/stability = 100//If this gets low bad things tend to happen
var/efficiency = 1//How many cores this core counts for when doing power processing, plasma in the air and stability could affect this
var/coredirs = 0
@@ -186,7 +186,7 @@
/obj/machinery/am_shielding/proc/setup_core()
processing = 1
processing = TRUE
GLOB.machines |= src
START_PROCESSING(SSmachines, src)
if(!control_unit)
@@ -197,7 +197,7 @@
/obj/machinery/am_shielding/proc/shutdown_core()
processing = 0
processing = FALSE
if(!control_unit)
return
control_unit.linked_cores.Remove(src)