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
+11 -11
View File
@@ -6,8 +6,8 @@
icon_state = "conveyor0"
name = "conveyor belt"
desc = "A conveyor belt."
anchored = 1
var/operating = 0 // 1 if running forward, -1 if backwards, 0 if off
anchored = TRUE
var/operating = FALSE // 1 if running forward, -1 if backwards, 0 if off
var/operable = 1 // true if can operate (no broken segments in this belt run)
var/forwards // this is the default (forward) direction, set by the map dir
var/backwards // hopefully self-explanatory
@@ -26,20 +26,20 @@
/obj/machinery/conveyor/auto/Initialize(mapload, newdir)
. = ..()
operating = 1
operating = TRUE
update_move_direction()
/obj/machinery/conveyor/auto/update()
if(stat & BROKEN)
icon_state = "conveyor-broken"
operating = 0
operating = FALSE
return
else if(!operable)
operating = 0
operating = FALSE
else if(stat & NOPOWER)
operating = 0
operating = FALSE
else
operating = 1
operating = TRUE
icon_state = "conveyor[operating * verted]"
// create a conveyor
@@ -88,12 +88,12 @@
/obj/machinery/conveyor/proc/update()
if(stat & BROKEN)
icon_state = "conveyor-broken"
operating = 0
operating = FALSE
return
if(!operable)
operating = 0
operating = FALSE
if(stat & NOPOWER)
operating = 0
operating = FALSE
icon_state = "conveyor[operating * verted]"
// machine process
@@ -207,7 +207,7 @@
var/id = "" // must match conveyor IDs to control them
var/list/conveyors // the list of converyors that are controlled by this switch
anchored = 1
anchored = TRUE
speed_process = 1
@@ -7,8 +7,8 @@
desc = "A huge pipe segment used for constructing disposal systems."
icon = 'icons/obj/atmospherics/pipes/disposal.dmi'
icon_state = "conpipe-s"
anchored = 0
density = 0
anchored = FALSE
density = FALSE
pressure_resistance = 5*ONE_ATMOSPHERE
level = 2
max_integrity = 200
@@ -195,10 +195,10 @@
if(istype(I, /obj/item/weapon/wrench))
if(anchored)
anchored = 0
anchored = FALSE
if(ispipe)
level = 2
density = 0
density = FALSE
to_chat(user, "<span class='notice'>You detach the [nicetype] from the underfloor.</span>")
else
if(!is_pipe()) // Disposal or outlet
@@ -218,10 +218,10 @@
if(pdir & dpdir)
to_chat(user, "<span class='warning'>There is already a [nicetype] at that location!</span>")
return
anchored = 1
anchored = TRUE
if(ispipe)
level = 1 // We don't want disposal bins to disappear under the floors
density = 0
density = FALSE
to_chat(user, "<span class='notice'>You attach the [nicetype] to the underfloor.</span>")
playsound(loc, I.usesound, 100, 1)
update_icon()
@@ -133,8 +133,8 @@
icon = 'icons/obj/atmospherics/pipes/disposal.dmi'
name = "disposal pipe"
desc = "An underfloor disposal pipe."
anchored = 1
density = 0
anchored = TRUE
density = FALSE
on_blueprints = TRUE
level = 1 // underfloor only
var/dpdir = 0 // bitmask of pipe directions
@@ -323,8 +323,8 @@
stored.loc = T
transfer_fingerprints_to(stored)
stored.setDir(dir)
stored.density = 0
stored.anchored = 1
stored.density = FALSE
stored.anchored = TRUE
stored.update_icon()
else
for(var/D in GLOB.cardinals)
@@ -636,8 +636,8 @@
desc = "An outlet for the pneumatic disposal system."
icon = 'icons/obj/atmospherics/pipes/disposal.dmi'
icon_state = "outlet"
density = 1
anchored = 1
density = TRUE
anchored = TRUE
var/active = 0
var/turf/target // this will be where the output objects are 'thrown' to.
var/obj/structure/disposalpipe/trunk/trunk = null // the attached pipe trunk
@@ -711,8 +711,8 @@
stored.loc = loc
src.transfer_fingerprints_to(stored)
stored.update_icon()
stored.anchored = 0
stored.density = 1
stored.anchored = FALSE
stored.density = TRUE
qdel(src)
else
return ..()
+6 -6
View File
@@ -5,8 +5,8 @@
/obj/machinery/disposal
icon = 'icons/obj/atmospherics/pipes/disposal.dmi'
anchored = 1
density = 1
anchored = TRUE
density = TRUE
on_blueprints = TRUE
armor = list(melee = 25, bullet = 10, laser = 10, energy = 100, bomb = 0, bio = 100, rad = 100, fire = 90, acid = 30)
max_integrity = 200
@@ -240,8 +240,8 @@
if(stored)
stored.forceMove(T)
src.transfer_fingerprints_to(stored)
stored.anchored = 0
stored.density = 1
stored.anchored = FALSE
stored.density = TRUE
stored.update_icon()
for(var/atom/movable/AM in src) //out, out, darned crowbar!
AM.forceMove(T)
@@ -282,7 +282,7 @@
// handle machine interaction
/obj/machinery/disposal/bin/ui_interact(mob/user, ui_key = "main", datum/tgui/ui = null, force_open = 0, \
/obj/machinery/disposal/bin/ui_interact(mob/user, ui_key = "main", datum/tgui/ui = null, force_open = FALSE, \
datum/tgui/master_ui = null, datum/ui_state/state = GLOB.default_state)
if(stat & BROKEN)
return
@@ -442,7 +442,7 @@
/obj/machinery/disposal/deliveryChute
name = "delivery chute"
desc = "A chute for big and small packages alike!"
density = 1
density = TRUE
icon_state = "intake"
pressure_charging = FALSE // the chute doesn't need charging and always works
+1 -1
View File
@@ -3,7 +3,7 @@
desc = "A large delivery parcel."
icon = 'icons/obj/storage.dmi'
icon_state = "deliverycloset"
density = 1
density = TRUE
mouse_drag_pointer = MOUSE_ACTIVE_POINTER
var/giftwrapped = FALSE
var/sortTag = 0