diff --git a/code/__DEFINES/MC.dm b/code/__DEFINES/MC.dm
index f5879c52b1..92d3f01982 100644
--- a/code/__DEFINES/MC.dm
+++ b/code/__DEFINES/MC.dm
@@ -19,8 +19,8 @@
#define NEW_SS_GLOBAL(varname) if(varname != src){if(istype(varname)){Recover();qdel(varname);}varname = src;}
-#define START_PROCESSING(Processor, Datum) if (!Datum.isprocessing) {Datum.isprocessing = 1;Processor.processing += Datum}
-#define STOP_PROCESSING(Processor, Datum) Datum.isprocessing = 0;Processor.processing -= Datum
+#define START_PROCESSING(Processor, Datum) if (!Datum.isprocessing) {Datum.isprocessing = TRUE;Processor.processing += Datum}
+#define STOP_PROCESSING(Processor, Datum) Datum.isprocessing = FALSE;Processor.processing -= Datum
//SubSystem flags (Please design any new flags so that the default is off, to make adding flags to subsystems easier)
diff --git a/code/__HELPERS/icon_smoothing.dm b/code/__HELPERS/icon_smoothing.dm
index db7a79d2e7..849e5a01ee 100644
--- a/code/__HELPERS/icon_smoothing.dm
+++ b/code/__HELPERS/icon_smoothing.dm
@@ -51,7 +51,7 @@
/atom/var/bottom_left_corner
/atom/var/bottom_right_corner
/atom/var/list/canSmoothWith = null // TYPE PATHS I CAN SMOOTH WITH~~~~~ If this is null and atom is smooth, it smooths only with itself
-/atom/movable/var/can_be_unanchored = 0
+/atom/movable/var/can_be_unanchored = FALSE
/turf/var/list/fixed_underlay = null
/proc/calculate_adjacencies(atom/A)
diff --git a/code/__HELPERS/unsorted.dm b/code/__HELPERS/unsorted.dm
index 4c09de668f..6b8cd0d4a6 100644
--- a/code/__HELPERS/unsorted.dm
+++ b/code/__HELPERS/unsorted.dm
@@ -42,7 +42,7 @@
.+=360
//Returns location. Returns null if no location was found.
-/proc/get_teleport_loc(turf/location,mob/target,distance = 1, density = 0, errorx = 0, errory = 0, eoffsetx = 0, eoffsety = 0)
+/proc/get_teleport_loc(turf/location,mob/target,distance = 1, density = FALSE, errorx = 0, errory = 0, eoffsetx = 0, eoffsety = 0)
/*
Location where the teleport begins, target that will teleport, distance to go, density checking 0/1(yes/no).
Random error in tile placement x, error in tile placement y, and block offset.
diff --git a/code/controllers/configuration.dm b/code/controllers/configuration.dm
index fc1dc83129..b3d4324959 100644
--- a/code/controllers/configuration.dm
+++ b/code/controllers/configuration.dm
@@ -194,7 +194,7 @@
var/allowwebclient = 0
var/webclientmembersonly = 0
- var/sandbox_autoclose = 0 // close the sandbox panel after spawning an item, potentially reducing griff
+ var/sandbox_autoclose = FALSE // close the sandbox panel after spawning an item, potentially reducing griff
var/default_laws = 0 //Controls what laws the AI spawns with.
var/silicon_max_law_amount = 12
diff --git a/code/controllers/master.dm b/code/controllers/master.dm
index 74847ed88c..c71e34fce3 100644
--- a/code/controllers/master.dm
+++ b/code/controllers/master.dm
@@ -18,7 +18,7 @@ GLOBAL_REAL(Master, /datum/controller/master) = new
name = "Master"
// Are we processing (higher values increase the processing delay by n ticks)
- var/processing = 1
+ var/processing = TRUE
// How many times have we ran
var/iteration = 0
@@ -97,7 +97,7 @@ GLOBAL_REAL(Master, /datum/controller/master) = new
var/delay = 50 * ++Master.restart_count
Master.restart_timeout = world.time + delay
Master.restart_clear = world.time + (delay * 2)
- Master.processing = 0 //stop ticking this one
+ Master.processing = FALSE //stop ticking this one
try
new/datum/controller/master()
catch
diff --git a/code/controllers/subsystem/machines.dm b/code/controllers/subsystem/machines.dm
index 391804c4f8..eab61d4ef9 100644
--- a/code/controllers/subsystem/machines.dm
+++ b/code/controllers/subsystem/machines.dm
@@ -45,7 +45,7 @@ SUBSYSTEM_DEF(machines)
else
processing -= thing
if (!QDELETED(thing))
- thing.isprocessing = 0
+ thing.isprocessing = FALSE
if (MC_TICK_CHECK)
return
diff --git a/code/controllers/subsystem/processing/processing.dm b/code/controllers/subsystem/processing/processing.dm
index 67ee5113cb..0586975866 100644
--- a/code/controllers/subsystem/processing/processing.dm
+++ b/code/controllers/subsystem/processing/processing.dm
@@ -27,7 +27,7 @@ SUBSYSTEM_DEF(processing)
if (MC_TICK_CHECK)
return
-/datum/var/isprocessing = 0
+/datum/var/isprocessing = FALSE
/datum/proc/process()
set waitfor = 0
STOP_PROCESSING(SSobj, src)
diff --git a/code/datums/action.dm b/code/datums/action.dm
index 11b80017ea..f356771d6c 100644
--- a/code/datums/action.dm
+++ b/code/datums/action.dm
@@ -8,7 +8,7 @@
var/desc = null
var/obj/target = null
var/check_flags = 0
- var/processing = 0
+ var/processing = FALSE
var/obj/screen/movable/action_button/button = null
var/button_icon = 'icons/mob/actions.dmi'
var/background_icon_state = ACTION_BUTTON_DEFAULT_BACKGROUND
diff --git a/code/datums/beam.dm b/code/datums/beam.dm
index aba167ec7c..fa38e1530d 100644
--- a/code/datums/beam.dm
+++ b/code/datums/beam.dm
@@ -142,7 +142,7 @@
/obj/effect/ebeam
mouse_opacity = 0
- anchored = 1
+ anchored = TRUE
var/datum/beam/owner
/obj/effect/ebeam/Destroy()
diff --git a/code/datums/diseases/advance/advance.dm b/code/datums/diseases/advance/advance.dm
index c4084dd18e..3aa4dab99b 100644
--- a/code/datums/diseases/advance/advance.dm
+++ b/code/datums/diseases/advance/advance.dm
@@ -31,7 +31,7 @@
var/list/properties = list()
var/list/symptoms = list() // The symptoms of the disease.
var/id = ""
- var/processing = 0
+ var/processing = FALSE
// The order goes from easy to cure to hard to cure.
var/static/list/advance_cures = list(
@@ -76,7 +76,7 @@
if(symptoms && symptoms.len)
if(!processing)
- processing = 1
+ processing = TRUE
for(var/datum/symptom/S in symptoms)
S.Start(src)
diff --git a/code/datums/wires/wires.dm b/code/datums/wires/wires.dm
index fa25b38862..51f86270f2 100644
--- a/code/datums/wires/wires.dm
+++ b/code/datums/wires/wires.dm
@@ -198,7 +198,7 @@
return ..()
return UI_CLOSE
-/datum/wires/ui_interact(mob/user, ui_key = "wires", datum/tgui/ui = null, force_open = 0, \
+/datum/wires/ui_interact(mob/user, ui_key = "wires", datum/tgui/ui = null, force_open = FALSE, \
datum/tgui/master_ui = null, datum/ui_state/state = GLOB.physical_state)
ui = SStgui.try_update_ui(user, src, ui_key, ui, force_open)
if (!ui)
diff --git a/code/game/area/Space_Station_13_areas.dm b/code/game/area/Space_Station_13_areas.dm
index 16b548daf0..9c9fb8f4cb 100644
--- a/code/game/area/Space_Station_13_areas.dm
+++ b/code/game/area/Space_Station_13_areas.dm
@@ -6,7 +6,7 @@
name = "NICE NAME" (not required but makes things really nice)
icon = 'ICON FILENAME' (defaults to 'icons/turf/areas.dmi')
icon_state = "NAME OF ICON" (defaults to "unknown" (blank))
- requires_power = 0 (defaults to 1)
+ requires_power = FALSE (defaults to true)
music = null (defaults to nothing, look in sound/ambience for music)
NOTE: there are two lists of areas in the end of this file: centcom and station itself. Please maintain these lists valid. --rastaf0
@@ -21,7 +21,7 @@ NOTE: there are two lists of areas in the end of this file: centcom and station
/area/ai_monitored/turret_protected
/area/arrival
- requires_power = 0
+ requires_power = FALSE
/area/arrival/start
name = "Arrival Area"
@@ -33,16 +33,16 @@ NOTE: there are two lists of areas in the end of this file: centcom and station
/area/space
icon_state = "space"
- requires_power = 1
- always_unpowered = 1
+ requires_power = TRUE
+ always_unpowered = TRUE
dynamic_lighting = DYNAMIC_LIGHTING_DISABLED
- power_light = 0
- power_equip = 0
- power_environ = 0
- valid_territory = 0
- outdoors = 1
+ power_light = FALSE
+ power_equip = FALSE
+ power_environ = FALSE
+ valid_territory = FALSE
+ outdoors = TRUE
ambientsounds = list('sound/ambience/ambispace.ogg','sound/ambience/title2.ogg')
- blob_allowed = 0 //Eating up space doesn't count for victory as a blob.
+ blob_allowed = FALSE //Eating up space doesn't count for victory as a blob.
/area/space/nearstation
icon_state = "space_near"
@@ -51,9 +51,9 @@ NOTE: there are two lists of areas in the end of this file: centcom and station
/area/start
name = "start area"
icon_state = "start"
- requires_power = 0
+ requires_power = FALSE
dynamic_lighting = DYNAMIC_LIGHTING_DISABLED
- has_gravity = 1
+ has_gravity = TRUE
//EXTRA
@@ -61,16 +61,16 @@ NOTE: there are two lists of areas in the end of this file: centcom and station
/area/asteroid
name = "Asteroid"
icon_state = "asteroid"
- requires_power = 0
- has_gravity = 1
- blob_allowed = 0 //Nope, no winning on the asteroid as a blob. Gotta eat the station.
- valid_territory = 0
+ requires_power = FALSE
+ has_gravity = TRUE
+ blob_allowed = FALSE //Nope, no winning on the asteroid as a blob. Gotta eat the station.
+ valid_territory = FALSE
/area/asteroid/cave
name = "Asteroid - Underground"
icon_state = "cave"
- requires_power = 0
- outdoors = 1
+ requires_power = FALSE
+ outdoors = TRUE
/area/asteroid/artifactroom
name = "Asteroid - Artifact"
@@ -83,12 +83,12 @@ NOTE: there are two lists of areas in the end of this file: centcom and station
/area/planet/clown
name = "Clown Planet"
icon_state = "honk"
- requires_power = 0
+ requires_power = FALSE
/area/telesciareas
name = "Cosmic Anomaly"
icon_state = "telesci"
- requires_power = 0
+ requires_power = FALSE
//STATION13
@@ -104,7 +104,7 @@ NOTE: there are two lists of areas in the end of this file: centcom and station
'sound/voice/lowHiss2.ogg', //Xeno Breathing Hisses, Hahahaha I'm not even sorry.
'sound/voice/lowHiss3.ogg',
'sound/voice/lowHiss4.ogg')
- valid_territory = 0
+ valid_territory = FALSE
//Departments
@@ -506,7 +506,7 @@ NOTE: there are two lists of areas in the end of this file: centcom and station
/area/crew_quarters/dorms
name = "Dormitories"
icon_state = "Sleep"
- safe = 1
+ safe = TRUE
/area/crew_quarters/dorms/male
name = "Male Dorm"
@@ -692,9 +692,9 @@ NOTE: there are two lists of areas in the end of this file: centcom and station
//Solars
/area/solar
- requires_power = 0
+ requires_power = FALSE
dynamic_lighting = DYNAMIC_LIGHTING_IFSTARLIGHT
- valid_territory = 0
+ valid_territory = FALSE
blob_allowed = FALSE
flags = NONE
@@ -820,9 +820,9 @@ NOTE: there are two lists of areas in the end of this file: centcom and station
/area/assembly/assembly_line //Derelict Assembly Line
name = "Assembly Line"
icon_state = "ass_line"
- power_equip = 0
- power_light = 0
- power_environ = 0
+ power_equip = FALSE
+ power_light = FALSE
+ power_environ = FALSE
//Teleporter
@@ -1156,7 +1156,7 @@ NOTE: there are two lists of areas in the end of this file: centcom and station
icon_state = "toxmisc"
/area/science/test_area
- valid_territory = 0
+ valid_territory = FALSE
name = "Toxins Test Area"
icon_state = "toxtest"
@@ -1237,12 +1237,12 @@ NOTE: there are two lists of areas in the end of this file: centcom and station
/area/storage/atmos
name = "Atmospherics Storage"
icon_state = "atmos"
- valid_territory = 0
+ valid_territory = FALSE
/area/storage/tcom
name = "Telecoms Storage"
icon_state = "green"
- valid_territory = 0
+ valid_territory = FALSE
/area/storage/eva
name = "EVA Storage"
@@ -1265,7 +1265,7 @@ NOTE: there are two lists of areas in the end of this file: centcom and station
icon_state = "auxstorage"
/area/storage/testroom
- requires_power = 0
+ requires_power = FALSE
name = "Test Room"
icon_state = "storage"
diff --git a/code/game/area/areas.dm b/code/game/area/areas.dm
index 137229db37..c71ea6a10f 100644
--- a/code/game/area/areas.dm
+++ b/code/game/area/areas.dm
@@ -12,26 +12,26 @@
var/map_name // Set in New(); preserves the name set by the map maker, even if renamed by the Blueprints.
- var/valid_territory = 1 // If it's a valid territory for gangs to claim
- var/blob_allowed = 1 // Does it count for blobs score? By default, all areas count.
+ var/valid_territory = TRUE // If it's a valid territory for gangs to claim
+ var/blob_allowed = TRUE // Does it count for blobs score? By default, all areas count.
var/eject = null
var/fire = null
- var/atmos = 1
- var/atmosalm = 0
- var/poweralm = 1
+ var/atmos = TRUE
+ var/atmosalm = FALSE
+ var/poweralm = TRUE
var/party = null
- var/lightswitch = 1
+ var/lightswitch = TRUE
- var/requires_power = 1
- var/always_unpowered = 0 // This gets overriden to 1 for space in area/Initialize().
+ var/requires_power = TRUE
+ var/always_unpowered = FALSE // This gets overriden to 1 for space in area/Initialize().
- var/outdoors = 0 //For space, the asteroid, lavaland, etc. Used with blueprints to determine if we are adding a new area (vs editing a station room)
+ var/outdoors = FALSE //For space, the asteroid, lavaland, etc. Used with blueprints to determine if we are adding a new area (vs editing a station room)
- var/power_equip = 1
- var/power_light = 1
- var/power_environ = 1
+ var/power_equip = TRUE
+ var/power_light = TRUE
+ var/power_environ = TRUE
var/music = null
var/used_equip = 0
var/used_light = 0
@@ -40,10 +40,10 @@
var/static_light = 0
var/static_environ
- var/has_gravity = 0
- var/noteleport = 0 //Are you forbidden from teleporting to the area? (centcomm, mobs, wizard, hand teleporter)
+ var/has_gravity = FALSE
+ var/noteleport = FALSE //Are you forbidden from teleporting to the area? (centcomm, mobs, wizard, hand teleporter)
var/hidden = FALSE //Hides area from player Teleport function.
- var/safe = 0 //Is the area teleport-safe: no space / radiation / aggresive mobs / other dangers
+ var/safe = FALSE //Is the area teleport-safe: no space / radiation / aggresive mobs / other dangers
var/no_air = null
var/list/related // the other areas of the same type as this
@@ -108,9 +108,9 @@ GLOBAL_LIST_EMPTY(teleportlocs)
if(requires_power)
luminosity = 0
else
- power_light = 1
- power_equip = 1
- power_environ = 1
+ power_light = TRUE
+ power_equip = TRUE
+ power_environ = TRUE
if(dynamic_lighting == DYNAMIC_LIGHTING_FORCED)
dynamic_lighting = DYNAMIC_LIGHTING_ENABLED
@@ -463,10 +463,10 @@ GLOBAL_LIST_EMPTY(teleportlocs)
/area/proc/setup(a_name)
name = a_name
- power_equip = 0
- power_light = 0
- power_environ = 0
- always_unpowered = 0
- valid_territory = 0
- blob_allowed = 0
+ power_equip = FALSE
+ power_light = FALSE
+ power_environ = FALSE
+ always_unpowered = FALSE
+ valid_territory = FALSE
+ blob_allowed = FALSE
addSorted()
diff --git a/code/game/area/areas/away_content.dm b/code/game/area/areas/away_content.dm
index 993994cb35..1645171907 100644
--- a/code/game/area/areas/away_content.dm
+++ b/code/game/area/areas/away_content.dm
@@ -3,7 +3,7 @@
/area/awaymission
name = "Strange Location"
icon_state = "away"
- has_gravity = 1
+ has_gravity = TRUE
/area/awaymission/example
name = "Strange Station"
@@ -16,20 +16,20 @@
/area/awaymission/listeningpost
name = "Listening Post"
icon_state = "away"
- requires_power = 0
+ requires_power = FALSE
/area/awaymission/beach
name = "Beach"
icon_state = "away"
dynamic_lighting = DYNAMIC_LIGHTING_DISABLED
- requires_power = 0
- has_gravity = 1
+ requires_power = FALSE
+ has_gravity = TRUE
ambientsounds = list('sound/ambience/shore.ogg', 'sound/ambience/seag1.ogg','sound/ambience/seag2.ogg','sound/ambience/seag2.ogg')
/area/awaymission/errorroom
name = "Super Secret Room"
dynamic_lighting = DYNAMIC_LIGHTING_DISABLED
- has_gravity = 1
+ has_gravity = TRUE
//Research Base Areas//--
@@ -41,7 +41,7 @@
/area/awaymission/research/interior
name = "Research Inside"
- requires_power = 1
+ requires_power = TRUE
icon_state = "away2"
/area/awaymission/research/interior/cryo
@@ -106,12 +106,12 @@
/area/awaymission/challenge/main
name = "Danger Room"
icon_state = "away1"
- requires_power = 0
+ requires_power = FALSE
/area/awaymission/challenge/end
name = "Administration"
icon_state = "away2"
- requires_power = 0
+ requires_power = FALSE
//centcomAway areas
@@ -119,7 +119,7 @@
/area/awaymission/centcomAway
name = "XCC-P5831"
icon_state = "away"
- requires_power = 0
+ requires_power = FALSE
/area/awaymission/centcomAway/general
name = "XCC-P5831"
@@ -155,13 +155,13 @@
/area/awaymission/snowforest
name = "Snow Forest"
icon_state = "away"
- requires_power = 0
+ requires_power = FALSE
dynamic_lighting = DYNAMIC_LIGHTING_ENABLED
/area/awaymission/cabin
name = "Cabin"
icon_state = "away2"
- requires_power = 1
+ requires_power = TRUE
dynamic_lighting = DYNAMIC_LIGHTING_ENABLED
/area/awaymission/snowforest/lumbermill
@@ -178,17 +178,17 @@
/area/awaymission/BMPship/Aft
name = "Aft Block"
icon_state = "away1"
- requires_power = 1
+ requires_power = TRUE
/area/awaymission/BMPship/Midship
name = "Midship Block"
icon_state = "away2"
- requires_power = 1
+ requires_power = TRUE
/area/awaymission/BMPship/Fore
name = "Fore Block"
icon_state = "away3"
- requires_power = 1
+ requires_power = TRUE
//Academy Areas
@@ -228,17 +228,17 @@
/area/awaymission/wwmines
name = "Wild West Mines"
icon_state = "away1"
- requires_power = 0
+ requires_power = FALSE
/area/awaymission/wwgov
name = "Wild West Mansion"
icon_state = "away2"
- requires_power = 0
+ requires_power = FALSE
/area/awaymission/wwrefine
name = "Wild West Refinery"
icon_state = "away3"
- requires_power = 0
+ requires_power = FALSE
/area/awaymission/wwvault
name = "Wild West Vault"
@@ -247,7 +247,7 @@
/area/awaymission/wwvaultdoors
name = "Wild West Vault Doors" // this is to keep the vault area being entirely lit because of requires_power
icon_state = "away2"
- requires_power = 0
+ requires_power = FALSE
/*
@@ -280,7 +280,7 @@
/area/awaymission/spacebattle
name = "Space Battle"
icon_state = "away"
- requires_power = 0
+ requires_power = FALSE
/area/awaymission/spacebattle/cruiser
name = "Nanotrasen Cruiser"
@@ -315,12 +315,12 @@
/area/awaymission/snowdin
name = "Snowdin Tundra Plains"
icon_state = "away"
- requires_power = 0
+ requires_power = FALSE
dynamic_lighting = DYNAMIC_LIGHTING_ENABLED
/area/awaymission/snowdin/post
name = "Snowdin Outpost"
- requires_power = 1
+ requires_power = TRUE
/area/awaymission/snowdin/igloo
name = "Snowdin Igloos"
@@ -333,7 +333,7 @@
/area/awaymission/snowdin/base
name = "Snowdin Main Base"
icon_state = "away3"
- requires_power = 1
+ requires_power = TRUE
/area/awaymission/snowdin/dungeon1
name = "Snowdin Depths"
@@ -342,7 +342,7 @@
/area/awaymission/snowdin/sekret
name = "Snowdin Operations"
icon_state = "away3"
- requires_power = 1
+ requires_power = TRUE
diff --git a/code/game/area/areas/centcom.dm b/code/game/area/areas/centcom.dm
index 65dd6ded5f..1e3efd9f2b 100644
--- a/code/game/area/areas/centcom.dm
+++ b/code/game/area/areas/centcom.dm
@@ -5,10 +5,10 @@
name = "Centcom"
icon_state = "centcom"
dynamic_lighting = DYNAMIC_LIGHTING_FORCED
- requires_power = 0
- has_gravity = 1
- noteleport = 1
- blob_allowed = 0 //Should go without saying, no blobs should take over centcom as a win condition.
+ requires_power = FALSE
+ has_gravity = TRUE
+ noteleport = TRUE
+ blob_allowed = FALSE //Should go without saying, no blobs should take over centcom as a win condition.
flags = NONE
/area/centcom/control
@@ -35,8 +35,8 @@
name = "Thunderdome"
icon_state = "yellow"
dynamic_lighting = DYNAMIC_LIGHTING_FORCED
- requires_power = 0
- has_gravity = 1
+ requires_power = FALSE
+ has_gravity = TRUE
flags = NONE
/area/tdome/arena
@@ -73,28 +73,28 @@
name = "Wizard's Den"
icon_state = "yellow"
dynamic_lighting = DYNAMIC_LIGHTING_FORCED
- requires_power = 0
- has_gravity = 1
- noteleport = 1
+ requires_power = FALSE
+ has_gravity = TRUE
+ noteleport = TRUE
flags = NONE
//Abductors
/area/abductor_ship
name = "Abductor Ship"
icon_state = "yellow"
- requires_power = 0
- noteleport = 1
- has_gravity = 1
+ requires_power = FALSE
+ noteleport = TRUE
+ has_gravity = TRUE
flags = NONE
//Syndicates
/area/syndicate_mothership
name = "Syndicate Mothership"
icon_state = "syndie-ship"
- requires_power = 0
- has_gravity = 1
- noteleport = 1
- blob_allowed = 0 //Not... entirely sure this will ever come up... but if the bus makes blobs AND ops, it shouldn't aim for the ops to win.
+ requires_power = FALSE
+ has_gravity = TRUE
+ noteleport = TRUE
+ blob_allowed = FALSE //Not... entirely sure this will ever come up... but if the bus makes blobs AND ops, it shouldn't aim for the ops to win.
flags = NONE
/area/syndicate_mothership/control
@@ -113,8 +113,8 @@
/area/ctf
name = "Capture the Flag"
icon_state = "yellow"
- requires_power = 0
- has_gravity = 1
+ requires_power = FALSE
+ has_gravity = TRUE
flags = NO_DEATHRATTLE
/area/ctf/control_room
diff --git a/code/game/area/areas/derelict.dm b/code/game/area/areas/derelict.dm
index 9679103f38..00804c5012 100644
--- a/code/game/area/areas/derelict.dm
+++ b/code/game/area/areas/derelict.dm
@@ -3,7 +3,7 @@
/area/derelict
name = "Derelict Station"
icon_state = "storage"
- blob_allowed = 0 //Nope, no winning on the derelict as a blob. Gotta eat the station.
+ blob_allowed = FALSE //Nope, no winning on the derelict as a blob. Gotta eat the station.
/area/derelict/hallway/primary
name = "Derelict Primary Hallway"
@@ -106,13 +106,13 @@
/area/djstation
name = "Ruskie DJ Station"
icon_state = "DJ"
- has_gravity = 1
- blob_allowed = 0 //Nope, no winning on the DJ station as a blob. Gotta eat the main station.
+ has_gravity = TRUE
+ blob_allowed = FALSE //Nope, no winning on the DJ station as a blob. Gotta eat the main station.
/area/djstation/solars
name = "DJ Station Solars"
icon_state = "DJ"
- has_gravity = 1
+ has_gravity = TRUE
//ABANDONED TELEPORTER
diff --git a/code/game/area/areas/mining.dm b/code/game/area/areas/mining.dm
index 4533d71141..022f6c3e86 100644
--- a/code/game/area/areas/mining.dm
+++ b/code/game/area/areas/mining.dm
@@ -2,19 +2,19 @@
/area/mine
icon_state = "mining"
- has_gravity = 1
+ has_gravity = TRUE
/area/mine/explored
name = "Mine"
icon_state = "explored"
music = null
- always_unpowered = 1
- requires_power = 1
- poweralm = 0
- power_environ = 0
- power_equip = 0
- power_light = 0
- outdoors = 1
+ always_unpowered = TRUE
+ requires_power = TRUE
+ poweralm = FALSE
+ power_environ = FALSE
+ power_equip = FALSE
+ power_light = FALSE
+ outdoors = TRUE
ambientsounds = list('sound/ambience/ambimine.ogg')
flags = NONE
@@ -22,13 +22,13 @@
name = "Mine"
icon_state = "unexplored"
music = null
- always_unpowered = 1
- requires_power = 1
- poweralm = 0
- power_environ = 0
- power_equip = 0
- power_light = 0
- outdoors = 1
+ always_unpowered = TRUE
+ requires_power = TRUE
+ poweralm = FALSE
+ power_environ = FALSE
+ power_equip = FALSE
+ power_light = FALSE
+ outdoors = TRUE
ambientsounds = list('sound/ambience/ambimine.ogg')
flags = NONE
@@ -85,37 +85,37 @@
/area/lavaland
icon_state = "mining"
- has_gravity = 1
+ has_gravity = TRUE
flags = NONE
/area/lavaland/surface
name = "Lavaland"
icon_state = "explored"
music = null
- always_unpowered = 1
- poweralm = 0
- power_environ = 0
- power_equip = 0
- power_light = 0
- requires_power = 1
+ always_unpowered = TRUE
+ poweralm = FALSE
+ power_environ = FALSE
+ power_equip = FALSE
+ power_light = FALSE
+ requires_power = TRUE
ambientsounds = list('sound/ambience/ambilava.ogg')
/area/lavaland/underground
name = "Lavaland Caves"
icon_state = "unexplored"
music = null
- always_unpowered = 1
- requires_power = 1
- poweralm = 0
- power_environ = 0
- power_equip = 0
- power_light = 0
+ always_unpowered = TRUE
+ requires_power = TRUE
+ poweralm = FALSE
+ power_environ = FALSE
+ power_equip = FALSE
+ power_light = FALSE
ambientsounds = list('sound/ambience/ambilava.ogg')
/area/lavaland/surface/outdoors
name = "Lavaland Wastes"
- outdoors = 1
+ outdoors = TRUE
/area/lavaland/surface/outdoors/unexplored //monsters and ruins spawn here
icon_state = "unexplored"
diff --git a/code/game/area/areas/misc.dm b/code/game/area/areas/misc.dm
index 7c4a043610..caf4a3dc0c 100644
--- a/code/game/area/areas/misc.dm
+++ b/code/game/area/areas/misc.dm
@@ -4,7 +4,7 @@
name = "Hell Lobby"
//icon = "ICON FILENAME"
//icon_state = "NAME OF ICON"
- requires_power = 0
+ requires_power = FALSE
/area/hell/trial1
name = "Hell Trial1"
@@ -52,7 +52,7 @@
/area/prison/arrival_airlock
name = "Prison Station Airlock"
icon_state = "green"
- requires_power = 0
+ requires_power = FALSE
/area/prison/control
name = "Prison Security Checkpoint"
@@ -102,7 +102,7 @@
/area/prison/solar
name = "Prison Solar Array"
icon_state = "storage"
- requires_power = 0
+ requires_power = FALSE
/area/prison/podbay
name = "Prison Podbay"
diff --git a/code/game/area/areas/ruins.dm b/code/game/area/areas/ruins.dm
index 80129359db..04aacb42ef 100644
--- a/code/game/area/areas/ruins.dm
+++ b/code/game/area/areas/ruins.dm
@@ -3,19 +3,19 @@
/area/ruin
name = "\improper Unexplored Location"
icon_state = "away"
- has_gravity = 1
+ has_gravity = TRUE
hidden = TRUE
dynamic_lighting = DYNAMIC_LIGHTING_FORCED
/area/ruin/unpowered
- always_unpowered = 0
+ always_unpowered = FALSE
/area/ruin/unpowered/no_grav
- has_gravity = 0
+ has_gravity = FALSE
/area/ruin/powered
- requires_power = 0
+ requires_power = FALSE
@@ -127,7 +127,7 @@
/area/ruin/hotel/shuttle
name = "Hotel Shuttle"
icon_state = "shuttle"
- requires_power = 0
+ requires_power = FALSE
/area/ruin/hotel/dock
name = "Hotel Shuttle Dock"
@@ -141,17 +141,17 @@
/area/ruin/fakespace
icon_state = "space"
- requires_power = 1
- always_unpowered = 1
+ requires_power = TRUE
+ always_unpowered = TRUE
dynamic_lighting = DYNAMIC_LIGHTING_DISABLED
- has_gravity = 0
- power_light = 0
- power_equip = 0
- power_environ = 0
- valid_territory = 0
- outdoors = 1
+ has_gravity = FALSE
+ power_light = FALSE
+ power_equip = FALSE
+ power_environ = FALSE
+ valid_territory = FALSE
+ outdoors = TRUE
ambientsounds = list('sound/ambience/ambispace.ogg','sound/ambience/title2.ogg')
- blob_allowed = 0
+ blob_allowed = FALSE
@@ -200,7 +200,7 @@
/area/ruin/oldteleporter
name = "Old teleporter"
icon_state = "teleporter"
- has_gravity = 0
+ has_gravity = FALSE
//Ruin of mech transport
@@ -266,11 +266,11 @@
/area/ruin/xenonest
name = "The Hive"
- always_unpowered = 1
- power_environ = 0
- power_equip = 0
- power_light = 0
- poweralm = 0
+ always_unpowered = TRUE
+ power_environ = FALSE
+ power_equip = FALSE
+ power_light = FALSE
+ poweralm = FALSE
//ash walker nest
/area/ruin/unpowered/ash_walkers
diff --git a/code/game/area/areas/shuttles.dm b/code/game/area/areas/shuttles.dm
index edc12b4d24..d008f36e29 100644
--- a/code/game/area/areas/shuttles.dm
+++ b/code/game/area/areas/shuttles.dm
@@ -3,11 +3,11 @@
/area/shuttle
name = "Shuttle"
- requires_power = 0
+ requires_power = FALSE
dynamic_lighting = DYNAMIC_LIGHTING_FORCED
- has_gravity = 1
- always_unpowered = 0
- valid_territory = 0
+ has_gravity = TRUE
+ always_unpowered = FALSE
+ valid_territory = FALSE
icon_state = "shuttle"
/area/shuttle/transit
diff --git a/code/game/atoms_movable.dm b/code/game/atoms_movable.dm
index b5fe460bf5..2b8f52aa36 100644
--- a/code/game/atoms_movable.dm
+++ b/code/game/atoms_movable.dm
@@ -9,7 +9,7 @@
/atom/movable
layer = OBJ_LAYER
var/last_move = null
- var/anchored = 0
+ var/anchored = FALSE
var/datum/thrownthing/throwing = null
var/throw_speed = 2 //How many tiles to move per ds when being thrown. Float values are fully supported
var/throw_range = 7
@@ -313,7 +313,7 @@
set waitfor = 0
return hit_atom.hitby(src)
-/atom/movable/hitby(atom/movable/AM, skipcatch, hitpush = 1, blocked)
+/atom/movable/hitby(atom/movable/AM, skipcatch, hitpush = TRUE, blocked)
if(!anchored && hitpush)
step(src, AM.dir)
..()
diff --git a/code/game/gamemodes/antag_hud.dm b/code/game/gamemodes/antag_hud.dm
index 1f73b47427..26279ece7e 100644
--- a/code/game/gamemodes/antag_hud.dm
+++ b/code/game/gamemodes/antag_hud.dm
@@ -1,9 +1,9 @@
/datum/atom_hud/antag
hud_icons = list(ANTAG_HUD)
- var/self_visible = 1
+ var/self_visible = TRUE
/datum/atom_hud/antag/hidden
- self_visible = 0
+ self_visible = FALSE
/datum/atom_hud/antag/proc/join_hud(mob/M)
//sees_hud should be set to 0 if the mob does not get to see it's own hud type.
diff --git a/code/game/gamemodes/blob/theblob.dm b/code/game/gamemodes/blob/theblob.dm
index 1879583343..501e90f8fb 100644
--- a/code/game/gamemodes/blob/theblob.dm
+++ b/code/game/gamemodes/blob/theblob.dm
@@ -4,9 +4,9 @@
icon = 'icons/mob/blob.dmi'
light_range = 2
desc = "A thick wall of writhing tendrils."
- density = 0 //this being 0 causes two bugs, being able to attack blob tiles behind other blobs and being unable to move on blob tiles in no gravity, but turning it to 1 causes the blob mobs to be unable to path through blobs, which is probably worse.
+ density = FALSE //this being false causes two bugs, being able to attack blob tiles behind other blobs and being unable to move on blob tiles in no gravity, but turning it to 1 causes the blob mobs to be unable to path through blobs, which is probably worse.
opacity = 0
- anchored = 1
+ anchored = TRUE
layer = BELOW_MOB_LAYER
var/point_return = 0 //How many points the blob gets back when it removes a blob of that type. If less than 0, blob cannot be removed.
max_integrity = 30
@@ -185,7 +185,7 @@
B.overmind = controller
else
B.overmind = overmind
- B.density = 1
+ B.density = TRUE
if(T.Enter(B,src)) //NOW we can attempt to move into the tile
B.density = initial(B.density)
B.loc = T
diff --git a/code/game/gamemodes/changeling/cellular_emporium.dm b/code/game/gamemodes/changeling/cellular_emporium.dm
index c8c3402e00..67d15c677c 100644
--- a/code/game/gamemodes/changeling/cellular_emporium.dm
+++ b/code/game/gamemodes/changeling/cellular_emporium.dm
@@ -13,7 +13,7 @@
changeling = null
. = ..()
-/datum/cellular_emporium/ui_interact(mob/user, ui_key = "main", datum/tgui/ui = null, force_open = 0, datum/tgui/master_ui = null, datum/ui_state/state = GLOB.always_state)
+/datum/cellular_emporium/ui_interact(mob/user, ui_key = "main", datum/tgui/ui = null, force_open = FALSE, datum/tgui/master_ui = null, datum/ui_state/state = GLOB.always_state)
ui = SStgui.try_update_ui(user, src, ui_key, ui, force_open)
if(!ui)
ui = new(user, src, ui_key, "cellular_emporium", name, 900, 480, master_ui, state)
diff --git a/code/game/gamemodes/changeling/powers/mutations.dm b/code/game/gamemodes/changeling/powers/mutations.dm
index 3a7bd5c952..c702439e84 100644
--- a/code/game/gamemodes/changeling/powers/mutations.dm
+++ b/code/game/gamemodes/changeling/powers/mutations.dm
@@ -307,7 +307,7 @@
playsound(get_turf(H),I.hitsound,75,1)
return
-/obj/item/projectile/tentacle/on_hit(atom/target, blocked = 0)
+/obj/item/projectile/tentacle/on_hit(atom/target, blocked = FALSE)
var/mob/living/carbon/human/H = firer
H.dropItemToGround(source.gun, TRUE) //Unequip thus delete the tentacle on hit
if(blocked >= 100)
diff --git a/code/game/gamemodes/clock_cult/clock_effect.dm b/code/game/gamemodes/clock_cult/clock_effect.dm
index 0d6fbea403..10abf4e68b 100644
--- a/code/game/gamemodes/clock_cult/clock_effect.dm
+++ b/code/game/gamemodes/clock_cult/clock_effect.dm
@@ -5,8 +5,8 @@
var/clockwork_desc = "A fabled artifact from beyond the stars. Contains concentrated meme essence." //Shown to clockwork cultists instead of the normal description
icon = 'icons/effects/clockwork_effects.dmi'
icon_state = "ratvars_flame"
- anchored = 1
- density = 0
+ anchored = TRUE
+ density = FALSE
opacity = 0
resistance_flags = INDESTRUCTIBLE | LAVA_PROOF | FIRE_PROOF | UNACIDABLE | ACID_PROOF
diff --git a/code/game/gamemodes/clock_cult/clock_effects/spatial_gateway.dm b/code/game/gamemodes/clock_cult/clock_effects/spatial_gateway.dm
index 70ea2bb3f3..74d360efd1 100644
--- a/code/game/gamemodes/clock_cult/clock_effects/spatial_gateway.dm
+++ b/code/game/gamemodes/clock_cult/clock_effects/spatial_gateway.dm
@@ -4,7 +4,7 @@
desc = "A gently thrumming tear in reality."
clockwork_desc = "A gateway in reality."
icon_state = "spatial_gateway"
- density = 1
+ density = TRUE
light_range = 2
light_power = 3
light_color = "#6A4D2F"
diff --git a/code/game/gamemodes/clock_cult/clock_items/clockwork_slab.dm b/code/game/gamemodes/clock_cult/clock_items/clockwork_slab.dm
index 20372c23ee..3cbfbb40a5 100644
--- a/code/game/gamemodes/clock_cult/clock_items/clockwork_slab.dm
+++ b/code/game/gamemodes/clock_cult/clock_items/clockwork_slab.dm
@@ -268,7 +268,7 @@
ui_interact(user)
return TRUE
-/obj/item/clockwork/slab/ui_interact(mob/user, ui_key = "main", datum/tgui/ui = null, force_open = 0, datum/tgui/master_ui = null, datum/ui_state/state = GLOB.inventory_state)
+/obj/item/clockwork/slab/ui_interact(mob/user, ui_key = "main", datum/tgui/ui = null, force_open = FALSE, datum/tgui/master_ui = null, datum/ui_state/state = GLOB.inventory_state)
ui = SStgui.try_update_ui(user, src, ui_key, ui, force_open)
if(!ui)
ui = new(user, src, ui_key, "clockwork_slab", name, 800, 420, master_ui, state)
diff --git a/code/game/gamemodes/clock_cult/clock_structure.dm b/code/game/gamemodes/clock_cult/clock_structure.dm
index 9b704101bf..7c5064127a 100644
--- a/code/game/gamemodes/clock_cult/clock_structure.dm
+++ b/code/game/gamemodes/clock_cult/clock_structure.dm
@@ -6,8 +6,8 @@
icon = 'icons/obj/clockwork_objects.dmi'
icon_state = "rare_pepe"
var/unanchored_icon //icon for when this structure is unanchored, doubles as the var for if it can be unanchored
- anchored = 1
- density = 1
+ anchored = TRUE
+ density = TRUE
resistance_flags = FIRE_PROOF | ACID_PROOF
var/can_be_repaired = TRUE //if a fabricator can repair it
break_message = "The frog isn't a meme after all!" //The message shown when a structure breaks
diff --git a/code/game/gamemodes/clock_cult/clock_structures/clock_shells.dm b/code/game/gamemodes/clock_cult/clock_structures/clock_shells.dm
index e9f02e9e8c..a2f1022abc 100644
--- a/code/game/gamemodes/clock_cult/clock_structures/clock_shells.dm
+++ b/code/game/gamemodes/clock_cult/clock_structures/clock_shells.dm
@@ -1,8 +1,8 @@
//Useless on their own, these shells can create powerful constructs.
/obj/structure/destructible/clockwork/shell
construction_value = 0
- anchored = 0
- density = 0
+ anchored = FALSE
+ density = FALSE
resistance_flags = INDESTRUCTIBLE | LAVA_PROOF | FIRE_PROOF | ACID_PROOF
var/mobtype = /mob/living/simple_animal/hostile/clockwork
var/spawn_message = " is an error and you should yell at whoever spawned this shell."
diff --git a/code/game/gamemodes/clock_cult/clock_structures/clockwork_obelisk.dm b/code/game/gamemodes/clock_cult/clock_structures/clockwork_obelisk.dm
index 3ede99d6a7..a8fe0d774d 100644
--- a/code/game/gamemodes/clock_cult/clock_structures/clockwork_obelisk.dm
+++ b/code/game/gamemodes/clock_cult/clock_structures/clockwork_obelisk.dm
@@ -95,9 +95,9 @@
var/obj/effect/clockwork/spatial_gateway/SG = locate(/obj/effect/clockwork/spatial_gateway) in loc
if(SG && SG.timerid) //it's a valid gateway, we're active
icon_state = active_icon
- density = 0
+ density = FALSE
active = TRUE
else
icon_state = inactive_icon
- density = 1
+ density = TRUE
active = FALSE
diff --git a/code/game/gamemodes/clock_cult/clock_structures/taunting_trail.dm b/code/game/gamemodes/clock_cult/clock_structures/taunting_trail.dm
index 8eddb75087..3d96e35d06 100644
--- a/code/game/gamemodes/clock_cult/clock_structures/taunting_trail.dm
+++ b/code/game/gamemodes/clock_cult/clock_structures/taunting_trail.dm
@@ -5,7 +5,7 @@
clockwork_desc = "A cloud of purple smoke that confuses and knocks down non-Servants that enter it."
gender = PLURAL
max_integrity = 5
- density = 1
+ density = TRUE
color = list("#AF0AAF", "#AF0AAF", "#AF0AAF", rgb(0,0,0))
icon = 'icons/effects/effects.dmi'
icon_state = "smoke"
diff --git a/code/game/gamemodes/cult/cult_items.dm b/code/game/gamemodes/cult/cult_items.dm
index 17f0995fc1..04364ae1c3 100644
--- a/code/game/gamemodes/cult/cult_items.dm
+++ b/code/game/gamemodes/cult/cult_items.dm
@@ -380,7 +380,7 @@
color = "#ff0000"
on_damage = 15
slot_flags = null
- on = 1
+ on = TRUE
var/charges = 5
/obj/item/device/flashlight/flare/culttorch/afterattack(atom/movable/A, mob/user, proximity)
diff --git a/code/game/gamemodes/cult/cult_structures.dm b/code/game/gamemodes/cult/cult_structures.dm
index 1785f188a9..7afcb13652 100644
--- a/code/game/gamemodes/cult/cult_structures.dm
+++ b/code/game/gamemodes/cult/cult_structures.dm
@@ -1,6 +1,6 @@
/obj/structure/destructible/cult
- density = 1
- anchored = 1
+ density = TRUE
+ anchored = TRUE
icon = 'icons/obj/cult.dmi'
var/cooldowntime = 0
break_sound = 'sound/hallucinations/veryfar_noise.ogg'
@@ -235,5 +235,5 @@
desc = "You're pretty sure that abyss is staring back."
icon = 'icons/obj/cult.dmi'
icon_state = "hole"
- density = 1
- anchored = 1
+ density = TRUE
+ anchored = TRUE
diff --git a/code/game/gamemodes/cult/runes.dm b/code/game/gamemodes/cult/runes.dm
index 713dc73cfb..69b730d574 100644
--- a/code/game/gamemodes/cult/runes.dm
+++ b/code/game/gamemodes/cult/runes.dm
@@ -19,7 +19,7 @@ To draw a rune, use an arcane tome.
var/cultist_name = "basic rune"
desc = "An odd collection of symbols drawn in what seems to be blood."
var/cultist_desc = "a basic rune with no function." //This is shown to cultists who examine the rune in order to determine its true purpose.
- anchored = 1
+ anchored = TRUE
icon = 'icons/obj/rune.dmi'
icon_state = "1"
resistance_flags = FIRE_PROOF | UNACIDABLE | ACID_PROOF
@@ -707,7 +707,7 @@ structure_check() searches for nearby cultist structures required for the invoca
to_chat(user, "There is a barely perceptible shimmering of the air above [src].")
/obj/effect/rune/wall/Destroy()
- density = 0
+ density = FALSE
GLOB.wall_runes -= src
air_update_turf(1)
return ..()
diff --git a/code/game/gamemodes/devil/true_devil/_true_devil.dm b/code/game/gamemodes/devil/true_devil/_true_devil.dm
index 661b0d79aa..1a0cfcd231 100644
--- a/code/game/gamemodes/devil/true_devil/_true_devil.dm
+++ b/code/game/gamemodes/devil/true_devil/_true_devil.dm
@@ -12,7 +12,7 @@
health = 350
maxHealth = 350
ventcrawler = VENTCRAWLER_NONE
- density = 1
+ density = TRUE
pass_flags = 0
var/ascended = FALSE
sight = (SEE_TURFS | SEE_OBJS)
diff --git a/code/game/gamemodes/events.dm b/code/game/gamemodes/events.dm
index 4c2e117cd3..324f353c8b 100644
--- a/code/game/gamemodes/events.dm
+++ b/code/game/gamemodes/events.dm
@@ -26,9 +26,9 @@
skip = 1
break
if(skip) continue
- A.power_light = 0
- A.power_equip = 0
- A.power_environ = 0
+ A.power_light = FALSE
+ A.power_equip = FALSE
+ A.power_environ = FALSE
A.power_change()
for(var/obj/machinery/power/apc/C in GLOB.apcs_list)
@@ -61,9 +61,9 @@
S.power_change()
for(var/area/A in world)
if(!istype(A, /area/space) && !istype(A, /area/shuttle) && !istype(A,/area/arrival))
- A.power_light = 1
- A.power_equip = 1
- A.power_environ = 1
+ A.power_light = TRUE
+ A.power_equip = TRUE
+ A.power_environ = TRUE
A.power_change()
/proc/power_restore_quick()
diff --git a/code/game/gamemodes/gang/dominator.dm b/code/game/gamemodes/gang/dominator.dm
index fc3f572f89..c35561ce54 100644
--- a/code/game/gamemodes/gang/dominator.dm
+++ b/code/game/gamemodes/gang/dominator.dm
@@ -7,15 +7,15 @@
desc = "A visibly sinister device. Looks like you can break it if you hit it enough."
icon = 'icons/obj/machines/dominator.dmi'
icon_state = "dominator"
- density = 1
- anchored = 1
+ density = TRUE
+ anchored = TRUE
layer = HIGH_OBJ_LAYER
max_integrity = 300
integrity_failure = 100
armor = list(melee = 20, bullet = 50, laser = 50, energy = 50, bomb = 10, bio = 100, rad = 100, fire = 10, acid = 70)
var/datum/gang/gang
- var/operating = 0 //0=standby or broken, 1=takeover
- var/warned = 0 //if this device has set off the warning at <3 minutes yet
+ var/operating = FALSE //false=standby or broken, true=takeover
+ var/warned = FALSE //if this device has set off the warning at <3 minutes yet
var/spam_prevention = DOM_BLOCKED_SPAM_CAP //first message is immediate
var/datum/effect_system/spark_spread/spark_system
var/obj/effect/countdown/dominator/countdown
@@ -24,7 +24,7 @@
return (max_integrity - integrity_failure) / DOM_HULK_HITS_REQUIRED
/proc/dominator_excessive_walls(atom/A)
- var/open = 0
+ var/open = FALSE
for(var/turf/T in view(3, A))
if(!isclosedturf(T))
open++
@@ -79,7 +79,7 @@
. = TRUE
playsound(loc, 'sound/items/timer.ogg', 10, 0)
if(!warned && (time_remaining < 180))
- warned = 1
+ warned = TRUE
var/area/domloc = get_area(loc)
gang.message_gangtools("Less than 3 minutes remains in hostile takeover. Defend your dominator at [domloc.map_name]!")
for(var/datum/gang/G in SSticker.mode.gangs)
@@ -161,7 +161,7 @@
gang.message_gangtools("Hostile takeover cancelled: Dominator is no longer operational.[gang.dom_attempts ? " You have [gang.dom_attempts] attempt remaining." : " The station network will have likely blocked any more attempts by us."]",1,1)
set_light(0)
- operating = 0
+ operating = FALSE
stat |= BROKEN
update_icon()
STOP_PROCESSING(SSmachines, src)
@@ -215,7 +215,7 @@
gang.domination()
SSshuttle.registerHostileEnvironment(src)
name = "[gang.name] Gang [name]"
- operating = 1
+ operating = TRUE
update_icon()
countdown.color = gang.color_hex
diff --git a/code/game/gamemodes/meteor/meteors.dm b/code/game/gamemodes/meteor/meteors.dm
index cf62a10d74..29ac0736e8 100644
--- a/code/game/gamemodes/meteor/meteors.dm
+++ b/code/game/gamemodes/meteor/meteors.dm
@@ -88,8 +88,8 @@ GLOBAL_LIST_INIT(meteorsC, list(/obj/effect/meteor/dust)) //for space dust event
desc = "You should probably run instead of gawking at this."
icon = 'icons/obj/meteor.dmi'
icon_state = "small"
- density = 1
- anchored = 1
+ density = TRUE
+ anchored = TRUE
var/hits = 4
var/hitpwr = 2 //Level of ex_act to be called on hit.
var/dest
diff --git a/code/game/gamemodes/miniantags/abduction/abduction_gear.dm b/code/game/gamemodes/miniantags/abduction/abduction_gear.dm
index 22a613fe96..d8bdca034e 100644
--- a/code/game/gamemodes/miniantags/abduction/abduction_gear.dm
+++ b/code/game/gamemodes/miniantags/abduction/abduction_gear.dm
@@ -600,7 +600,7 @@ Congratulations! You are now trained for invasive xenobiology research!"}
icon_state = "alien_frame"
framestack = /obj/item/stack/sheet/mineral/abductor
framestackamount = 1
- density = 1
+ density = TRUE
/obj/structure/table_frame/abductor/attackby(obj/item/I, mob/user, params)
if(istype(I, /obj/item/weapon/wrench))
@@ -694,7 +694,7 @@ Congratulations! You are now trained for invasive xenobiology research!"}
typetext = "abductor"
icontext = "abductor"
airlock_type = /obj/machinery/door/airlock/abductor
- anchored = 1
+ anchored = TRUE
state = 1
/obj/structure/door_assembly/door_assembly_abductor/attackby(obj/item/W, mob/user, params)
diff --git a/code/game/gamemodes/miniantags/abduction/gland.dm b/code/game/gamemodes/miniantags/abduction/gland.dm
index 0a5b471f1c..13e86dd5d3 100644
--- a/code/game/gamemodes/miniantags/abduction/gland.dm
+++ b/code/game/gamemodes/miniantags/abduction/gland.dm
@@ -212,7 +212,7 @@
icon = 'icons/effects/effects.dmi'
icon_state = "cocoon_large3"
color = rgb(10,120,10)
- density = 1
+ density = TRUE
var/hatch_time = 0
/obj/structure/spider/cocoon/abductor/proc/Copy(mob/living/carbon/human/H)
diff --git a/code/game/gamemodes/miniantags/abduction/machinery/dispenser.dm b/code/game/gamemodes/miniantags/abduction/machinery/dispenser.dm
index 8cf9acac0b..90ea06fbd5 100644
--- a/code/game/gamemodes/miniantags/abduction/machinery/dispenser.dm
+++ b/code/game/gamemodes/miniantags/abduction/machinery/dispenser.dm
@@ -3,8 +3,8 @@
desc = "A tank filled with replacement organs."
icon = 'icons/obj/abductor.dmi'
icon_state = "dispenser"
- density = 1
- anchored = 1
+ density = TRUE
+ anchored = TRUE
var/list/gland_types
var/list/gland_colors
var/list/amounts
diff --git a/code/game/gamemodes/miniantags/abduction/machinery/experiment.dm b/code/game/gamemodes/miniantags/abduction/machinery/experiment.dm
index 20e95bc8b8..9e8a8d974d 100644
--- a/code/game/gamemodes/miniantags/abduction/machinery/experiment.dm
+++ b/code/game/gamemodes/miniantags/abduction/machinery/experiment.dm
@@ -3,9 +3,9 @@
desc = "A large man-sized tube sporting a complex array of surgical machinery."
icon = 'icons/obj/abductor.dmi'
icon_state = "experiment-open"
- density = 0
- anchored = 1
- state_open = 1
+ density = FALSE
+ anchored = TRUE
+ state_open = TRUE
var/points = 0
var/credits = 0
var/list/history
diff --git a/code/game/gamemodes/miniantags/abduction/machinery/pad.dm b/code/game/gamemodes/miniantags/abduction/machinery/pad.dm
index dc3f6f8dac..71ec2859ce 100644
--- a/code/game/gamemodes/miniantags/abduction/machinery/pad.dm
+++ b/code/game/gamemodes/miniantags/abduction/machinery/pad.dm
@@ -3,7 +3,7 @@
desc = "Use this to transport to and from the humans' habitat."
icon = 'icons/obj/abductor.dmi'
icon_state = "alien-pad-idle"
- anchored = 1
+ anchored = TRUE
var/turf/teleport_target
/obj/machinery/abductor/pad/proc/Warp(mob/living/target)
diff --git a/code/game/gamemodes/miniantags/bot_swarm/swarmer.dm b/code/game/gamemodes/miniantags/bot_swarm/swarmer.dm
index 1d5ef09baa..2bcc74ff07 100644
--- a/code/game/gamemodes/miniantags/bot_swarm/swarmer.dm
+++ b/code/game/gamemodes/miniantags/bot_swarm/swarmer.dm
@@ -550,7 +550,7 @@
desc = "A quickly assembled trap that electrifies living beings and overwhelms machine sensors. Will not retain its form if damaged enough."
icon_state = "trap"
max_integrity = 10
- density = 0
+ density = FALSE
/obj/structure/swarmer/trap/Crossed(atom/movable/AM)
if(isliving(AM))
diff --git a/code/game/gamemodes/miniantags/revenant/revenant_abilities.dm b/code/game/gamemodes/miniantags/revenant/revenant_abilities.dm
index ed51fb4caa..cf79fd434f 100644
--- a/code/game/gamemodes/miniantags/revenant/revenant_abilities.dm
+++ b/code/game/gamemodes/miniantags/revenant/revenant_abilities.dm
@@ -285,8 +285,8 @@
for(var/mob/living/simple_animal/bot/bot in T)
if(!bot.emagged)
new /obj/effect/temp_visual/revenant(bot.loc)
- bot.locked = 0
- bot.open = 1
+ bot.locked = FALSE
+ bot.open = TRUE
bot.emag_act()
for(var/mob/living/carbon/human/human in T)
if(human == user)
diff --git a/code/game/gamemodes/nuclear/nuclearbomb.dm b/code/game/gamemodes/nuclear/nuclearbomb.dm
index 82d518bd61..962fd0a6fc 100644
--- a/code/game/gamemodes/nuclear/nuclearbomb.dm
+++ b/code/game/gamemodes/nuclear/nuclearbomb.dm
@@ -16,7 +16,7 @@
desc = "You probably shouldn't stick around to see if this is armed."
icon = 'icons/obj/machines/nuke.dmi'
icon_state = "nuclearbomb_base"
- density = 1
+ density = TRUE
resistance_flags = INDESTRUCTIBLE | LAVA_PROOF | FIRE_PROOF | UNACIDABLE | ACID_PROOF
var/timer_set = 90
diff --git a/code/game/gamemodes/sandbox/airlock_maker.dm b/code/game/gamemodes/sandbox/airlock_maker.dm
index f3753c17c0..f4298e1f62 100644
--- a/code/game/gamemodes/sandbox/airlock_maker.dm
+++ b/code/game/gamemodes/sandbox/airlock_maker.dm
@@ -26,7 +26,7 @@
/datum/airlock_maker/New(var/atom/target_loc)
linked = new(target_loc)
linked.maker = src
- linked.anchored = 0
+ linked.anchored = FALSE
access_used = list()
interact()
diff --git a/code/game/gamemodes/sandbox/h_sandbox.dm b/code/game/gamemodes/sandbox/h_sandbox.dm
index 79a504c77f..3895a479c7 100644
--- a/code/game/gamemodes/sandbox/h_sandbox.dm
+++ b/code/game/gamemodes/sandbox/h_sandbox.dm
@@ -128,10 +128,10 @@ GLOBAL_VAR_INIT(hsboxspawn, TRUE)
if(!admin) return
if(config.sandbox_autoclose)
to_chat(world, "Sandbox: \black [usr.key] has removed the object spawn limiter.")
- config.sandbox_autoclose = 0
+ config.sandbox_autoclose = FALSE
else
to_chat(world, "Sandbox: \black [usr.key] has added a limiter to object spawning. The window will now auto-close after use.")
- config.sandbox_autoclose = 1
+ config.sandbox_autoclose = TRUE
return
//
// Spacesuit with full air jetpack set as internals
diff --git a/code/game/gamemodes/wizard/artefact.dm b/code/game/gamemodes/wizard/artefact.dm
index 517bfc5349..747560f31b 100644
--- a/code/game/gamemodes/wizard/artefact.dm
+++ b/code/game/gamemodes/wizard/artefact.dm
@@ -33,8 +33,8 @@
desc = "You should run now."
icon = 'icons/obj/biomass.dmi'
icon_state = "rift"
- density = 1
- anchored = 1
+ density = TRUE
+ anchored = TRUE
var/spawn_path = /mob/living/simple_animal/cow //defaulty cows to prevent unintentional narsies
var/spawn_amt_left = 20
var/spawn_fast = 0
diff --git a/code/game/machinery/Beacon.dm b/code/game/machinery/Beacon.dm
index b32f5ff8da..d50af412a4 100644
--- a/code/game/machinery/Beacon.dm
+++ b/code/game/machinery/Beacon.dm
@@ -6,7 +6,7 @@
desc = "A device that draws power from bluespace and creates a permanent tracking beacon."
level = 1 // underfloor
layer = LOW_OBJ_LAYER
- anchored = 1
+ anchored = TRUE
use_power = IDLE_POWER_USE
idle_power_usage = 0
var/obj/item/device/radio/beacon/Beacon
diff --git a/code/game/machinery/PDApainter.dm b/code/game/machinery/PDApainter.dm
index 6055c970b6..3da8871fc4 100644
--- a/code/game/machinery/PDApainter.dm
+++ b/code/game/machinery/PDApainter.dm
@@ -3,8 +3,8 @@
desc = "A PDA painting machine. To use, simply insert your PDA and choose the desired preset paint scheme."
icon = 'icons/obj/pda.dmi'
icon_state = "pdapainter"
- density = 1
- anchored = 1
+ density = TRUE
+ anchored = TRUE
var/obj/item/device/pda/storedpda = null
var/list/colorlist = list()
max_integrity = 200
diff --git a/code/game/machinery/Sleeper.dm b/code/game/machinery/Sleeper.dm
index d45859a371..7171718dce 100644
--- a/code/game/machinery/Sleeper.dm
+++ b/code/game/machinery/Sleeper.dm
@@ -107,7 +107,7 @@
return
return ..()
-/obj/machinery/sleeper/ui_interact(mob/user, ui_key = "main", datum/tgui/ui = null, force_open = 0, \
+/obj/machinery/sleeper/ui_interact(mob/user, ui_key = "main", datum/tgui/ui = null, force_open = FALSE, \
datum/tgui/master_ui = null, datum/ui_state/state = GLOB.notcontained_state)
if(controls_inside && state == GLOB.notcontained_state)
diff --git a/code/game/machinery/airlock_control.dm b/code/game/machinery/airlock_control.dm
index 28c2f53c0c..a363a7fa51 100644
--- a/code/game/machinery/airlock_control.dm
+++ b/code/game/machinery/airlock_control.dm
@@ -20,28 +20,28 @@
close(1)
if("unlock")
- locked = 0
+ locked = FALSE
update_icon()
if("lock")
- locked = 1
+ locked = TRUE
update_icon()
if("secure_open")
- locked = 0
+ locked = FALSE
update_icon()
sleep(2)
open(1)
- locked = 1
+ locked = TRUE
update_icon()
if("secure_close")
- locked = 0
+ locked = FALSE
close(1)
- locked = 1
+ locked = TRUE
sleep(2)
update_icon()
@@ -88,7 +88,7 @@
name = "airlock sensor"
resistance_flags = INDESTRUCTIBLE | LAVA_PROOF | FIRE_PROOF | UNACIDABLE | ACID_PROOF
- anchored = 1
+ anchored = TRUE
power_channel = ENVIRON
var/id_tag
@@ -97,8 +97,8 @@
var/datum/radio_frequency/radio_connection
- var/on = 1
- var/alert = 0
+ var/on = TRUE
+ var/alert = FALSE
/obj/machinery/airlock_sensor/update_icon()
diff --git a/code/game/machinery/announcement_system.dm b/code/game/machinery/announcement_system.dm
index cca752a7c1..58031f0a3c 100644
--- a/code/game/machinery/announcement_system.dm
+++ b/code/game/machinery/announcement_system.dm
@@ -1,8 +1,8 @@
GLOBAL_LIST_EMPTY(announcement_systems)
/obj/machinery/announcement_system
- density = 1
- anchored = 1
+ density = TRUE
+ anchored = TRUE
name = "\improper Automated Announcement System"
desc = "An automated announcement system that handles minor announcements over the radio."
icon = 'icons/obj/machines/telecomms.dmi'
@@ -178,5 +178,5 @@ GLOBAL_LIST_EMPTY(announcement_systems)
/obj/machinery/announcement_system/emag_act()
if(!emagged)
- emagged = 1
+ emagged = TRUE
act_up()
diff --git a/code/game/machinery/autolathe.dm b/code/game/machinery/autolathe.dm
index e04f130d6d..11c54d4d99 100644
--- a/code/game/machinery/autolathe.dm
+++ b/code/game/machinery/autolathe.dm
@@ -6,22 +6,22 @@
name = "autolathe"
desc = "It produces items using metal and glass."
icon_state = "autolathe"
- density = 1
+ density = TRUE
- var/operating = 0
- anchored = 1
+ var/operating = FALSE
+ anchored = TRUE
var/list/L = list()
var/list/LL = list()
- var/hacked = 0
+ var/hacked = FALSE
var/disabled = 0
- var/shocked = 0
+ var/shocked = FALSE
var/hack_wire
var/disable_wire
var/shock_wire
use_power = IDLE_POWER_USE
idle_power_usage = 10
active_power_usage = 100
- var/busy = 0
+ var/busy = FALSE
var/prod_coeff = 1
var/datum/design/being_built
@@ -125,14 +125,14 @@
user.visible_message("[user] begins to load \the [O] in \the [src]...",
"You begin to load a design from \the [O]...",
"You hear the chatter of a floppy drive.")
- busy = 1
+ busy = TRUE
var/obj/item/weapon/disk/design_disk/D = O
if(do_after(user, 14.4, target = src))
for(var/B in D.blueprints)
if(B)
files.AddDesign2Known(B)
- busy = 0
+ busy = FALSE
return 1
if(HAS_SECONDARY_FLAG(O, HOLOGRAM))
@@ -149,7 +149,7 @@
to_chat(user, "\The [O] is stuck to you and cannot be placed into the autolathe.")
return 1
- busy = 1
+ busy = TRUE
var/inserted = materials.insert_item(O)
if(inserted)
if(istype(O,/obj/item/stack))
@@ -168,7 +168,7 @@
else
user.put_in_active_hand(O)
- busy = 0
+ busy = FALSE
updateUsrDialog()
return 1
@@ -206,7 +206,7 @@
var/power = max(2000, (metal_cost+glass_cost)*multiplier/5)
if((materials.amount(MAT_METAL) >= metal_cost*multiplier*coeff) && (materials.amount(MAT_GLASS) >= glass_cost*multiplier*coeff))
- busy = 1
+ busy = TRUE
use_power(power)
icon_state = "autolathe"
flick("autolathe_n",src)
@@ -223,7 +223,7 @@
for(var/obj/item/stack/S in T.contents - N)
if(istype(S, N.merge_type))
N.merge(S)
- busy = 0
+ busy = FALSE
updateUsrDialog()
else
@@ -236,7 +236,7 @@
for(var/mat in materials_used)
new_item.materials[mat] = materials_used[mat] / multiplier
new_item.autolathe_crafted(src)
- busy = 0
+ busy = FALSE
updateUsrDialog()
if(href_list["search"])
diff --git a/code/game/machinery/buttons.dm b/code/game/machinery/buttons.dm
index c198b68297..ce81c1c6b7 100644
--- a/code/game/machinery/buttons.dm
+++ b/code/game/machinery/buttons.dm
@@ -11,7 +11,7 @@
var/id = null
var/initialized_button = 0
armor = list(melee = 50, bullet = 50, laser = 50, energy = 50, bomb = 10, bio = 100, rad = 100, fire = 90, acid = 70)
- anchored = 1
+ anchored = TRUE
use_power = IDLE_POWER_USE
idle_power_usage = 2
resistance_flags = INDESTRUCTIBLE | LAVA_PROOF | FIRE_PROOF | UNACIDABLE | ACID_PROOF
@@ -23,7 +23,7 @@
setDir(ndir)
pixel_x = (dir & 3)? 0 : (dir == 4 ? -24 : 24)
pixel_y = (dir & 3)? (dir ==1 ? -24 : 24) : 0
- panel_open = 1
+ panel_open = TRUE
update_icon()
diff --git a/code/game/machinery/camera/camera.dm b/code/game/machinery/camera/camera.dm
index 226aa7d96a..be33ed9f8b 100644
--- a/code/game/machinery/camera/camera.dm
+++ b/code/game/machinery/camera/camera.dm
@@ -20,9 +20,9 @@
var/list/network = list("SS13")
var/c_tag = null
var/c_tag_order = 999
- var/status = 1
- anchored = 1
- var/start_active = 0 //If it ignores the random chance to start broken on round start
+ var/status = TRUE
+ anchored = TRUE
+ var/start_active = FALSE //If it ignores the random chance to start broken on round start
var/invuln = null
var/obj/item/device/camera_bug/bug = null
var/obj/structure/camera_assembly/assembly = null
@@ -32,9 +32,9 @@
var/view_range = 7
var/short_range = 2
- var/alarm_on = 0
- var/busy = 0
- var/emped = 0 //Number of consecutive EMP's on this camera
+ var/alarm_on = FALSE
+ var/busy = FALSE
+ var/emped = FALSE //Number of consecutive EMP's on this camera
// Upgrades bitflag
var/upgrades = 0
@@ -295,21 +295,21 @@
to_chat(O, "The screen bursts into static.")
/obj/machinery/camera/proc/triggerCameraAlarm()
- alarm_on = 1
+ alarm_on = TRUE
for(var/mob/living/silicon/S in GLOB.mob_list)
S.triggerAlarm("Camera", get_area(src), list(src), src)
/obj/machinery/camera/proc/cancelCameraAlarm()
- alarm_on = 0
+ alarm_on = FALSE
for(var/mob/living/silicon/S in GLOB.mob_list)
S.cancelAlarm("Camera", get_area(src), src)
/obj/machinery/camera/proc/can_use()
if(!status)
- return 0
+ return FALSE
if(stat & EMPED)
- return 0
- return 1
+ return FALSE
+ return TRUE
/obj/machinery/camera/proc/can_see()
var/list/see = null
@@ -357,20 +357,20 @@
/obj/machinery/camera/proc/weld(obj/item/weapon/weldingtool/WT, mob/living/user)
if(busy)
- return 0
+ return FALSE
if(!WT.remove_fuel(0, user))
- return 0
+ return FALSE
to_chat(user, "You start to weld [src]...")
playsound(src.loc, WT.usesound, 50, 1)
- busy = 1
+ busy = TRUE
if(do_after(user, 100*WT.toolspeed, target = src))
- busy = 0
+ busy = FALSE
if(!WT.isOn())
- return 0
- return 1
- busy = 0
- return 0
+ return FALSE
+ return TRUE
+ busy = FALSE
+ return FALSE
/obj/machinery/camera/proc/Togglelight(on=0)
for(var/mob/living/silicon/ai/A in GLOB.ai_list)
@@ -388,7 +388,7 @@
/obj/machinery/camera/portable/Initialize()
. = ..()
assembly.state = 0 //These cameras are portable, and so shall be in the portable state if removed.
- assembly.anchored = 0
+ assembly.anchored = FALSE
assembly.update_icon()
/obj/machinery/camera/portable/process() //Updates whenever the camera is moved.
diff --git a/code/game/machinery/camera/camera_assembly.dm b/code/game/machinery/camera/camera_assembly.dm
index 0a0fc1bf1e..8639544e0a 100644
--- a/code/game/machinery/camera/camera_assembly.dm
+++ b/code/game/machinery/camera/camera_assembly.dm
@@ -42,7 +42,7 @@
if(istype(W, /obj/item/weapon/weldingtool))
if(weld(W, user))
to_chat(user, "You weld the assembly securely into place.")
- anchored = 1
+ anchored = TRUE
state = 2
return
@@ -70,7 +70,7 @@
if(weld(W, user))
to_chat(user, "You unweld the assembly from its place.")
state = 1
- anchored = 1
+ anchored = TRUE
return
diff --git a/code/game/machinery/cell_charger.dm b/code/game/machinery/cell_charger.dm
index 2f83203937..1e72707e86 100644
--- a/code/game/machinery/cell_charger.dm
+++ b/code/game/machinery/cell_charger.dm
@@ -3,7 +3,7 @@
desc = "It charges power cells."
icon = 'icons/obj/power.dmi'
icon_state = "ccharger0"
- anchored = 1
+ anchored = TRUE
use_power = IDLE_POWER_USE
idle_power_usage = 5
active_power_usage = 60
diff --git a/code/game/machinery/cloning.dm b/code/game/machinery/cloning.dm
index f021e8492e..5e876d3b92 100644
--- a/code/game/machinery/cloning.dm
+++ b/code/game/machinery/cloning.dm
@@ -9,10 +9,10 @@
#define SPEAK(message) radio.talk_into(src, message, radio_channel, get_spans(), get_default_language())
/obj/machinery/clonepod
- anchored = 1
+ anchored = TRUE
name = "cloning pod"
desc = "An electronically-lockable pod for growing organic tissue."
- density = 1
+ density = TRUE
icon = 'icons/obj/cloning.dmi'
icon_state = "pod_0"
req_access = list(GLOB.access_cloning) //For premature unlocking.
diff --git a/code/game/machinery/computer/apc_control.dm b/code/game/machinery/computer/apc_control.dm
index 89fdc5fde9..a102c9bd8a 100644
--- a/code/game/machinery/computer/apc_control.dm
+++ b/code/game/machinery/computer/apc_control.dm
@@ -198,7 +198,7 @@
user.visible_message("You emag [src], disabling precise logging and allowing you to clear logs.")
log_game("[key_name_admin(user)] emagged [src] at [get_area(src)], disabling operator tracking.")
playsound(src, "sparks", 50, 1)
- emagged = 1
+ emagged = TRUE
/obj/machinery/computer/apc_control/proc/log_activity(log_text)
var/op_string = operator && !emagged ? operator : "\[NULL OPERATOR\]"
diff --git a/code/game/machinery/computer/arcade.dm b/code/game/machinery/computer/arcade.dm
index 5617c41202..0ad69125af 100644
--- a/code/game/machinery/computer/arcade.dm
+++ b/code/game/machinery/computer/arcade.dm
@@ -194,7 +194,7 @@
arcade_action()
else if (href_list["charge"])
- blocked = 1
+ blocked = TRUE
var/chargeamt = rand(4,7)
temp = "You regain [chargeamt] points"
playsound(loc, 'sound/arcade/mana.ogg', 50, 1, extrarange = -3, falloff = 10)
@@ -221,7 +221,7 @@
if(emagged)
Reset()
- emagged = 0
+ emagged = FALSE
add_fingerprint(usr)
updateUsrDialog()
@@ -241,7 +241,7 @@
message_admins("[key_name_admin(usr)] has outbombed Cuban Pete and been awarded a bomb.")
log_game("[key_name(usr)] has outbombed Cuban Pete and been awarded a bomb.")
Reset()
- emagged = 0
+ emagged = FALSE
else
SSblackbox.inc("arcade_win_normal")
prizevend()
@@ -342,7 +342,7 @@
desc = "Learn how our ancestors got to Orion, and have fun in the process!"
icon_state = "arcade"
circuit = /obj/item/weapon/circuitboard/computer/arcade/orion_trail
- var/busy = 0 //prevent clickspam that allowed people to ~speedrun~ the game.
+ var/busy = FALSE //prevent clickspam that allowed people to ~speedrun~ the game.
var/engine = 0
var/hull = 0
var/electronics = 0
@@ -440,7 +440,7 @@
if(emagged)
to_chat(user, "You're never going to make it to Orion...")
user.death()
- emagged = 0 //removes the emagged status after you lose
+ emagged = FALSE //removes the emagged status after you lose
gameStatus = ORION_STATUS_START
name = "The Orion Trail"
desc = "Learn how our ancestors got to Orion, and have fun in the process!"
@@ -482,7 +482,7 @@
if(busy)
return
- busy = 1
+ busy = TRUE
if (href_list["continue"]) //Continue your travels
if(gameStatus == ORION_STATUS_NORMAL && !event && turns != 7)
@@ -622,7 +622,7 @@
var/mob/living/L = usr
L.Stun(200, ignore_canstun = TRUE) //you can't run :^)
var/S = new /obj/singularity/academy(usr.loc)
- emagged = 0 //immediately removes emagged status so people can't kill themselves by sprinting up and interacting
+ emagged = FALSE //immediately removes emagged status so people can't kill themselves by sprinting up and interacting
sleep(50)
say("[S] winks out, just as suddenly as it appeared.")
qdel(S)
@@ -646,7 +646,7 @@
say("The last crewmember [sheriff], shot themselves, GAME OVER!")
if(emagged)
usr.death(0)
- emagged = 0
+ emagged = FALSE
gameStatus = ORION_STATUS_GAMEOVER
event = null
else if(emagged)
@@ -754,7 +754,7 @@
add_fingerprint(usr)
updateUsrDialog()
- busy = 0
+ busy = FALSE
return
@@ -1036,7 +1036,7 @@
log_game("[key_name(usr)] made it to Orion on an emagged machine and got an explosive toy ship.")
else
prizevend()
- emagged = 0
+ emagged = FALSE
name = "The Orion Trail"
desc = "Learn how our ancestors got to Orion, and have fun in the process!"
@@ -1046,7 +1046,7 @@
name = "The Orion Trail: Realism Edition"
desc = "Learn how our ancestors got to Orion, and try not to die in the process!"
newgame()
- emagged = 1
+ emagged = TRUE
/mob/living/simple_animal/hostile/syndicate/ranged/orion
name = "Spaceport Security"
diff --git a/code/game/machinery/computer/atmos_alert.dm b/code/game/machinery/computer/atmos_alert.dm
index 15959253ee..bcabab16f9 100644
--- a/code/game/machinery/computer/atmos_alert.dm
+++ b/code/game/machinery/computer/atmos_alert.dm
@@ -20,7 +20,7 @@
SSradio.remove_object(src, receive_frequency)
return ..()
-/obj/machinery/computer/atmos_alert/ui_interact(mob/user, ui_key = "main", datum/tgui/ui = null, force_open = 0, \
+/obj/machinery/computer/atmos_alert/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)
ui = SStgui.try_update_ui(user, src, ui_key, ui, force_open)
if(!ui)
diff --git a/code/game/machinery/computer/atmos_control.dm b/code/game/machinery/computer/atmos_control.dm
index e8f4c466c0..2b506d6124 100644
--- a/code/game/machinery/computer/atmos_control.dm
+++ b/code/game/machinery/computer/atmos_control.dm
@@ -6,7 +6,7 @@
name = "gas sensor"
icon = 'icons/obj/stationobjs.dmi'
icon_state = "gsensor1"
- anchored = 1
+ anchored = TRUE
var/on = TRUE
@@ -93,7 +93,7 @@
SSradio.remove_object(src, frequency)
return ..()
-/obj/machinery/computer/atmos_control/ui_interact(mob/user, ui_key = "main", datum/tgui/ui = null, force_open = 0, \
+/obj/machinery/computer/atmos_control/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)
ui = SStgui.try_update_ui(user, src, ui_key, ui, force_open)
if(!ui)
@@ -176,7 +176,7 @@
for(var/obj/machinery/atmospherics/components/unary/vent_pump/U in devices)
U.broadcast_status()
-/obj/machinery/computer/atmos_control/tank/ui_interact(mob/user, ui_key = "main", datum/tgui/ui = null, force_open = 0, \
+/obj/machinery/computer/atmos_control/tank/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)
ui = SStgui.try_update_ui(user, src, ui_key, ui, force_open)
if(!ui)
diff --git a/code/game/machinery/computer/buildandrepair.dm b/code/game/machinery/computer/buildandrepair.dm
index fe328fe782..ee9202bfff 100644
--- a/code/game/machinery/computer/buildandrepair.dm
+++ b/code/game/machinery/computer/buildandrepair.dm
@@ -12,7 +12,7 @@
to_chat(user, "You start wrenching the frame into place...")
if(do_after(user, 20*P.toolspeed, target = src))
to_chat(user, "You wrench the frame into place.")
- anchored = 1
+ anchored = TRUE
state = 1
return
if(istype(P, /obj/item/weapon/weldingtool))
@@ -36,7 +36,7 @@
to_chat(user, "You start to unfasten the frame...")
if(do_after(user, 20*P.toolspeed, target = src))
to_chat(user, "You unfasten the frame.")
- anchored = 0
+ anchored = FALSE
state = 0
return
if(istype(P, /obj/item/weapon/circuitboard/computer) && !circuit)
@@ -339,8 +339,8 @@
name = "Supply Console (Computer Board)"
build_path = /obj/machinery/computer/cargo
origin_tech = "programming=3"
- var/contraband = 0
- var/emagged = 0
+ var/contraband = FALSE
+ var/emagged = FALSE
/obj/item/weapon/circuitboard/computer/cargo/attackby(obj/item/I, mob/user, params)
if(istype(I,/obj/item/device/multitool))
diff --git a/code/game/machinery/computer/camera.dm b/code/game/machinery/computer/camera.dm
index 53d36e26aa..c8c713bad8 100644
--- a/code/game/machinery/computer/camera.dm
+++ b/code/game/machinery/computer/camera.dm
@@ -150,7 +150,7 @@
icon = 'icons/obj/stationobjs.dmi'
icon_state = "telescreen"
network = list("thunder")
- density = 0
+ density = FALSE
circuit = null
clockwork = TRUE //it'd look very weird
@@ -168,7 +168,7 @@
icon = 'icons/obj/status_display.dmi'
icon_state = "entertainment"
network = list("thunder")
- density = 0
+ density = FALSE
circuit = null
/obj/machinery/computer/security/wooden_tv
diff --git a/code/game/machinery/computer/cloning.dm b/code/game/machinery/computer/cloning.dm
index 5954aed10b..84f270eb7c 100644
--- a/code/game/machinery/computer/cloning.dm
+++ b/code/game/machinery/computer/cloning.dm
@@ -311,10 +311,10 @@
//No locking an open scanner.
else if ((href_list["lock"]) && !isnull(scanner) && scanner.is_operational())
if ((!scanner.locked) && (scanner.occupant))
- scanner.locked = 1
+ scanner.locked = TRUE
playsound(src, 'sound/machines/terminal_prompt_deny.ogg', 50, 0)
else
- scanner.locked = 0
+ scanner.locked = FALSE
playsound(src, 'sound/machines/terminal_prompt_confirm.ogg', 50, 0)
else if(href_list["view_rec"])
diff --git a/code/game/machinery/computer/communications.dm b/code/game/machinery/computer/communications.dm
index 82769eb3e1..b717364dba 100755
--- a/code/game/machinery/computer/communications.dm
+++ b/code/game/machinery/computer/communications.dm
@@ -301,7 +301,7 @@
if("RestoreBackup")
to_chat(usr, "Backup routing data restored!")
playsound(src, 'sound/machines/terminal_prompt_confirm.ogg', 50, 0)
- src.emagged = 0
+ emagged = FALSE
src.updateDialog()
if("nukerequest") //When there's no other way
@@ -399,7 +399,7 @@
/obj/machinery/computer/communications/emag_act(mob/user)
if(!emagged)
- src.emagged = 1
+ src.emagged = TRUE
if(authenticated == 1)
authenticated = 2
to_chat(user, "You scramble the communication routing circuits!")
diff --git a/code/game/machinery/computer/computer.dm b/code/game/machinery/computer/computer.dm
index b71340d57f..d4dc73a2e6 100644
--- a/code/game/machinery/computer/computer.dm
+++ b/code/game/machinery/computer/computer.dm
@@ -2,8 +2,8 @@
name = "computer"
icon = 'icons/obj/computer.dmi'
icon_state = "computer"
- density = 1
- anchored = 1
+ density = TRUE
+ anchored = TRUE
use_power = IDLE_POWER_USE
idle_power_usage = 300
active_power_usage = 300
@@ -11,7 +11,7 @@
integrity_failure = 100
armor = list(melee = 0, bullet = 0, laser = 0, energy = 0, bomb = 0, bio = 0, rad = 0, fire = 40, acid = 20)
var/obj/item/weapon/circuitboard/computer/circuit = null // if circuit==null, computer can't disassembly
- var/processing = 0
+ var/processing = FALSE
var/brightness_on = 2
var/icon_keyboard = "generic_key"
var/icon_screen = "generic"
@@ -120,7 +120,7 @@
if(circuit) //no circuit, no computer frame
var/obj/structure/frame/computer/A = new /obj/structure/frame/computer(src.loc)
A.circuit = circuit
- A.anchored = 1
+ A.anchored = TRUE
if(stat & BROKEN)
if(user)
to_chat(user, "The broken glass falls out.")
diff --git a/code/game/machinery/computer/dna_console.dm b/code/game/machinery/computer/dna_console.dm
index dac2327cb3..27c0f50e7b 100644
--- a/code/game/machinery/computer/dna_console.dm
+++ b/code/game/machinery/computer/dna_console.dm
@@ -21,7 +21,7 @@
desc = "Scan DNA."
icon_screen = "dna"
icon_keyboard = "med_key"
- density = 1
+ density = TRUE
circuit = /obj/item/weapon/circuitboard/computer/scan_consolenew
var/radduration = 2
var/radstrength = 1
@@ -33,7 +33,7 @@
var/obj/machinery/dna_scannernew/connected = null
var/obj/item/weapon/disk/data/diskette = null
var/list/delayed_action = null
- anchored = 1
+ anchored = TRUE
use_power = IDLE_POWER_USE
idle_power_usage = 10
active_power_usage = 400
@@ -463,7 +463,7 @@
radstrength = Wrap(radstrength, 1, RADIATION_STRENGTH_MAX+1)
var/locked_state = connected.locked
- connected.locked = 1
+ connected.locked = TRUE
current_screen = "working"
ShowInterface(usr)
diff --git a/code/game/machinery/computer/gulag_teleporter.dm b/code/game/machinery/computer/gulag_teleporter.dm
index 4afea5d36a..6108819bab 100644
--- a/code/game/machinery/computer/gulag_teleporter.dm
+++ b/code/game/machinery/computer/gulag_teleporter.dm
@@ -37,7 +37,7 @@
to_chat(user, "There's an ID inserted already.")
return ..()
-/obj/machinery/computer/gulag_teleporter_computer/ui_interact(mob/user, ui_key = "main", datum/tgui/ui = null, force_open = 0, \
+/obj/machinery/computer/gulag_teleporter_computer/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)
ui = SStgui.try_update_ui(user, src, ui_key, ui, force_open)
if(!ui)
diff --git a/code/game/machinery/computer/message.dm b/code/game/machinery/computer/message.dm
index 41b2fb3cf2..cbdb85db53 100644
--- a/code/game/machinery/computer/message.dm
+++ b/code/game/machinery/computer/message.dm
@@ -42,7 +42,7 @@
/obj/machinery/computer/message_monitor/emag_act(mob/user)
if(!emagged)
if(!isnull(src.linkedServer))
- emagged = 1
+ emagged = TRUE
screen = 2
spark_system.set_up(5, 0, src)
src.spark_system.start()
@@ -235,7 +235,7 @@
src.screen = 0 // Return the screen back to normal
/obj/machinery/computer/message_monitor/proc/UnmagConsole()
- src.emagged = 0
+ emagged = FALSE
/obj/machinery/computer/message_monitor/proc/ResetMessage()
customsender = "System Administrator"
diff --git a/code/game/machinery/computer/station_alert.dm b/code/game/machinery/computer/station_alert.dm
index f630a707da..44d291cf8b 100644
--- a/code/game/machinery/computer/station_alert.dm
+++ b/code/game/machinery/computer/station_alert.dm
@@ -8,7 +8,7 @@
light_color = LIGHT_COLOR_CYAN
-/obj/machinery/computer/station_alert/ui_interact(mob/user, ui_key = "main", datum/tgui/ui = null, force_open = 0, \
+/obj/machinery/computer/station_alert/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)
ui = SStgui.try_update_ui(user, src, ui_key, ui, force_open)
if(!ui)
diff --git a/code/game/machinery/constructable_frame.dm b/code/game/machinery/constructable_frame.dm
index 0abe133598..41022efaba 100644
--- a/code/game/machinery/constructable_frame.dm
+++ b/code/game/machinery/constructable_frame.dm
@@ -2,7 +2,7 @@
name = "frame"
icon = 'icons/obj/stock_parts.dmi'
icon_state = "box_0"
- density = 1
+ density = TRUE
max_integrity = 250
var/obj/item/weapon/circuitboard/circuit = null
var/state = 1
diff --git a/code/game/machinery/deployable.dm b/code/game/machinery/deployable.dm
index b114bec466..382e5f6cd5 100644
--- a/code/game/machinery/deployable.dm
+++ b/code/game/machinery/deployable.dm
@@ -11,8 +11,8 @@
/obj/structure/barricade
name = "chest high wall"
desc = "Looks like this would make good cover."
- anchored = 1
- density = 1
+ anchored = TRUE
+ density = TRUE
max_integrity = 100
var/proj_pass_rate = 50 //How many projectiles will pass the cover. Lower means stronger cover
var/material = METAL
@@ -88,8 +88,8 @@
desc = "A deployable barrier. Provides good cover in fire fights."
icon = 'icons/obj/objects.dmi'
icon_state = "barrier0"
- density = 0
- anchored = 0
+ density = FALSE
+ anchored = FALSE
max_integrity = 180
proj_pass_rate = 20
armor = list(melee = 10, bullet = 50, laser = 50, energy = 50, bomb = 10, bio = 100, rad = 100, fire = 10, acid = 0)
@@ -104,8 +104,8 @@
/obj/structure/barricade/security/proc/deploy()
icon_state = "barrier1"
- density = 1
- anchored = 1
+ density = TRUE
+ anchored = TRUE
if(deploy_message)
visible_message("[src] deploys!")
diff --git a/code/game/machinery/dna_scanner.dm b/code/game/machinery/dna_scanner.dm
index cb7587963a..20bb81e0b8 100644
--- a/code/game/machinery/dna_scanner.dm
+++ b/code/game/machinery/dna_scanner.dm
@@ -3,9 +3,9 @@
desc = "It scans DNA structures."
icon = 'icons/obj/Cryogenic2.dmi'
icon_state = "scanner"
- density = 1
- var/locked = 0
- anchored = 1
+ density = TRUE
+ var/locked = FALSE
+ anchored = TRUE
use_power = IDLE_POWER_USE
idle_power_usage = 50
active_power_usage = 300
@@ -82,7 +82,7 @@
/obj/machinery/dna_scannernew/container_resist(mob/living/user)
var/breakout_time = 2
if(state_open || !locked) //Open and unlocked, no need to escape
- state_open = 1
+ state_open = TRUE
return
user.changeNext_move(CLICK_CD_BREAKOUT)
user.last_special = world.time + CLICK_CD_BREAKOUT
@@ -93,7 +93,7 @@
if(!user || user.stat != CONSCIOUS || user.loc != src || state_open || !locked)
return
- locked = 0
+ locked = FALSE
visible_message("[user] successfully broke out of [src]!")
to_chat(user, "You successfully break out of [src]!")
diff --git a/code/game/machinery/doors/airlock.dm b/code/game/machinery/doors/airlock.dm
index 29d3ceb180..6df7e19458 100644
--- a/code/game/machinery/doors/airlock.dm
+++ b/code/game/machinery/doors/airlock.dm
@@ -53,23 +53,23 @@
var/security_level = 0 //How much are wires secured
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
+ var/hackProof = FALSE // if true, this door can't be hacked by the AI
var/secondsMainPowerLost = 0 //The number of seconds until power is restored.
var/secondsBackupPowerLost = 0 //The number of seconds until power is restored.
- var/spawnPowerRestoreRunning = 0
- var/lights = 1 // bolt lights show by default
+ var/spawnPowerRestoreRunning = FALSE
+ var/lights = TRUE // bolt lights show by default
secondsElectrified = 0 //How many seconds remain until the door is no longer electrified. -1 if it is permanently electrified until someone fixes it.
- var/aiDisabledIdScanner = 0
- var/aiHacking = 0
+ var/aiDisabledIdScanner = FALSE
+ var/aiHacking = FALSE
var/obj/machinery/door/airlock/closeOther = null
var/closeOtherId = null
- var/lockdownbyai = 0
+ var/lockdownbyai = FALSE
assemblytype = /obj/structure/door_assembly/door_assembly_0
- var/justzap = 0
+ var/justzap = FALSE
normalspeed = 1
var/obj/item/weapon/electronics/airlock/electronics = null
- var/hasShocked = 0 //Prevents multiple shocks from happening
- autoclose = 1
+ var/hasShocked = FALSE //Prevents multiple shocks from happening
+ autoclose = TRUE
var/obj/item/device/doorCharge/charge = null //If applied, causes an explosion upon opening the door
var/obj/item/weapon/note //Any papers pinned to the airlock
var/detonated = 0
@@ -165,7 +165,7 @@
/obj/machinery/door/airlock/proc/bolt()
if(locked)
return
- locked = 1
+ locked = TRUE
playsound(src,boltDown,30,0,3)
update_icon()
@@ -175,7 +175,7 @@
/obj/machinery/door/airlock/proc/unbolt()
if(!locked)
return
- locked = 0
+ locked = FALSE
playsound(src,boltUp,30,0,3)
update_icon()
@@ -227,13 +227,13 @@
if(src.isElectrified())
if(!src.justzap)
if(src.shock(user, 100))
- src.justzap = 1
+ src.justzap = TRUE
spawn (10)
- src.justzap = 0
+ justzap = FALSE
return
else /*if(src.justzap)*/
return
- else if(user.hallucination > 50 && ishuman(user) && prob(10) && src.operating == 0)
+ else if(user.hallucination > 50 && ishuman(user) && prob(10) && src.operating == FALSE)
hallucinate_shock(user)
return
if (cyclelinkedairlock)
@@ -274,8 +274,8 @@
/obj/machinery/door/airlock/proc/isElectrified()
if(src.secondsElectrified != NOT_ELECTRIFIED)
- return 1
- return 0
+ return TRUE
+ return FALSE
/obj/machinery/door/airlock/proc/canAIControl(mob/user)
return ((aiControlDisabled != 1) && (!isAllPowerCut()));
@@ -284,7 +284,7 @@
return ((aiControlDisabled==1) && (!hackProof) && (!isAllPowerCut()));
/obj/machinery/door/airlock/hasPower()
- return ((secondsMainPowerLost == 0 || secondsBackupPowerLost == 0) && !(stat & NOPOWER))
+ return ((!secondsMainPowerLost || !secondsBackupPowerLost) && !(stat & NOPOWER))
/obj/machinery/door/airlock/requiresID()
return !(wires.is_cut(WIRE_IDSCAN) || aiDisabledIdScanner)
@@ -303,7 +303,7 @@
if(src.secondsBackupPowerLost < 10)
src.secondsBackupPowerLost = 10
if(!src.spawnPowerRestoreRunning)
- src.spawnPowerRestoreRunning = 1
+ spawnPowerRestoreRunning = TRUE
spawn(0)
var/cont = 1
while (cont)
@@ -322,7 +322,7 @@
secondsBackupPowerLost -= 1
updateDialog()
cont = 1
- spawnPowerRestoreRunning = 0
+ spawnPowerRestoreRunning = FALSE
updateDialog()
/obj/machinery/door/airlock/proc/loseBackupPower()
@@ -614,9 +614,9 @@
t1 += text("Main Power Input wire is cut.
\n")
if(wires.is_cut(WIRE_POWER2))
t1 += text("Main Power Output wire is cut.
\n")
- if(src.secondsMainPowerLost == 0)
+ if(!secondsMainPowerLost)
t1 += text("Temporarily disrupt main power?.
\n", src)
- if(src.secondsBackupPowerLost == 0)
+ if(!secondsBackupPowerLost)
t1 += text("Temporarily disrupt backup power?.
\n", src)
if(wires.is_cut(WIRE_BACKUP1))
@@ -683,17 +683,17 @@
/obj/machinery/door/airlock/proc/hack(mob/user)
set waitfor = 0
- if(src.aiHacking == 0)
- src.aiHacking = 1
+ if(!aiHacking)
+ aiHacking = TRUE
to_chat(user, "Airlock AI control has been blocked. Beginning fault-detection.")
sleep(50)
if(src.canAIControl(user))
to_chat(user, "Alert cancelled. Airlock control has been restored without our assistance.")
- src.aiHacking=0
+ aiHacking = FALSE
return
else if(!src.canAIHack())
to_chat(user, "Connection lost! Unable to hack airlock.")
- src.aiHacking=0
+ aiHacking = FALSE
return
to_chat(user, "Fault confirmed: airlock control wire disabled or cut.")
sleep(20)
@@ -701,21 +701,21 @@
sleep(200)
if(src.canAIControl(user))
to_chat(user, "Alert cancelled. Airlock control has been restored without our assistance.")
- src.aiHacking=0
+ aiHacking = FALSE
return
else if(!src.canAIHack())
to_chat(user, "Connection lost! Unable to hack airlock.")
- src.aiHacking=0
+ aiHacking = FALSE
return
to_chat(user, "Upload access confirmed. Loading control program into airlock software.")
sleep(170)
if(src.canAIControl(user))
to_chat(user, "Alert cancelled. Airlock control has been restored without our assistance.")
- src.aiHacking=0
+ aiHacking = FALSE
return
else if(!src.canAIHack())
to_chat(user, "Connection lost! Unable to hack airlock.")
- src.aiHacking=0
+ aiHacking = FALSE
return
to_chat(user, "Transfer complete. Forcing airlock to execute program.")
sleep(50)
@@ -724,7 +724,7 @@
to_chat(user, "Receiving control information from airlock.")
sleep(10)
//bring up airlock dialog
- src.aiHacking = 0
+ aiHacking = FALSE
if(user)
src.attack_ai(user)
@@ -793,17 +793,17 @@
else if(src.aiDisabledIdScanner)
to_chat(usr, "You've already disabled the IdScan feature.")
else
- src.aiDisabledIdScanner = 1
+ aiDisabledIdScanner = TRUE
if(2)
//disrupt main power
- if(src.secondsMainPowerLost == 0)
+ if(!secondsMainPowerLost)
src.loseMainPower()
update_icon()
else
to_chat(usr, "Main power is already offline.")
if(3)
//disrupt backup power
- if(src.secondsBackupPowerLost == 0)
+ if(!secondsBackupPowerLost)
src.loseBackupPower()
update_icon()
else
@@ -826,7 +826,7 @@
if(wires.is_cut(WIRE_SAFETY))
to_chat(usr, text("Control to door sensors is disabled."))
else if (src.safe)
- safe = 0
+ safe = FALSE
else
to_chat(usr, text("Firmware reports safeties already overriden."))
@@ -854,7 +854,7 @@
if(wires.is_cut(WIRE_LIGHT))
to_chat(usr, text("Control to door bolt lights has been severed."))
else if (src.lights)
- lights = 0
+ lights = FALSE
update_icon()
else
to_chat(usr, text("Door bolt lights are already disabled!"))
@@ -862,7 +862,7 @@
if(11)
// Emergency access
if (src.emergency)
- emergency = 0
+ emergency = FALSE
update_icon()
else
to_chat(usr, text("Emergency access is already disabled!"))
@@ -876,7 +876,7 @@
if(wires.is_cut(WIRE_IDSCAN))
to_chat(usr, "You can't enable IdScan - The IdScan wire has been cut.")
else if(src.aiDisabledIdScanner)
- src.aiDisabledIdScanner = 0
+ aiDisabledIdScanner = FALSE
else
to_chat(usr, "The IdScan feature is not disabled.")
if(4)
@@ -928,7 +928,7 @@
if(wires.is_cut(WIRE_SAFETY))
to_chat(usr, text("Control to door sensors is disabled."))
else if (!src.safe)
- safe = 1
+ safe = TRUE
src.updateUsrDialog()
else
to_chat(usr, text("Firmware reports safeties already in place."))
@@ -958,7 +958,7 @@
if(wires.is_cut(WIRE_LIGHT))
to_chat(usr, text("Control to door bolt lights has been severed."))
else if (!src.lights)
- lights = 1
+ lights = TRUE
update_icon()
src.updateUsrDialog()
else
@@ -966,7 +966,7 @@
if(11)
// Emergency access
if (!src.emergency)
- emergency = 1
+ emergency = TRUE
update_icon()
else
to_chat(usr, text("Emergency access is already enabled!"))
@@ -1147,7 +1147,7 @@
return
to_chat(user, "You apply [C]. Next time someone opens the door, it will explode.")
user.drop_item()
- panel_open = 0
+ panel_open = FALSE
update_icon()
C.forceMove(src)
charge = C
@@ -1231,7 +1231,7 @@
else if(locked)
to_chat(user, "The airlock's bolts prevent it from being forced!")
else if( !welded && !operating)
- if(beingcrowbarred == 0) //being fireaxe'd
+ if(!beingcrowbarred) //being fireaxe'd
var/obj/item/weapon/twohanded/fireaxe/F = I
if(F.wielded)
spawn(0)
@@ -1286,12 +1286,12 @@
/obj/machinery/door/airlock/open(forced=0)
if( operating || welded || locked )
- return 0
+ return FALSE
if(!forced)
if(!hasPower() || wires.is_cut(WIRE_OPEN))
- return 0
+ return FALSE
if(charge && !detonated)
- panel_open = 1
+ panel_open = TRUE
update_icon(AIRLOCK_OPENING)
visible_message("[src]'s panel is blown off in a spray of deadly shrapnel!")
charge.loc = get_turf(src)
@@ -1306,7 +1306,7 @@
return
if(forced < 2)
if(emagged)
- return 0
+ return FALSE
use_power(50)
playsound(src.loc, doorOpen, 30, 1)
if(src.closeOther != null && istype(src.closeOther, /obj/machinery/door/airlock/) && !src.closeOther.density)
@@ -1320,23 +1320,23 @@
addtimer(CALLBACK(src, .proc/autoclose), 15)
if(!density)
- return 1
- operating = 1
+ return TRUE
+ operating = TRUE
update_icon(AIRLOCK_OPENING, 1)
src.set_opacity(0)
sleep(5)
- src.density = 0
+ density = FALSE
sleep(9)
src.layer = OPEN_DOOR_LAYER
update_icon(AIRLOCK_OPEN, 1)
set_opacity(0)
- operating = 0
+ operating = FALSE
air_update_turf(1)
update_freelook_sight()
if(delayed_close_requested)
delayed_close_requested = FALSE
addtimer(CALLBACK(src, .proc/close), 2)
- return 1
+ return TRUE
/obj/machinery/door/airlock/close(forced=0)
@@ -1364,8 +1364,8 @@
killthis.ex_act(2)//Smashin windows
if(density)
- return 1
- operating = 1
+ return TRUE
+ operating = TRUE
update_icon(AIRLOCK_CLOSING, 1)
src.layer = CLOSED_DOOR_LAYER
if(air_tight)
@@ -1378,20 +1378,20 @@
update_icon(AIRLOCK_CLOSED, 1)
if(visible && !glass)
set_opacity(1)
- operating = 0
+ operating = FALSE
delayed_close_requested = FALSE
air_update_turf(1)
update_freelook_sight()
if(safe)
CheckForMobs()
- return 1
+ return TRUE
/obj/machinery/door/airlock/proc/prison_open()
if(emagged)
return
- src.locked = 0
+ locked = FALSE
src.open()
- src.locked = 1
+ locked = TRUE
return
@@ -1465,18 +1465,18 @@
/obj/machinery/door/airlock/emag_act(mob/user)
if(!operating && density && hasPower() && !emagged)
- operating = 1
+ operating = TRUE
update_icon(AIRLOCK_EMAG, 1)
sleep(6)
if(QDELETED(src))
return
- operating = 0
+ operating = FALSE
if(!open())
update_icon(AIRLOCK_CLOSED, 1)
- emagged = 1
+ emagged = TRUE
desc = "Its access panel is smoking slightly."
- lights = 0
- locked = 1
+ lights = FALSE
+ locked = TRUE
loseMainPower()
loseBackupPower()
@@ -1528,7 +1528,7 @@
if(!(stat & BROKEN) && !(flags & NODECONSTRUCT))
stat |= BROKEN
if(!panel_open)
- panel_open = 1
+ panel_open = TRUE
wires.cut_all()
update_icon()
diff --git a/code/game/machinery/doors/airlock_electronics.dm b/code/game/machinery/doors/airlock_electronics.dm
index 705eafa381..638f6f1591 100644
--- a/code/game/machinery/doors/airlock_electronics.dm
+++ b/code/game/machinery/doors/airlock_electronics.dm
@@ -5,7 +5,7 @@
var/list/accesses = list()
var/one_access = 0
-/obj/item/weapon/electronics/airlock/ui_interact(mob/user, ui_key = "main", datum/tgui/ui = null, force_open = 0, \
+/obj/item/weapon/electronics/airlock/ui_interact(mob/user, ui_key = "main", datum/tgui/ui = null, force_open = FALSE, \
datum/tgui/master_ui = null, datum/ui_state/state = GLOB.hands_state)
SStgui.try_update_ui(user, src, ui_key, ui, force_open)
if(!ui)
diff --git a/code/game/machinery/doors/airlock_types.dm b/code/game/machinery/doors/airlock_types.dm
index 7fdaa950de..72840241b3 100644
--- a/code/game/machinery/doors/airlock_types.dm
+++ b/code/game/machinery/doors/airlock_types.dm
@@ -67,63 +67,63 @@
icon = 'icons/obj/doors/airlocks/station/command.dmi'
opacity = 0
assemblytype = /obj/structure/door_assembly/door_assembly_com/glass
- glass = 1
+ glass = TRUE
normal_integrity = 400
/obj/machinery/door/airlock/glass_engineering
icon = 'icons/obj/doors/airlocks/station/engineering.dmi'
opacity = 0
assemblytype = /obj/structure/door_assembly/door_assembly_eng/glass
- glass = 1
+ glass = TRUE
/obj/machinery/door/airlock/glass_security
icon = 'icons/obj/doors/airlocks/station/security.dmi'
opacity = 0
assemblytype = /obj/structure/door_assembly/door_assembly_sec/glass
- glass = 1
+ glass = TRUE
normal_integrity = 400
/obj/machinery/door/airlock/glass_medical
icon = 'icons/obj/doors/airlocks/station/medical.dmi'
opacity = 0
assemblytype = /obj/structure/door_assembly/door_assembly_med/glass
- glass = 1
+ glass = TRUE
/obj/machinery/door/airlock/glass_research
icon = 'icons/obj/doors/airlocks/station/research.dmi'
opacity = 0
assemblytype = /obj/structure/door_assembly/door_assembly_research/glass
- glass = 1
+ glass = TRUE
/obj/machinery/door/airlock/glass_mining
icon = 'icons/obj/doors/airlocks/station/mining.dmi'
opacity = 0
assemblytype = /obj/structure/door_assembly/door_assembly_min/glass
- glass = 1
+ glass = TRUE
/obj/machinery/door/airlock/glass_atmos
icon = 'icons/obj/doors/airlocks/station/atmos.dmi'
opacity = 0
assemblytype = /obj/structure/door_assembly/door_assembly_atmo/glass
- glass = 1
+ glass = TRUE
/obj/machinery/door/airlock/glass_science
icon = 'icons/obj/doors/airlocks/station/science.dmi'
opacity = 0
assemblytype = /obj/structure/door_assembly/door_assembly_science/glass
- glass = 1
+ glass = TRUE
/obj/machinery/door/airlock/glass_virology
icon = 'icons/obj/doors/airlocks/station/virology.dmi'
opacity = 0
assemblytype = /obj/structure/door_assembly/door_assembly_viro/glass
- glass = 1
+ glass = TRUE
/obj/machinery/door/airlock/glass_maintenance
icon = 'icons/obj/doors/airlocks/station/maintenance.dmi'
opacity = 0
assemblytype = /obj/structure/door_assembly/door_assembly_mai/glass
- glass = 1
+ glass = TRUE
//////////////////////////////////
/*
@@ -227,7 +227,7 @@
overlays_file = 'icons/obj/doors/airlocks/shuttle/overlays.dmi'
opacity = 0
assemblytype = /obj/structure/door_assembly/door_assembly_titanium/glass
- glass = 1
+ glass = TRUE
normal_integrity = 350
//////////////////////////////////
@@ -241,7 +241,7 @@
overlays_file = 'icons/obj/doors/airlocks/station2/overlays.dmi'
opacity = 0
assemblytype = /obj/structure/door_assembly/door_assembly_glass
- glass = 1
+ glass = TRUE
//////////////////////////////////
/*
@@ -262,7 +262,7 @@
overlays_file = 'icons/obj/doors/airlocks/external/overlays.dmi'
assemblytype = /obj/structure/door_assembly/door_assembly_ext/glass
opacity = 0
- glass = 1
+ glass = TRUE
//////////////////////////////////
/*
@@ -352,7 +352,7 @@
damage_deflection = 30
opacity = 1
explosion_block = 3
- hackProof = 1
+ hackProof = TRUE
aiControlDisabled = 1
normal_integrity = 700
security_level = 1
@@ -367,7 +367,7 @@
icon = 'icons/obj/doors/airlocks/cult/runed/cult.dmi'
overlays_file = 'icons/obj/doors/airlocks/cult/runed/overlays.dmi'
assemblytype = /obj/structure/door_assembly/door_assembly_cult
- hackProof = 1
+ hackProof = TRUE
aiControlDisabled = 1
var/openingoverlaytype = /obj/effect/temp_visual/cult/door
var/friendly = FALSE
@@ -403,7 +403,7 @@
/obj/machinery/door/airlock/cult/glass
assemblytype = /obj/structure/door_assembly/door_assembly_cult/glass
- glass = 1
+ glass = TRUE
opacity = 0
/obj/machinery/door/airlock/cult/glass/friendly
@@ -420,7 +420,7 @@
/obj/machinery/door/airlock/cult/unruned/glass
assemblytype = /obj/structure/door_assembly/door_assembly_cult/unruned/glass
- glass = 1
+ glass = TRUE
opacity = 0
/obj/machinery/door/airlock/cult/unruned/glass/friendly
@@ -543,7 +543,7 @@
return 0
/obj/machinery/door/airlock/clockwork/brass
- glass = 1
+ glass = TRUE
opacity = 0
//////////////////////////////////
@@ -558,7 +558,7 @@
note_overlay_file = 'icons/obj/doors/airlocks/glass_large/overlays.dmi'
opacity = 0
assemblytype = null
- glass = 1
+ glass = TRUE
bound_width = 64 // 2x1
/obj/machinery/door/airlock/glass_large/narsie_act()
diff --git a/code/game/machinery/doors/alarmlock.dm b/code/game/machinery/doors/alarmlock.dm
index e07596e4a1..3ecd9cbfda 100644
--- a/code/game/machinery/doors/alarmlock.dm
+++ b/code/game/machinery/doors/alarmlock.dm
@@ -5,11 +5,11 @@
overlays_file = 'icons/obj/doors/airlocks/station2/overlays.dmi'
opacity = 0
assemblytype = /obj/structure/door_assembly/door_assembly_glass
- glass = 1
+ glass = TRUE
var/datum/radio_frequency/air_connection
var/air_frequency = 1437
- autoclose = 0
+ autoclose = FALSE
/obj/machinery/door/airlock/alarmlock/New()
..()
@@ -39,8 +39,8 @@
if(alarm_area == our_area.name)
switch(alert)
if("severe")
- autoclose = 1
+ autoclose = TRUE
close()
if("minor", "clear")
- autoclose = 0
+ autoclose = FALSE
open()
\ No newline at end of file
diff --git a/code/game/machinery/doors/brigdoors.dm b/code/game/machinery/doors/brigdoors.dm
index fe8580d9d7..90b80ed5a3 100644
--- a/code/game/machinery/doors/brigdoors.dm
+++ b/code/game/machinery/doors/brigdoors.dm
@@ -24,8 +24,8 @@
icon_state = "frame"
desc = "A remote control for a door."
req_access = list(GLOB.access_security)
- anchored = 1
- density = 0
+ anchored = TRUE
+ density = FALSE
var/id = null // id of linked machinery/lockers
var/activation_time = 0
@@ -101,7 +101,7 @@
continue
if(C.opened && !C.close())
continue
- C.locked = 1
+ C.locked = TRUE
C.update_icon()
return 1
@@ -130,7 +130,7 @@
continue
if(C.opened)
continue
- C.locked = 0
+ C.locked = FALSE
C.update_icon()
return 1
@@ -146,7 +146,7 @@
. = new_time == timer_duration //return 1 on no change
timer_duration = new_time
-/obj/machinery/door_timer/ui_interact(mob/user, ui_key = "main", datum/tgui/ui = null, force_open = 0, \
+/obj/machinery/door_timer/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)
ui = SStgui.try_update_ui(user, src, ui_key, ui, force_open)
if(!ui)
diff --git a/code/game/machinery/doors/door.dm b/code/game/machinery/doors/door.dm
index c011d6257c..396e706dc0 100644
--- a/code/game/machinery/doors/door.dm
+++ b/code/game/machinery/doors/door.dm
@@ -3,9 +3,9 @@
desc = "It opens and closes."
icon = 'icons/obj/doors/Doorint.dmi'
icon_state = "door1"
- anchored = 1
+ anchored = TRUE
opacity = 1
- density = 1
+ density = TRUE
layer = OPEN_DOOR_LAYER
power_channel = ENVIRON
max_integrity = 350
@@ -15,18 +15,18 @@
var/secondsElectrified = 0
var/shockedby = list()
- var/visible = 1
- var/operating = 0
- var/glass = 0
- var/welded = 0
+ var/visible = TRUE
+ var/operating = FALSE
+ var/glass = FALSE
+ var/welded = FALSE
var/normalspeed = 1
- var/heat_proof = 0 // For rglass-windowed airlocks and firedoors
- var/emergency = 0 // Emergency access override
- var/sub_door = 0 // 1 if it's meant to go under another door.
+ var/heat_proof = FALSE // For rglass-windowed airlocks and firedoors
+ var/emergency = FALSE // Emergency access override
+ var/sub_door = FALSE // true if it's meant to go under another door.
var/closingLayer = CLOSED_DOOR_LAYER
- var/autoclose = 0 //does it automatically close after some time
- var/safe = 1 //whether the door detects things and mobs in its way and reopen or crushes them.
- var/locked = 0 //whether the door is bolted or not.
+ var/autoclose = FALSE //does it automatically close after some time
+ var/safe = TRUE //whether the door detects things and mobs in its way and reopen or crushes them.
+ var/locked = FALSE //whether the door is bolted or not.
var/assemblytype //the type of door frame to drop during deconstruction
var/auto_close //TO BE REMOVED, no longer used, it's just preventing a runtime with a map var edit.
var/datum/effect_system/spark_spread/spark_system
@@ -50,7 +50,7 @@
explosion_block = EXPLOSION_BLOCK_PROC
/obj/machinery/door/Destroy()
- density = 0
+ density = FALSE
air_update_turf(1)
update_freelook_sight()
GLOB.airlocks -= src
@@ -232,16 +232,16 @@
return 1
if(operating)
return
- operating = 1
+ operating = TRUE
do_animate("opening")
set_opacity(0)
sleep(5)
- density = 0
+ density = FALSE
sleep(5)
layer = OPEN_DOOR_LAYER
update_icon()
set_opacity(0)
- operating = 0
+ operating = FALSE
air_update_turf(1)
update_freelook_sight()
if(autoclose)
@@ -260,17 +260,17 @@
if(autoclose)
addtimer(CALLBACK(src, .proc/autoclose), 60)
return
- operating = 1
+ operating = TRUE
do_animate("closing")
layer = closingLayer
sleep(5)
- density = 1
+ density = TRUE
sleep(5)
update_icon()
if(visible && !glass)
set_opacity(1)
- operating = 0
+ operating = FALSE
air_update_turf(1)
update_freelook_sight()
if(safe)
diff --git a/code/game/machinery/doors/firedoor.dm b/code/game/machinery/doors/firedoor.dm
index 645c154d0b..f2b4eb5451 100644
--- a/code/game/machinery/doors/firedoor.dm
+++ b/code/game/machinery/doors/firedoor.dm
@@ -10,13 +10,13 @@
icon = 'icons/obj/doors/Doorfireglass.dmi'
icon_state = "door_open"
opacity = 0
- density = 0
+ density = FALSE
max_integrity = 300
resistance_flags = FIRE_PROOF
- heat_proof = 1
- glass = 1
+ heat_proof = TRUE
+ glass = TRUE
var/nextstate = null
- sub_door = 1
+ sub_door = TRUE
explosion_block = 1
safe = FALSE
closingLayer = CLOSED_FIREDOOR_LAYER
@@ -237,7 +237,7 @@
/obj/machinery/door/firedoor/heavy
name = "heavy firelock"
icon = 'icons/obj/doors/Doorfire.dmi'
- glass = 0
+ glass = FALSE
explosion_block = 2
assemblytype = /obj/structure/firelock_frame/heavy
max_integrity = 550
@@ -253,8 +253,8 @@
desc = "A partially completed firelock."
icon = 'icons/obj/doors/Doorfire.dmi'
icon_state = "frame1"
- anchored = 0
- density = 1
+ anchored = FALSE
+ density = TRUE
var/constructionStep = CONSTRUCTION_NOCIRCUIT
var/reinforced = 0
diff --git a/code/game/machinery/doors/poddoor.dm b/code/game/machinery/doors/poddoor.dm
index 5317128515..1d0004f390 100644
--- a/code/game/machinery/doors/poddoor.dm
+++ b/code/game/machinery/doors/poddoor.dm
@@ -4,10 +4,10 @@
icon = 'icons/obj/doors/blastdoor.dmi'
icon_state = "closed"
var/id = 1
- sub_door = 1
+ sub_door = TRUE
explosion_block = 3
- heat_proof = 1
- safe = 0
+ heat_proof = TRUE
+ safe = FALSE
max_integrity = 600
armor = list(melee = 50, bullet = 100, laser = 100, energy = 100, bomb = 50, bio = 100, rad = 100, fire = 100, acid = 70)
resistance_flags = FIRE_PROOF
@@ -15,7 +15,7 @@
/obj/machinery/door/poddoor/preopen
icon_state = "open"
- density = 0
+ density = FALSE
opacity = 0
/obj/machinery/door/poddoor/ert
diff --git a/code/game/machinery/doors/shutters.dm b/code/game/machinery/doors/shutters.dm
index 4e5096377a..174e4fbd14 100644
--- a/code/game/machinery/doors/shutters.dm
+++ b/code/game/machinery/doors/shutters.dm
@@ -8,7 +8,7 @@
/obj/machinery/door/poddoor/shutters/preopen
icon_state = "open"
- density = 0
+ density = FALSE
opacity = 0
diff --git a/code/game/machinery/doors/unpowered.dm b/code/game/machinery/doors/unpowered.dm
index d61d14122d..63ba0601aa 100644
--- a/code/game/machinery/doors/unpowered.dm
+++ b/code/game/machinery/doors/unpowered.dm
@@ -21,5 +21,5 @@
name = "door"
icon_state = "door1"
opacity = 1
- density = 1
+ density = TRUE
explosion_block = 1
\ No newline at end of file
diff --git a/code/game/machinery/doors/windowdoor.dm b/code/game/machinery/doors/windowdoor.dm
index 0f3ab61f5d..20a2808360 100644
--- a/code/game/machinery/doors/windowdoor.dm
+++ b/code/game/machinery/doors/windowdoor.dm
@@ -10,7 +10,7 @@
max_integrity = 150 //If you change this, consider changing ../door/window/brigdoor/ max_integrity at the bottom of this .dm file
integrity_failure = 0
armor = list(melee = 20, bullet = 50, laser = 50, energy = 50, bomb = 10, bio = 100, rad = 100, fire = 70, acid = 100)
- visible = 0
+ visible = FALSE
flags = ON_BORDER
opacity = 0
CanAtmosPass = ATMOS_PASS_PROC
@@ -36,7 +36,7 @@
debris += new /obj/item/stack/cable_coil(src, cable)
/obj/machinery/door/window/Destroy()
- density = 0
+ density = FALSE
for(var/I in debris)
qdel(I)
if(obj_integrity == 0)
@@ -135,19 +135,19 @@
if(emagged)
return 0
if(!src.operating) //in case of emag
- src.operating = 1
+ operating = TRUE
do_animate("opening")
playsound(src.loc, 'sound/machines/windowdoor.ogg', 100, 1)
src.icon_state ="[src.base_state]open"
sleep(10)
- src.density = 0
+ density = FALSE
// src.sd_set_opacity(0) //TODO: why is this here? Opaque windoors? ~Carn
air_update_turf(1)
update_freelook_sight()
if(operating == 1) //emag again
- src.operating = 0
+ operating = FALSE
return 1
/obj/machinery/door/window/close(forced=0)
@@ -159,17 +159,17 @@
if(forced < 2)
if(emagged)
return 0
- src.operating = 1
+ operating = TRUE
do_animate("closing")
playsound(src.loc, 'sound/machines/windowdoor.ogg', 100, 1)
src.icon_state = src.base_state
- src.density = 1
+ density = TRUE
air_update_turf(1)
update_freelook_sight()
sleep(10)
- src.operating = 0
+ operating = FALSE
return 1
/obj/machinery/door/window/play_attack_sound(damage_amount, damage_type = BRUTE, damage_flag = 0)
@@ -206,13 +206,13 @@
/obj/machinery/door/window/emag_act(mob/user)
if(!operating && density && !emagged)
- operating = 1
+ operating = TRUE
flick("[src.base_state]spark", src)
sleep(6)
- operating = 0
+ operating = FALSE
desc += "
Its access panel is smoking slightly."
open()
- emagged = 1
+ emagged = TRUE
/obj/machinery/door/window/attackby(obj/item/weapon/I, mob/living/user, params)
@@ -245,11 +245,11 @@
WA.facing = "r"
if("leftsecure")
WA.facing = "l"
- WA.secure = 1
+ WA.secure = TRUE
if("rightsecure")
WA.facing = "r"
- WA.secure = 1
- WA.anchored = 1
+ WA.secure = TRUE
+ WA.anchored = TRUE
WA.state= "02"
WA.setDir(src.dir)
WA.ini_dir = src.dir
diff --git a/code/game/machinery/doppler_array.dm b/code/game/machinery/doppler_array.dm
index ddf50edac6..3dbf7888de 100644
--- a/code/game/machinery/doppler_array.dm
+++ b/code/game/machinery/doppler_array.dm
@@ -5,8 +5,8 @@ GLOBAL_LIST_EMPTY(doppler_arrays)
desc = "A highly precise directional sensor array which measures the release of quants from decaying tachyons. The doppler shifting of the mirror-image formed by these quants can reveal the size, location and temporal affects of energetic disturbances within a large radius ahead of the array.\nAlt-click to rotate it clockwise."
icon = 'icons/obj/machines/research.dmi'
icon_state = "tdoppler"
- density = 1
- anchored = 1
+ density = TRUE
+ anchored = TRUE
var/integrated = 0
var/max_dist = 100
verb_say = "states coldly"
@@ -25,11 +25,11 @@ GLOBAL_LIST_EMPTY(doppler_arrays)
/obj/machinery/doppler_array/attackby(obj/item/O, mob/user, params)
if(istype(O, /obj/item/weapon/wrench))
if(!anchored && !isinspace())
- anchored = 1
+ anchored = TRUE
power_change()
to_chat(user, "You fasten [src].")
else if(anchored)
- anchored = 0
+ anchored = FALSE
power_change()
to_chat(user, "You unfasten [src].")
playsound(loc, O.usesound, 50, 1)
diff --git a/code/game/machinery/droneDispenser.dm b/code/game/machinery/droneDispenser.dm
index 8ff2207464..022ca343f6 100644
--- a/code/game/machinery/droneDispenser.dm
+++ b/code/game/machinery/droneDispenser.dm
@@ -10,8 +10,8 @@
icon = 'icons/obj/machines/droneDispenser.dmi'
icon_state = "on"
- anchored = 1
- density = 1
+ anchored = TRUE
+ density = TRUE
max_integrity = 250
integrity_failure = 80
diff --git a/code/game/machinery/embedded_controller/access_controller.dm b/code/game/machinery/embedded_controller/access_controller.dm
index b04c616761..afa9283b95 100644
--- a/code/game/machinery/embedded_controller/access_controller.dm
+++ b/code/game/machinery/embedded_controller/access_controller.dm
@@ -6,7 +6,7 @@
/obj/machinery/doorButtons
power_channel = ENVIRON
- anchored = 1
+ anchored = TRUE
use_power = IDLE_POWER_USE
idle_power_usage = 2
active_power_usage = 4
@@ -28,7 +28,7 @@
/obj/machinery/doorButtons/emag_act(mob/user)
if(!emagged)
- emagged = 1
+ emagged = TRUE
req_access = list()
req_one_access = list()
playsound(src.loc, "sparks", 100, 1)
@@ -67,7 +67,7 @@
if(controller && !controller.busy && door)
if(controller.stat & NOPOWER)
return
- busy = 1
+ busy = TRUE
update_icon()
if(door.density)
if(!controller.exteriorAirlock || !controller.interiorAirlock)
@@ -80,7 +80,7 @@
else
controller.onlyClose(door)
sleep(20)
- busy = 0
+ busy = FALSE
update_icon()
/obj/machinery/doorButtons/access_button/update_icon()
@@ -218,7 +218,7 @@
/obj/machinery/doorButtons/airlock_controller/proc/goIdle(update)
lostPower = 0
- busy = 0
+ busy = FALSE
if(update)
update_icon()
updateUsrDialog()
diff --git a/code/game/machinery/embedded_controller/airlock_controller.dm b/code/game/machinery/embedded_controller/airlock_controller.dm
index 07605fd870..fb50bc8314 100644
--- a/code/game/machinery/embedded_controller/airlock_controller.dm
+++ b/code/game/machinery/embedded_controller/airlock_controller.dm
@@ -206,7 +206,7 @@
icon_state = "airlock_control_standby"
name = "airlock console"
- density = 0
+ density = FALSE
frequency = 1449
power_channel = ENVIRON
diff --git a/code/game/machinery/embedded_controller/embedded_controller_base.dm b/code/game/machinery/embedded_controller/embedded_controller_base.dm
index ea92d71898..48ef992615 100644
--- a/code/game/machinery/embedded_controller/embedded_controller_base.dm
+++ b/code/game/machinery/embedded_controller/embedded_controller_base.dm
@@ -21,10 +21,10 @@
var/datum/computer/file/embedded_program/program
name = "embedded controller"
- density = 0
- anchored = 1
+ density = FALSE
+ anchored = TRUE
- var/on = 1
+ var/on = TRUE
/obj/machinery/embedded_controller/interact(mob/user)
user.set_machine(src)
diff --git a/code/game/machinery/embedded_controller/simple_vent_controller.dm b/code/game/machinery/embedded_controller/simple_vent_controller.dm
index 9688fd8cdf..5959939673 100644
--- a/code/game/machinery/embedded_controller/simple_vent_controller.dm
+++ b/code/game/machinery/embedded_controller/simple_vent_controller.dm
@@ -43,7 +43,7 @@
icon_state = "airlock_control_standby"
name = "vent controller"
- density = 0
+ density = FALSE
frequency = 1229
power_channel = ENVIRON
diff --git a/code/game/machinery/firealarm.dm b/code/game/machinery/firealarm.dm
index ec4e74ea4a..9977a6124e 100644
--- a/code/game/machinery/firealarm.dm
+++ b/code/game/machinery/firealarm.dm
@@ -14,7 +14,7 @@
desc = "\"Pull this in case of emergency\". Thus, keep pulling it forever."
icon = 'icons/obj/monitors.dmi'
icon_state = "fire0"
- anchored = 1
+ anchored = TRUE
max_integrity = 250
integrity_failure = 100
armor = list(melee = 0, bullet = 0, laser = 0, energy = 0, bomb = 0, bio = 100, rad = 100, fire = 90, acid = 30)
@@ -33,7 +33,7 @@
src.setDir(dir)
if(building)
buildstage = 0
- panel_open = 1
+ panel_open = TRUE
pixel_x = (dir & 3)? 0 : (dir == 4 ? -24 : 24)
pixel_y = (dir & 3)? (dir ==1 ? -24 : 24) : 0
update_icon()
@@ -79,7 +79,7 @@
/obj/machinery/firealarm/emag_act(mob/user)
if(!emagged)
- emagged = 1
+ emagged = TRUE
if(user)
user.visible_message("Sparks fly out of the [src]!",
"You emag [src], disabling its thermal sensors.")
@@ -109,7 +109,7 @@
/obj/machinery/firealarm/proc/reset_in(time)
addtimer(CALLBACK(src, .proc/reset), time)
-/obj/machinery/firealarm/ui_interact(mob/user, ui_key = "main", datum/tgui/ui = null, force_open = 0, \
+/obj/machinery/firealarm/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)
ui = SStgui.try_update_ui(user, src, ui_key, ui, force_open)
if(!ui)
diff --git a/code/game/machinery/flasher.dm b/code/game/machinery/flasher.dm
index 8b040c002d..da82e1df25 100644
--- a/code/game/machinery/flasher.dm
+++ b/code/game/machinery/flasher.dm
@@ -13,16 +13,16 @@
var/base_state = "mflash"
max_integrity = 250
integrity_failure = 100
- anchored = 1
+ anchored = TRUE
/obj/machinery/flasher/portable //Portable version of the flasher. Only flashes when anchored
name = "portable flasher"
desc = "A portable flashing device. Wrench to activate and deactivate. Cannot detect slow movements."
icon_state = "pflash1-p"
strength = 80
- anchored = 0
+ anchored = FALSE
base_state = "pflash"
- density = 1
+ density = TRUE
/obj/machinery/flasher/New(loc, ndir = 0, built = 0)
..() // ..() is EXTREMELY IMPORTANT, never forget to add it
@@ -173,13 +173,13 @@
if (!anchored && !isinspace())
to_chat(user, "[src] is now secured.")
add_overlay("[base_state]-s")
- anchored = 1
+ anchored = TRUE
power_change()
proximity_monitor.SetRange(range)
else
to_chat(user, "[src] can now be moved.")
cut_overlays()
- anchored = 0
+ anchored = FALSE
power_change()
proximity_monitor.SetRange(0)
diff --git a/code/game/machinery/gulag_item_reclaimer.dm b/code/game/machinery/gulag_item_reclaimer.dm
index 7dbb5f0edd..7248bc92fd 100644
--- a/code/game/machinery/gulag_item_reclaimer.dm
+++ b/code/game/machinery/gulag_item_reclaimer.dm
@@ -4,8 +4,8 @@
icon = 'icons/obj/terminals.dmi'
icon_state = "dorm_taken"
req_access = list(GLOB.access_security) //reqaccess to access all stored items
- density = 0
- anchored = 1
+ density = FALSE
+ anchored = TRUE
use_power = IDLE_POWER_USE
idle_power_usage = 100
active_power_usage = 2500
@@ -27,7 +27,7 @@
/obj/machinery/gulag_item_reclaimer/emag_act(mob/user)
if(!emagged) // emagging lets anyone reclaim all the items
req_access = list()
- emagged = 1
+ emagged = TRUE
/obj/machinery/gulag_item_reclaimer/attackby(obj/item/I, mob/user)
if(istype(I, /obj/item/weapon/card/id/prisoner))
@@ -42,7 +42,7 @@
to_chat(user, "There's an ID inserted already.")
return ..()
-/obj/machinery/gulag_item_reclaimer/ui_interact(mob/user, ui_key = "main", datum/tgui/ui = null, force_open = 0, \
+/obj/machinery/gulag_item_reclaimer/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)
ui = SStgui.try_update_ui(user, src, ui_key, ui, force_open)
if(!ui)
diff --git a/code/game/machinery/gulag_teleporter.dm b/code/game/machinery/gulag_teleporter.dm
index 7577306596..4f32817b74 100644
--- a/code/game/machinery/gulag_teleporter.dm
+++ b/code/game/machinery/gulag_teleporter.dm
@@ -11,9 +11,9 @@ The console is located at computer/gulag_teleporter.dm
desc = "A bluespace teleporter used for teleporting prisoners to the labor camp."
icon = 'icons/obj/machines/implantchair.dmi'
icon_state = "implantchair"
- state_open = 0
- density = 1
- anchored = 1
+ state_open = FALSE
+ density = TRUE
+ anchored = TRUE
use_power = IDLE_POWER_USE
idle_power_usage = 200
active_power_usage = 5000
diff --git a/code/game/machinery/hologram.dm b/code/game/machinery/hologram.dm
index 85f5985a1d..141df8af74 100644
--- a/code/game/machinery/hologram.dm
+++ b/code/game/machinery/hologram.dm
@@ -34,7 +34,7 @@ Possible to do for anyone motivated enough:
icon_state = "holopad0"
layer = LOW_OBJ_LAYER
flags = HEAR
- anchored = 1
+ anchored = TRUE
use_power = IDLE_POWER_USE
idle_power_usage = 5
active_power_usage = 100
@@ -295,7 +295,7 @@ Possible to do for anyone motivated enough:
Hologram.copy_known_languages_from(user,replace = TRUE)
Hologram.mouse_opacity = 0//So you can't click on it.
Hologram.layer = FLY_LAYER//Above all the other objects/mobs. Or the vast majority of them.
- Hologram.anchored = 1//So space wind cannot drag it.
+ Hologram.anchored = TRUE//So space wind cannot drag it.
Hologram.name = "[user.name] (Hologram)"//If someone decides to right click.
Hologram.set_light(2) //hologram lighting
diff --git a/code/game/machinery/igniter.dm b/code/game/machinery/igniter.dm
index 87688502fc..0210659eb9 100644
--- a/code/game/machinery/igniter.dm
+++ b/code/game/machinery/igniter.dm
@@ -4,8 +4,8 @@
icon = 'icons/obj/stationobjs.dmi'
icon_state = "igniter1"
var/id = null
- var/on = 1
- anchored = 1
+ var/on = TRUE
+ anchored = TRUE
use_power = IDLE_POWER_USE
idle_power_usage = 2
active_power_usage = 4
@@ -58,7 +58,7 @@
var/last_spark = 0
var/base_state = "migniter"
var/datum/effect_system/spark_spread/spark_system
- anchored = 1
+ anchored = TRUE
resistance_flags = FIRE_PROOF
/obj/machinery/sparker/New()
diff --git a/code/game/machinery/iv_drip.dm b/code/game/machinery/iv_drip.dm
index 0da04fbaa2..1b95a43c17 100644
--- a/code/game/machinery/iv_drip.dm
+++ b/code/game/machinery/iv_drip.dm
@@ -2,7 +2,7 @@
name = "\improper IV drip"
icon = 'icons/obj/iv_drip.dmi'
icon_state = "iv_drip"
- anchored = 0
+ anchored = FALSE
mouse_drag_pointer = MOUSE_ACTIVE_POINTER
var/mob/living/carbon/attached = null
var/mode = 1 // 1 is injecting, 0 is taking blood.
diff --git a/code/game/machinery/launch_pad.dm b/code/game/machinery/launch_pad.dm
index 622991da29..9bbc509d44 100644
--- a/code/game/machinery/launch_pad.dm
+++ b/code/game/machinery/launch_pad.dm
@@ -259,7 +259,7 @@
var/sending = TRUE
var/obj/machinery/launchpad/briefcase/pad
-/obj/item/device/launchpad_remote/ui_interact(mob/user, ui_key = "launchpad_remote", datum/tgui/ui = null, force_open = 0, datum/tgui/master_ui = null, datum/ui_state/state = GLOB.default_state)
+/obj/item/device/launchpad_remote/ui_interact(mob/user, ui_key = "launchpad_remote", datum/tgui/ui = null, force_open = FALSE, datum/tgui/master_ui = null, datum/ui_state/state = GLOB.default_state)
ui = SStgui.try_update_ui(user, src, ui_key, ui, force_open)
if(!ui)
ui = new(user, src, ui_key, "launchpad_remote", "Briefcase Launchpad Remote", 550, 400, master_ui, state) //width, height
diff --git a/code/game/machinery/lightswitch.dm b/code/game/machinery/lightswitch.dm
index 88b6badee2..a09adf6155 100644
--- a/code/game/machinery/lightswitch.dm
+++ b/code/game/machinery/lightswitch.dm
@@ -5,8 +5,8 @@
name = "light switch"
icon = 'icons/obj/power.dmi'
icon_state = "light1"
- anchored = 1
- var/on = 1
+ anchored = TRUE
+ var/on = TRUE
var/area/area = null
var/otherarea = null
// luminosity = 1
diff --git a/code/game/machinery/limbgrower.dm b/code/game/machinery/limbgrower.dm
index b832b322a2..889c74bc54 100644
--- a/code/game/machinery/limbgrower.dm
+++ b/code/game/machinery/limbgrower.dm
@@ -9,16 +9,16 @@
desc = "It grows new limbs using Synthflesh."
icon = 'icons/obj/machines/limbgrower.dmi'
icon_state = "limbgrower_idleoff"
- density = 1
+ density = TRUE
container_type = OPENCONTAINER
- var/operating = 0
- anchored = 1
+ var/operating = FALSE
+ anchored = TRUE
use_power = IDLE_POWER_USE
var/disabled = 0
idle_power_usage = 10
active_power_usage = 100
- var/busy = 0
+ var/busy = FALSE
var/prod_coeff = 1
var/datum/design/being_built
@@ -117,7 +117,7 @@
var/power = max(2000, synth_cost/5)
if(reagents.has_reagent("synthflesh", being_built.reagents_list["synthflesh"]*prod_coeff))
- busy = 1
+ busy = TRUE
use_power(power)
flick("limbgrower_fill",src)
icon_state = "limbgrower_idleon"
@@ -140,7 +140,7 @@
new buildpath(loc)
else
src.visible_message(" Something went very wrong and there isnt enough synthflesh anymore!")
- busy = 0
+ busy = FALSE
flick("limbgrower_unfill",src)
icon_state = "limbgrower_idleoff"
updateUsrDialog()
diff --git a/code/game/machinery/machinery.dm b/code/game/machinery/machinery.dm
index a6033aac48..57cff71730 100644
--- a/code/game/machinery/machinery.dm
+++ b/code/game/machinery/machinery.dm
@@ -102,7 +102,7 @@ Class Procs:
max_integrity = 200
var/stat = 0
- var/emagged = 0
+ var/emagged = FALSE
var/use_power = IDLE_POWER_USE
//0 = dont run the auto
//1 = run auto, use idle
@@ -114,13 +114,13 @@ Class Procs:
var/list/component_parts = null //list of all the parts used to build it, if made from certain kinds of frames.
var/uid
var/global/gl_uid = 1
- var/panel_open = 0
- var/state_open = 0
+ var/panel_open = FALSE
+ var/state_open = FALSE
var/critical_machine = FALSE //If this machine is critical to station operation and should have the area be excempted from power failures.
var/list/occupant_typecache = list(/mob/living) // turned into typecache in Initialize
var/atom/movable/occupant = null
var/unsecuring_tool = /obj/item/weapon/wrench
- var/interact_open = 0 // Can the machine be interacted with when in maint/when the panel is open.
+ var/interact_open = FALSE // Can the machine be interacted with when in maint/when the panel is open.
var/interact_offline = 0 // Can the machine be interacted with while de-powered.
var/speed_process = 0 // Process as fast as possible?
@@ -162,8 +162,8 @@ Class Procs:
..()
/obj/machinery/proc/open_machine(drop = 1)
- state_open = 1
- density = 0
+ state_open = TRUE
+ density = FALSE
if(drop)
dropContents()
update_icon()
@@ -179,8 +179,8 @@ Class Procs:
occupant = null
/obj/machinery/proc/close_machine(atom/movable/target = null)
- state_open = 0
- density = 1
+ state_open = FALSE
+ density = TRUE
if(!target)
for(var/am in loc)
if(!is_type_in_typecache(am, occupant_typecache))
@@ -351,11 +351,11 @@ Class Procs:
if(istype(S) && !(flags & NODECONSTRUCT))
playsound(loc, S.usesound, 50, 1)
if(!panel_open)
- panel_open = 1
+ panel_open = TRUE
icon_state = icon_state_open
to_chat(user, "You open the maintenance hatch of [src].")
else
- panel_open = 0
+ panel_open = FALSE
icon_state = icon_state_closed
to_chat(user, "You close the maintenance hatch of [src].")
return 1
diff --git a/code/game/machinery/magnet.dm b/code/game/machinery/magnet.dm
index 5935b222fe..6f5224ad76 100644
--- a/code/game/machinery/magnet.dm
+++ b/code/game/machinery/magnet.dm
@@ -12,7 +12,7 @@
desc = "A device that uses station power to create points of magnetic energy."
level = 1 // underfloor
layer = LOW_OBJ_LAYER
- anchored = 1
+ anchored = TRUE
use_power = IDLE_POWER_USE
idle_power_usage = 50
@@ -21,7 +21,7 @@
var/magnetic_field = 1 // the range of magnetic attraction
var/code = 0 // frequency code, they should be different unless you have a group of magnets working together or something
var/turf/center // the center of magnetic attraction
- var/on = 0
+ var/on = FALSE
var/pulling = 0
// x, y modifiers to the center turf; (0, 0) is centered on the magnet, whereas (1, -1) is one tile right, one tile down
@@ -140,7 +140,7 @@
/obj/machinery/magnetic_module/process()
if(stat & NOPOWER)
- on = 0
+ on = FALSE
// Sanity checks:
if(electricity_level <= 0)
@@ -197,8 +197,8 @@
name = "magnetic control console"
icon = 'icons/obj/airlock_machines.dmi' // uses an airlock machine icon, THINK GREEN HELP THE ENVIRONMENT - RECYCLING!
icon_state = "airlock_control_standby"
- density = 0
- anchored = 1
+ density = FALSE
+ anchored = TRUE
use_power = IDLE_POWER_USE
idle_power_usage = 45
var/frequency = 1449
diff --git a/code/game/machinery/mass_driver.dm b/code/game/machinery/mass_driver.dm
index 0a3685188a..17f573fe6d 100644
--- a/code/game/machinery/mass_driver.dm
+++ b/code/game/machinery/mass_driver.dm
@@ -3,7 +3,7 @@
desc = "The finest in spring-loaded piston toy technology, now on a space station near you."
icon = 'icons/obj/stationobjs.dmi'
icon_state = "mass_driver"
- anchored = 1
+ anchored = TRUE
use_power = IDLE_POWER_USE
idle_power_usage = 2
active_power_usage = 50
diff --git a/code/game/machinery/navbeacon.dm b/code/game/machinery/navbeacon.dm
index f36ae90fad..466cc07453 100644
--- a/code/game/machinery/navbeacon.dm
+++ b/code/game/machinery/navbeacon.dm
@@ -9,12 +9,12 @@
desc = "A radio beacon used for bot navigation."
level = 1 // underfloor
layer = LOW_OBJ_LAYER
- anchored = 1
+ anchored = TRUE
max_integrity = 500
armor = list(melee = 70, bullet = 70, laser = 70, energy = 70, bomb = 0, bio = 0, rad = 0, fire = 80, acid = 80)
- var/open = 0 // true if cover is open
- var/locked = 1 // true if controls are locked
+ var/open = FALSE // true if cover is open
+ var/locked = TRUE // true if controls are locked
var/freq = 1445 // radio frequency
var/location = "" // location response text
var/list/codes // assoc. list of transponder codes
diff --git a/code/game/machinery/newscaster.dm b/code/game/machinery/newscaster.dm
index d56812c4e4..e1b4c31734 100644
--- a/code/game/machinery/newscaster.dm
+++ b/code/game/machinery/newscaster.dm
@@ -17,7 +17,7 @@ GLOBAL_LIST_EMPTY(allCasters)
var/icon/img = null
var/time_stamp = ""
var/list/datum/newscaster/feed_comment/comments = list()
- var/locked = 0
+ var/locked = FALSE
var/caption = ""
var/creationTime
var/authorCensor
@@ -58,7 +58,7 @@ GLOBAL_LIST_EMPTY(allCasters)
/datum/newscaster/feed_channel
var/channel_name = ""
var/list/datum/newscaster/feed_message/messages = list()
- var/locked = 0
+ var/locked = FALSE
var/author = ""
var/censored = 0
var/list/authorCensorTime = list()
@@ -183,7 +183,7 @@ GLOBAL_LIST_EMPTY(allCasters)
var/securityCaster = 0
var/unit_no = 0
var/alert_delay = 500
- var/alert = 0
+ var/alert = FALSE
var/scanned_user = "Unknown"
var/msg = ""
var/obj/item/weapon/photo/photo = null
@@ -191,7 +191,7 @@ GLOBAL_LIST_EMPTY(allCasters)
var/c_locked=0
var/datum/newscaster/feed_channel/viewing_channel = null
var/allow_comments = 1
- anchored = 1
+ anchored = TRUE
/obj/machinery/newscaster/security_unit
name = "security newscaster"
diff --git a/code/game/machinery/pipe/pipe_dispenser.dm b/code/game/machinery/pipe/pipe_dispenser.dm
index 3a65d97d6f..6721a8e0b8 100644
--- a/code/game/machinery/pipe/pipe_dispenser.dm
+++ b/code/game/machinery/pipe/pipe_dispenser.dm
@@ -2,8 +2,8 @@
name = "pipe dispenser"
icon = 'icons/obj/stationobjs.dmi'
icon_state = "pipe_d"
- density = 1
- anchored = 1
+ density = TRUE
+ anchored = TRUE
var/wait = 0
/obj/machinery/pipedispenser/attack_paw(mob/user)
@@ -83,7 +83,7 @@
"[user] fastens \the [src].", \
"You fasten \the [src]. Now it can dispense pipes.", \
"You hear ratchet.")
- anchored = 1
+ anchored = TRUE
stat &= MAINT
if (usr.machine==src)
usr << browse(null, "window=pipedispenser")
@@ -96,7 +96,7 @@
"[user] unfastens \the [src].", \
"You unfasten \the [src]. Now it can be pulled somewhere else.", \
"You hear ratchet.")
- anchored = 0
+ anchored = FALSE
stat |= ~MAINT
power_change()
else
@@ -107,8 +107,8 @@
name = "disposal pipe dispenser"
icon = 'icons/obj/stationobjs.dmi'
icon_state = "pipe_d"
- density = 1
- anchored = 1
+ density = TRUE
+ anchored = TRUE
/*
//Allow you to push disposal pipes into it (for those with density 1)
@@ -181,8 +181,8 @@ Nah
name = "transit tube dispenser"
icon = 'icons/obj/stationobjs.dmi'
icon_state = "pipe_d"
- density = 1
- anchored = 1
+ density = TRUE
+ anchored = TRUE
/obj/machinery/pipedispenser/disposal/transit_tube/attack_hand(mob/user)
if(..())
diff --git a/code/game/machinery/porta_turret/portable_turret.dm b/code/game/machinery/porta_turret/portable_turret.dm
index fdad7c388e..8dd0d13b9e 100644
--- a/code/game/machinery/porta_turret/portable_turret.dm
+++ b/code/game/machinery/porta_turret/portable_turret.dm
@@ -8,10 +8,10 @@
name = "turret"
icon = 'icons/obj/turrets.dmi'
icon_state = "turretCover"
- anchored = 1
+ anchored = TRUE
layer = OBJ_LAYER
invisibility = INVISIBILITY_OBSERVER //the turret is invisible if it's inside its cover
- density = 1
+ density = TRUE
use_power = IDLE_POWER_USE //this turret uses and requires power
idle_power_usage = 50 //when inactive, this turret takes up constant 50 Equipment power
active_power_usage = 300 //when active, this turret takes up constant 300 Equipment power
@@ -32,7 +32,7 @@
integrity_failure = 80
armor = list(melee = 50, bullet = 30, laser = 30, energy = 30, bomb = 30, bio = 0, rad = 0, fire = 90, acid = 90)
- var/locked = 1 //if the turret's behaviour control access is locked
+ var/locked = TRUE //if the turret's behaviour control access is locked
var/controllock = 0 //if the turret responds to control panels
var/installation = /obj/item/weapon/gun/energy/e_gun/turret //the type of weapon installed by default
@@ -253,7 +253,7 @@
//This code handles moving the turret around. After all, it's a portable turret!
if(!anchored && !isinspace())
- anchored = 1
+ anchored = TRUE
invisibility = INVISIBILITY_MAXIMUM
update_icon()
to_chat(user, "You secure the exterior bolts on the turret.")
@@ -261,7 +261,7 @@
cover = new /obj/machinery/porta_turret_cover(loc) //create a new turret. While this is handled in process(), this is to workaround a bug where the turret becomes invisible for a split second
cover.parent_turret = src //make the cover's parent src
else if(anchored)
- anchored = 0
+ anchored = FALSE
to_chat(user, "You unsecure the exterior bolts on the turret.")
update_icon()
invisibility = 0
@@ -285,12 +285,12 @@
if(!emagged)
to_chat(user, "You short out [src]'s threat assessment circuits.")
visible_message("[src] hums oddly...")
- emagged = 1
+ emagged = TRUE
controllock = 1
- on = 0 //turns off the turret temporarily
+ on = FALSE //turns off the turret temporarily
update_icon()
sleep(60) //6 seconds for the traitor to gtfo of the area before the turret decides to ruin his shit
- on = 1 //turns it back on. The cover popUp() popDown() are automatically called in process(), no need to define it here
+ on = TRUE //turns it back on. The cover popUp() popDown() are automatically called in process(), no need to define it here
/obj/machinery/porta_turret/emp_act(severity)
@@ -643,11 +643,11 @@
desc = "Used to control a room's automated defenses."
icon = 'icons/obj/machines/turret_control.dmi'
icon_state = "control_standby"
- anchored = 1
- density = 0
+ anchored = TRUE
+ density = FALSE
var/enabled = 1
var/lethal = 0
- var/locked = 1
+ var/locked = TRUE
var/control_area = null //can be area name, path or nothing.
var/ailock = 0 // AI cannot use this
req_access = list(GLOB.access_ai_upload)
@@ -658,7 +658,7 @@
..()
if(built)
setDir(ndir)
- locked = 0
+ locked = FALSE
pixel_x = (dir & 3)? 0 : (dir == 4 ? -24 : 24)
pixel_y = (dir & 3)? (dir ==1 ? -24 : 24) : 0
power_change() //Checks power and initial settings
@@ -719,8 +719,8 @@
/obj/machinery/turretid/emag_act(mob/user)
if(!emagged)
to_chat(user, "You short out the turret controls' access analysis module.")
- emagged = 1
- locked = 0
+ emagged = TRUE
+ locked = FALSE
if(user && user.machine == src)
attack_hand(user)
@@ -921,11 +921,11 @@
if(on)
if(team_color == "blue")
if(istype(P, /obj/item/projectile/beam/lasertag/redtag))
- on = 0
+ on = FALSE
spawn(100)
- on = 1
+ on = TRUE
else if(team_color == "red")
if(istype(P, /obj/item/projectile/beam/lasertag/bluetag))
- on = 0
+ on = FALSE
spawn(100)
- on = 1
+ on = TRUE
diff --git a/code/game/machinery/porta_turret/portable_turret_construct.dm b/code/game/machinery/porta_turret/portable_turret_construct.dm
index cc79fc70d9..25e4f4e49a 100644
--- a/code/game/machinery/porta_turret/portable_turret_construct.dm
+++ b/code/game/machinery/porta_turret/portable_turret_construct.dm
@@ -12,7 +12,7 @@
name = "turret frame"
icon = 'icons/obj/turrets.dmi'
icon_state = "turret_frame"
- density = 1
+ density = TRUE
var/build_step = PTURRET_UNSECURED //the current step in the building process
var/finish_name = "turret" //the name applied to the product turret
var/obj/item/weapon/gun/installed_gun = null
@@ -24,7 +24,7 @@
if(istype(I, /obj/item/weapon/wrench) && !anchored)
playsound(loc, I.usesound, 100, 1)
to_chat(user, "You secure the external bolts.")
- anchored = 1
+ anchored = TRUE
build_step = PTURRET_BOLTED
return
@@ -49,7 +49,7 @@
else if(istype(I, /obj/item/weapon/wrench))
playsound(loc, I.usesound, 75, 1)
to_chat(user, "You unfasten the external bolts.")
- anchored = 0
+ anchored = FALSE
build_step = PTURRET_UNSECURED
return
diff --git a/code/game/machinery/porta_turret/portable_turret_cover.dm b/code/game/machinery/porta_turret/portable_turret_cover.dm
index 2249511b5b..1aadf6a452 100644
--- a/code/game/machinery/porta_turret/portable_turret_cover.dm
+++ b/code/game/machinery/porta_turret/portable_turret_cover.dm
@@ -7,9 +7,9 @@
name = "turret"
icon = 'icons/obj/turrets.dmi'
icon_state = "turretCover"
- anchored = 1
+ anchored = TRUE
layer = HIGH_OBJ_LAYER
- density = 0
+ density = FALSE
max_integrity = 80
var/obj/machinery/porta_turret/parent_turret = null
@@ -46,12 +46,12 @@
return
if(!parent_turret.anchored)
- parent_turret.anchored = 1
+ parent_turret.anchored = TRUE
to_chat(user, "You secure the exterior bolts on the turret.")
parent_turret.invisibility = 0
parent_turret.update_icon()
else
- parent_turret.anchored = 0
+ parent_turret.anchored = FALSE
to_chat(user, "You unsecure the exterior bolts on the turret.")
parent_turret.invisibility = INVISIBILITY_MAXIMUM
parent_turret.update_icon()
@@ -90,7 +90,7 @@
if(!parent_turret.emagged)
to_chat(user, "You short out [parent_turret]'s threat assessment circuits.")
visible_message("[parent_turret] hums oddly...")
- parent_turret.emagged = 1
+ parent_turret.emagged = TRUE
parent_turret.on = 0
spawn(40)
parent_turret.on = 1
diff --git a/code/game/machinery/quantum_pad.dm b/code/game/machinery/quantum_pad.dm
index cd2e42773a..5b1eb0548c 100644
--- a/code/game/machinery/quantum_pad.dm
+++ b/code/game/machinery/quantum_pad.dm
@@ -3,7 +3,7 @@
desc = "A bluespace quantum-linked telepad used for teleporting objects to other quantum pads."
icon = 'icons/obj/telescience.dmi'
icon_state = "qpad-idle"
- anchored = 1
+ anchored = TRUE
use_power = IDLE_POWER_USE
idle_power_usage = 200
active_power_usage = 5000
diff --git a/code/game/machinery/recharger.dm b/code/game/machinery/recharger.dm
index 65991fa65e..460cc87a99 100755
--- a/code/game/machinery/recharger.dm
+++ b/code/game/machinery/recharger.dm
@@ -3,7 +3,7 @@
icon = 'icons/obj/stationobjs.dmi'
icon_state = "recharger0"
desc = "A charging dock for energy based weaponry."
- anchored = 1
+ anchored = TRUE
use_power = IDLE_POWER_USE
idle_power_usage = 4
active_power_usage = 250
diff --git a/code/game/machinery/rechargestation.dm b/code/game/machinery/rechargestation.dm
index 2c6073d899..3e251e35b5 100644
--- a/code/game/machinery/rechargestation.dm
+++ b/code/game/machinery/rechargestation.dm
@@ -2,15 +2,15 @@
name = "cyborg recharging station"
icon = 'icons/obj/objects.dmi'
icon_state = "borgcharger0"
- density = 0
- anchored = 1
+ density = FALSE
+ anchored = TRUE
use_power = IDLE_POWER_USE
idle_power_usage = 5
active_power_usage = 1000
req_access = list(GLOB.access_robotics)
var/recharge_speed
var/repairs
- state_open = 1
+ state_open = TRUE
/obj/machinery/recharge_station/New()
..()
@@ -105,8 +105,8 @@
use_power = ACTIVE_POWER_USE
add_fingerprint(R)
break
- state_open = 0
- density = 1
+ state_open = FALSE
+ density = TRUE
update_icon()
/obj/machinery/recharge_station/update_icon()
diff --git a/code/game/machinery/recycler.dm b/code/game/machinery/recycler.dm
index 5a2cff2739..a0dd9a197c 100644
--- a/code/game/machinery/recycler.dm
+++ b/code/game/machinery/recycler.dm
@@ -6,8 +6,8 @@
icon = 'icons/obj/recycling.dmi'
icon_state = "grinder-o0"
layer = ABOVE_ALL_MOB_LAYER // Overhead
- anchored = 1
- density = 1
+ anchored = TRUE
+ density = TRUE
var/safety_mode = FALSE // Temporarily stops machine if it detects a mob
var/icon_name = "grinder-o"
var/blood = 0
diff --git a/code/game/machinery/requests_console.dm b/code/game/machinery/requests_console.dm
index 62d31d07c1..99da62141b 100644
--- a/code/game/machinery/requests_console.dm
+++ b/code/game/machinery/requests_console.dm
@@ -9,7 +9,7 @@ GLOBAL_LIST_EMPTY(allConsoles)
/obj/machinery/requests_console
name = "requests console"
desc = "A console intended to send requests to different departments on the station."
- anchored = 1
+ anchored = TRUE
icon = 'icons/obj/terminals.dmi'
icon_state = "req_comp0"
var/department = "Unknown" //The list of all departments on the station (Determined from this variable on each unit) Set this to the same thing if you want several consoles in one department
@@ -47,7 +47,7 @@ GLOBAL_LIST_EMPTY(allConsoles)
var/announcementConsole = 0
// 0 = This console cannot be used to send department announcements
// 1 = This console can send department announcements
- var/open = 0 // 1 if open
+ var/open = FALSE // 1 if open
var/announceAuth = 0 //Will be set to 1 when you authenticate yourself for announcements
var/msgVerified = "" //Will contain the name of the person who verified it
var/msgStamped = "" //If a message is stamped, this will contain the stamp name
@@ -490,10 +490,10 @@ GLOBAL_LIST_EMPTY(allConsoles)
if(istype(O, /obj/item/weapon/crowbar))
if(open)
to_chat(user, "You close the maintenance panel.")
- open = 0
+ open = FALSE
else
to_chat(user, "You open the maintenance panel.")
- open = 1
+ open = TRUE
update_icon()
return
if(istype(O, /obj/item/weapon/screwdriver))
diff --git a/code/game/machinery/robot_fabricator.dm b/code/game/machinery/robot_fabricator.dm
index 1efcf0bc67..2183ec6448 100644
--- a/code/game/machinery/robot_fabricator.dm
+++ b/code/game/machinery/robot_fabricator.dm
@@ -2,10 +2,10 @@
name = "robotic fabricator"
icon = 'icons/obj/robotics.dmi'
icon_state = "fab-idle"
- density = 1
- anchored = 1
+ density = TRUE
+ anchored = TRUE
var/metal_amount = 0
- var/operating = 0
+ var/operating = FALSE
var/obj/item/being_built = null
use_power = IDLE_POWER_USE
idle_power_usage = 20
@@ -127,7 +127,7 @@ Please wait until completion...
var/building = text2path(build_type)
if (!isnull(building))
if (src.metal_amount >= build_cost)
- src.operating = 1
+ operating = TRUE
src.use_power = ACTIVE_POWER_USE
src.metal_amount = max(0, src.metal_amount - build_cost)
@@ -142,7 +142,7 @@ Please wait until completion...
src.being_built.loc = get_turf(src)
src.being_built = null
src.use_power = IDLE_POWER_USE
- src.operating = 0
+ operating = FALSE
cut_overlay("fab-active")
return
diff --git a/code/game/machinery/shieldgen.dm b/code/game/machinery/shieldgen.dm
index 7348a6365e..e4e783435b 100644
--- a/code/game/machinery/shieldgen.dm
+++ b/code/game/machinery/shieldgen.dm
@@ -3,9 +3,9 @@
desc = "An energy shield used to contain hull breaches."
icon = 'icons/effects/effects.dmi'
icon_state = "shield-old"
- density = 1
+ density = TRUE
opacity = 0
- anchored = 1
+ anchored = TRUE
resistance_flags = LAVA_PROOF | FIRE_PROOF | UNACIDABLE | ACID_PROOF
max_integrity = 200 //The shield can only take so much beating (prevents perma-prisons)
CanAtmosPass = ATMOS_PASS_DENSITY
@@ -16,7 +16,7 @@
air_update_turf(1)
/obj/structure/emergency_shield/Destroy()
- density = 0
+ density = FALSE
air_update_turf(1)
return ..()
@@ -74,15 +74,15 @@
desc = "Used to seal minor hull breaches."
icon = 'icons/obj/objects.dmi'
icon_state = "shieldoff"
- density = 1
+ density = TRUE
opacity = 0
- anchored = 0
+ anchored = FALSE
pressure_resistance = 2*ONE_ATMOSPHERE
req_access = list(GLOB.access_engine)
max_integrity = 100
var/active = FALSE
var/list/deployed_shields
- var/locked = 0
+ var/locked = FALSE
var/shield_range = 4
/obj/machinery/shieldgen/Initialize(mapload)
@@ -176,14 +176,14 @@
if(!anchored && !isinspace())
playsound(src.loc, W.usesound, 100, 1)
to_chat(user, "You secure \the [src] to the floor!")
- anchored = 1
+ anchored = TRUE
else if(anchored)
playsound(src.loc, W.usesound, 100, 1)
to_chat(user, "You unsecure \the [src] from the floor!")
if(active)
to_chat(user, "\The [src] shuts off!")
shields_down()
- anchored = 0
+ anchored = FALSE
else if(W.GetID())
if(allowed(user))
@@ -214,8 +214,8 @@
desc = "A shield generator."
icon = 'icons/obj/stationobjs.dmi'
icon_state = "Shield_Gen"
- anchored = 0
- density = 1
+ anchored = FALSE
+ density = TRUE
req_access = list(GLOB.access_teleporter)
flags = CONDUCT
use_power = NO_POWER_USE
@@ -223,7 +223,7 @@
var/active = FALSE
var/power = 0
var/maximum_stored_power = 500
- var/locked = 1
+ var/locked = TRUE
var/shield_range = 8
var/obj/structure/cable/attached // the attached cable
@@ -386,8 +386,8 @@
desc = "An energy shield."
icon = 'icons/effects/effects.dmi'
icon_state = "shieldwall"
- anchored = 1
- density = 1
+ anchored = TRUE
+ density = TRUE
resistance_flags = INDESTRUCTIBLE | LAVA_PROOF | FIRE_PROOF | UNACIDABLE | ACID_PROOF
light_range = 3
var/needs_power = FALSE
diff --git a/code/game/machinery/slotmachine.dm b/code/game/machinery/slotmachine.dm
index 7b6abe4483..4981e51f20 100644
--- a/code/game/machinery/slotmachine.dm
+++ b/code/game/machinery/slotmachine.dm
@@ -17,8 +17,8 @@
desc = "Gambling for the antisocial."
icon = 'icons/obj/economy.dmi'
icon_state = "slots1"
- anchored = 1
- density = 1
+ anchored = TRUE
+ density = TRUE
use_power = IDLE_POWER_USE
idle_power_usage = 50
circuit = /obj/item/weapon/circuitboard/computer/slot_machine
@@ -102,7 +102,7 @@
/obj/machinery/computer/slot_machine/emag_act()
if(!emagged)
- emagged = 1
+ emagged = TRUE
var/datum/effect_system/spark_spread/spark_system = new /datum/effect_system/spark_spread()
spark_system.set_up(4, 0, src.loc)
spark_system.start()
@@ -163,7 +163,7 @@
if(prob(15 * severity))
return
if(prob(1)) // :^)
- emagged = 1
+ emagged = TRUE
var/severity_ascending = 4 - severity
money = max(rand(money - (200 * severity_ascending), money + (200 * severity_ascending)), 0)
balance = max(rand(balance - (50 * severity_ascending), balance + (50 * severity_ascending)), 0)
diff --git a/code/game/machinery/spaceheater.dm b/code/game/machinery/spaceheater.dm
index 1617b40aef..70481ad299 100644
--- a/code/game/machinery/spaceheater.dm
+++ b/code/game/machinery/spaceheater.dm
@@ -3,8 +3,8 @@
#define HEATER_MODE_COOL "cool"
/obj/machinery/space_heater
- anchored = 0
- density = 1
+ anchored = FALSE
+ density = TRUE
interact_open = TRUE
icon = 'icons/obj/atmos.dmi'
icon_state = "sheater-off"
@@ -176,7 +176,7 @@
else
return ..()
-/obj/machinery/space_heater/ui_interact(mob/user, ui_key = "main", datum/tgui/ui = null, force_open = 0, \
+/obj/machinery/space_heater/ui_interact(mob/user, ui_key = "main", datum/tgui/ui = null, force_open = FALSE, \
datum/tgui/master_ui = null, datum/ui_state/state = GLOB.physical_state)
ui = SStgui.try_update_ui(user, src, ui_key, ui, force_open)
if(!ui)
diff --git a/code/game/machinery/status_display.dm b/code/game/machinery/status_display.dm
index d55f923636..e7613bbe62 100644
--- a/code/game/machinery/status_display.dm
+++ b/code/game/machinery/status_display.dm
@@ -15,8 +15,8 @@
icon = 'icons/obj/status_display.dmi'
icon_state = "frame"
name = "status display"
- anchored = 1
- density = 0
+ anchored = TRUE
+ density = FALSE
use_power = IDLE_POWER_USE
idle_power_usage = 10
var/mode = 1 // 0 = Blank
@@ -202,8 +202,8 @@
desc = "A small screen which the AI can use to present itself."
icon_state = "frame"
name = "\improper AI display"
- anchored = 1
- density = 0
+ anchored = TRUE
+ density = FALSE
var/mode = 0 // 0 = Blank
// 1 = AI emoticon
diff --git a/code/game/machinery/suit_storage_unit.dm b/code/game/machinery/suit_storage_unit.dm
index 76315d3cde..cc43331eb8 100644
--- a/code/game/machinery/suit_storage_unit.dm
+++ b/code/game/machinery/suit_storage_unit.dm
@@ -4,8 +4,8 @@
desc = "An industrial unit made to hold space suits. It comes with a built-in UV cauterization mechanism. A small warning label advises that organic matter should not be placed into the unit."
icon = 'icons/obj/suitstorage.dmi'
icon_state = "close"
- anchored = 1
- density = 1
+ anchored = TRUE
+ density = TRUE
max_integrity = 250
var/obj/item/clothing/suit/space/suit = null
@@ -320,7 +320,7 @@
return ..()
-/obj/machinery/suit_storage_unit/ui_interact(mob/user, ui_key = "main", datum/tgui/ui = null, force_open = 0, \
+/obj/machinery/suit_storage_unit/ui_interact(mob/user, ui_key = "main", datum/tgui/ui = null, force_open = FALSE, \
datum/tgui/master_ui = null, datum/ui_state/state = GLOB.notcontained_state)
ui = SStgui.try_update_ui(user, src, ui_key, ui, force_open)
if(!ui)
diff --git a/code/game/machinery/syndicatebeacon.dm b/code/game/machinery/syndicatebeacon.dm
index 7a5f8af5bd..db53e10abf 100644
--- a/code/game/machinery/syndicatebeacon.dm
+++ b/code/game/machinery/syndicatebeacon.dm
@@ -7,8 +7,8 @@
icon = 'icons/obj/singularity.dmi'
icon_state = "beacon"
- anchored = 0
- density = 1
+ anchored = FALSE
+ density = TRUE
layer = BELOW_MOB_LAYER //so people can't hide it and it's REALLY OBVIOUS
stat = 0
verb_say = "states"
@@ -60,7 +60,7 @@
return
if(anchored)
- anchored = 0
+ anchored = FALSE
to_chat(user, "You unscrew the beacon from the floor.")
disconnect_from_network()
return
@@ -68,7 +68,7 @@
if(!connect_to_network())
to_chat(user, "This device must be placed over an exposed, powered cable node!")
return
- anchored = 1
+ anchored = TRUE
to_chat(user, "You screw the beacon to the floor and attach the cable.")
return
else
diff --git a/code/game/machinery/syndicatebomb.dm b/code/game/machinery/syndicatebomb.dm
index c40d359122..5f5d6d6e3a 100644
--- a/code/game/machinery/syndicatebomb.dm
+++ b/code/game/machinery/syndicatebomb.dm
@@ -7,8 +7,8 @@
icon_state = "syndicate-bomb"
desc = "A large and menacing device. Can be bolted down with a wrench."
- anchored = 0
- density = 0
+ anchored = FALSE
+ density = FALSE
layer = BELOW_MOB_LAYER //so people can't hide it and it's REALLY OBVIOUS
resistance_flags = FIRE_PROOF | ACID_PROOF
@@ -120,14 +120,14 @@
else
to_chat(user, "You firmly wrench the bomb to the floor.")
playsound(loc, I.usesound, 50, 1)
- anchored = 1
+ anchored = TRUE
if(active)
to_chat(user, "The bolts lock in place.")
else
if(!active)
to_chat(user, "You wrench the bomb from the floor.")
playsound(loc, I.usesound, 50, 1)
- anchored = 0
+ anchored = FALSE
else
to_chat(user, "The bolts are locked down!")
diff --git a/code/game/machinery/telecomms/machines/allinone.dm b/code/game/machinery/telecomms/machines/allinone.dm
index a4ccd07ece..8c73b96932 100644
--- a/code/game/machinery/telecomms/machines/allinone.dm
+++ b/code/game/machinery/telecomms/machines/allinone.dm
@@ -7,8 +7,8 @@
name = "telecommunications mainframe"
icon_state = "comm_server"
desc = "A compact machine used for portable subspace telecommuniations processing."
- density = 1
- anchored = 1
+ density = TRUE
+ anchored = TRUE
use_power = NO_POWER_USE
idle_power_usage = 0
machinetype = 6
diff --git a/code/game/machinery/telecomms/machines/broadcaster.dm b/code/game/machinery/telecomms/machines/broadcaster.dm
index acb6d900b5..286630a777 100644
--- a/code/game/machinery/telecomms/machines/broadcaster.dm
+++ b/code/game/machinery/telecomms/machines/broadcaster.dm
@@ -12,8 +12,8 @@ GLOBAL_VAR_INIT(message_delay, 0) // To make sure restarting the recentmessages
name = "subspace broadcaster"
icon_state = "broadcaster"
desc = "A dish-shaped machine used to broadcast processed subspace signals."
- density = 1
- anchored = 1
+ density = TRUE
+ anchored = TRUE
use_power = IDLE_POWER_USE
idle_power_usage = 25
machinetype = 5
diff --git a/code/game/machinery/telecomms/machines/bus.dm b/code/game/machinery/telecomms/machines/bus.dm
index 4b7e1aec26..fb2f06aca7 100644
--- a/code/game/machinery/telecomms/machines/bus.dm
+++ b/code/game/machinery/telecomms/machines/bus.dm
@@ -12,8 +12,8 @@
name = "bus mainframe"
icon_state = "bus"
desc = "A mighty piece of hardware used to send massive amounts of data quickly."
- density = 1
- anchored = 1
+ density = TRUE
+ anchored = TRUE
use_power = IDLE_POWER_USE
idle_power_usage = 50
machinetype = 2
diff --git a/code/game/machinery/telecomms/machines/hub.dm b/code/game/machinery/telecomms/machines/hub.dm
index 7674694ced..656eb4a522 100644
--- a/code/game/machinery/telecomms/machines/hub.dm
+++ b/code/game/machinery/telecomms/machines/hub.dm
@@ -13,8 +13,8 @@
name = "telecommunication hub"
icon_state = "hub"
desc = "A mighty piece of hardware used to send/receive massive amounts of data."
- density = 1
- anchored = 1
+ density = TRUE
+ anchored = TRUE
use_power = IDLE_POWER_USE
idle_power_usage = 80
machinetype = 7
diff --git a/code/game/machinery/telecomms/machines/processor.dm b/code/game/machinery/telecomms/machines/processor.dm
index 5d189b262a..5680c880b3 100644
--- a/code/game/machinery/telecomms/machines/processor.dm
+++ b/code/game/machinery/telecomms/machines/processor.dm
@@ -11,8 +11,8 @@
name = "processor unit"
icon_state = "processor"
desc = "This machine is used to process large quantities of information."
- density = 1
- anchored = 1
+ density = TRUE
+ anchored = TRUE
use_power = IDLE_POWER_USE
idle_power_usage = 30
machinetype = 3
diff --git a/code/game/machinery/telecomms/machines/receiver.dm b/code/game/machinery/telecomms/machines/receiver.dm
index 965445bb43..af218fd663 100644
--- a/code/game/machinery/telecomms/machines/receiver.dm
+++ b/code/game/machinery/telecomms/machines/receiver.dm
@@ -11,8 +11,8 @@
name = "subspace receiver"
icon_state = "broadcast receiver"
desc = "This machine has a dish-like shape and green lights. It is designed to detect and process subspace radio activity."
- density = 1
- anchored = 1
+ density = TRUE
+ anchored = TRUE
use_power = IDLE_POWER_USE
idle_power_usage = 30
machinetype = 1
diff --git a/code/game/machinery/telecomms/machines/relay.dm b/code/game/machinery/telecomms/machines/relay.dm
index ec4e65d0dc..5bc97d54c7 100644
--- a/code/game/machinery/telecomms/machines/relay.dm
+++ b/code/game/machinery/telecomms/machines/relay.dm
@@ -10,8 +10,8 @@
name = "telecommunication relay"
icon_state = "relay"
desc = "A mighty piece of hardware used to send massive amounts of data far away."
- density = 1
- anchored = 1
+ density = TRUE
+ anchored = TRUE
use_power = IDLE_POWER_USE
idle_power_usage = 30
machinetype = 8
@@ -82,5 +82,5 @@
/obj/machinery/telecomms/relay/preset/ruskie
id = "Ruskie Relay"
hide = 1
- toggled = 0
+ toggled = FALSE
autolinkers = list("r_relay")
diff --git a/code/game/machinery/telecomms/machines/server.dm b/code/game/machinery/telecomms/machines/server.dm
index 14f1634b98..cd8e433cea 100644
--- a/code/game/machinery/telecomms/machines/server.dm
+++ b/code/game/machinery/telecomms/machines/server.dm
@@ -11,8 +11,8 @@
name = "telecommunication server"
icon_state = "comm_server"
desc = "A machine used to store data and network statistics."
- density = 1
- anchored = 1
+ density = TRUE
+ anchored = TRUE
use_power = IDLE_POWER_USE
idle_power_usage = 15
machinetype = 4
diff --git a/code/game/machinery/telecomms/telecomunications.dm b/code/game/machinery/telecomms/telecomunications.dm
index a08046ff47..369e3e13dc 100644
--- a/code/game/machinery/telecomms/telecomunications.dm
+++ b/code/game/machinery/telecomms/telecomunications.dm
@@ -26,8 +26,8 @@ GLOBAL_LIST_EMPTY(telecomms_list)
var/list/freq_listening = list() // list of frequencies to tune into: if none, will listen to all
var/machinetype = 0 // just a hacky way of preventing alike machines from pairing
- var/toggled = 1 // Is it toggled on
- var/on = 1
+ var/toggled = TRUE // Is it toggled on
+ var/on = TRUE
var/long_range_link = 0 // Can you link it across Z levels or on the otherside of the map? (Relay & Hub)
var/hide = 0 // Is it a hidden machine?
var/listening_level = 0 // 0 = auto set in New() - this is the z level that the machine is listening to.
@@ -193,11 +193,11 @@ GLOBAL_LIST_EMPTY(telecomms_list)
if(toggled)
if(stat & (BROKEN|NOPOWER|EMPED)) // if powered, on. if not powered, off. if too damaged, off
- on = 0
+ on = FALSE
else
- on = 1
+ on = TRUE
else
- on = 0
+ on = FALSE
/obj/machinery/telecomms/process()
update_power()
diff --git a/code/game/machinery/teleporter.dm b/code/game/machinery/teleporter.dm
index f2edbeeed5..e50843c49f 100644
--- a/code/game/machinery/teleporter.dm
+++ b/code/game/machinery/teleporter.dm
@@ -219,8 +219,8 @@
/obj/machinery/teleport
name = "teleport"
icon = 'icons/obj/machines/teleporter.dmi'
- density = 1
- anchored = 1
+ density = TRUE
+ anchored = TRUE
/obj/machinery/teleport/hub
name = "teleporter hub"
diff --git a/code/game/machinery/transformer.dm b/code/game/machinery/transformer.dm
index e9d57dcb29..b4b093eeb1 100644
--- a/code/game/machinery/transformer.dm
+++ b/code/game/machinery/transformer.dm
@@ -6,8 +6,8 @@
icon = 'icons/obj/recycling.dmi'
icon_state = "separator-AO1"
layer = ABOVE_ALL_MOB_LAYER // Overhead
- anchored = 1
- density = 0
+ anchored = TRUE
+ density = FALSE
var/transform_dead = 0
var/transform_standing = 0
var/cooldown_duration = 600 // 1 minute
diff --git a/code/game/machinery/vending.dm b/code/game/machinery/vending.dm
index 923098427a..a247f1e209 100644
--- a/code/game/machinery/vending.dm
+++ b/code/game/machinery/vending.dm
@@ -16,8 +16,8 @@
icon = 'icons/obj/vending.dmi'
icon_state = "generic"
layer = BELOW_OBJ_LAYER
- anchored = 1
- density = 1
+ anchored = TRUE
+ density = TRUE
verb_say = "beeps"
verb_ask = "beeps"
verb_exclaim = "beeps"
@@ -931,7 +931,7 @@ IF YOU MODIFY THE PRODUCTS LIST OF A MACHINE, MAKE SURE TO UPDATE ITS RESUPPLY C
desc = "Wall-mounted Medical Equipment dispenser."
icon_state = "wallmed"
icon_deny = "wallmed-deny"
- density = 0
+ density = FALSE
products = list(/obj/item/weapon/reagent_containers/syringe = 3,/obj/item/weapon/reagent_containers/pill/patch/styptic = 5,
/obj/item/weapon/reagent_containers/pill/patch/silver_sulf = 5,/obj/item/weapon/reagent_containers/pill/charcoal = 2,
/obj/item/weapon/reagent_containers/spray/medical/sterilizer = 1)
diff --git a/code/game/machinery/washing_machine.dm b/code/game/machinery/washing_machine.dm
index 40b973c596..2077c093d7 100644
--- a/code/game/machinery/washing_machine.dm
+++ b/code/game/machinery/washing_machine.dm
@@ -3,10 +3,10 @@
desc = "Gets rid of those pesky bloodstains, or your money back!"
icon = 'icons/obj/machines/washing_machine.dmi'
icon_state = "wm_1_0"
- density = 1
- anchored = 1
- state_open = 1
- var/busy = 0
+ density = TRUE
+ anchored = TRUE
+ state_open = TRUE
+ var/busy = FALSE
var/bloody_mess = 0
var/has_corgi = 0
var/obj/item/color_source
@@ -34,7 +34,7 @@
if(has_corgi)
bloody_mess = 1
- busy = 1
+ busy = TRUE
update_icon()
sleep(200)
wash_cycle()
@@ -52,7 +52,7 @@
AM.clean_blood()
AM.machine_wash(src)
- busy = 0
+ busy = FALSE
if(color_source)
qdel(color_source)
color_source = null
@@ -237,7 +237,7 @@
if(!state_open)
open_machine()
else
- state_open = 0 //close the door
+ state_open = FALSE //close the door
update_icon()
/obj/machinery/washing_machine/deconstruct(disassembled = TRUE)
@@ -246,6 +246,6 @@
/obj/machinery/washing_machine/open_machine(drop = 1)
..()
- density = 1 //because machinery/open_machine() sets it to 0
+ density = TRUE //because machinery/open_machine() sets it to 0
color_source = null
has_corgi = 0
diff --git a/code/game/machinery/wishgranter.dm b/code/game/machinery/wishgranter.dm
index 449b532402..fdb481401e 100644
--- a/code/game/machinery/wishgranter.dm
+++ b/code/game/machinery/wishgranter.dm
@@ -5,8 +5,8 @@
icon_state = "syndbeacon"
use_power = NO_POWER_USE
- anchored = 1
- density = 1
+ anchored = TRUE
+ density = TRUE
var/charges = 1
var/insisting = 0
diff --git a/code/game/mecha/equipment/tools/work_tools.dm b/code/game/mecha/equipment/tools/work_tools.dm
index 73863315dd..b82f02353c 100644
--- a/code/game/mecha/equipment/tools/work_tools.dm
+++ b/code/game/mecha/equipment/tools/work_tools.dm
@@ -36,11 +36,11 @@
if(!O.anchored)
if(cargo_holder.cargo.len < cargo_holder.cargo_capacity)
chassis.visible_message("[chassis] lifts [target] and starts to load it into cargo compartment.")
- O.anchored = 1
+ O.anchored = TRUE
if(do_after_cooldown(target))
cargo_holder.cargo += O
O.loc = chassis
- O.anchored = 0
+ O.anchored = FALSE
occupant_message("[target] successfully loaded.")
log_message("Loaded [O]. Cargo compartment capacity: [cargo_holder.cargo_capacity - cargo_holder.cargo.len]")
else
@@ -87,11 +87,11 @@
if(!O.anchored)
if(cargo_holder.cargo.len < cargo_holder.cargo_capacity)
chassis.visible_message("[chassis] lifts [target] and starts to load it into cargo compartment.")
- O.anchored = 1
+ O.anchored = TRUE
if(do_after_cooldown(target))
cargo_holder.cargo += O
O.loc = chassis
- O.anchored = 0
+ O.anchored = FALSE
occupant_message("[target] successfully loaded.")
log_message("Loaded [O]. Cargo compartment capacity: [cargo_holder.cargo_capacity - cargo_holder.cargo.len]")
else
@@ -259,7 +259,7 @@
if(do_after_cooldown(target))
chassis.spark_system.start()
var/obj/machinery/door/airlock/T = new /obj/machinery/door/airlock(target)
- T.autoclose = 1
+ T.autoclose = TRUE
playsound(target, 'sound/items/deconstruct.ogg', 50, 1)
playsound(target, 'sound/effects/sparks2.ogg', 50, 1)
diff --git a/code/game/mecha/mech_bay.dm b/code/game/mecha/mech_bay.dm
index bf75c03a21..11b5a075fc 100644
--- a/code/game/mecha/mech_bay.dm
+++ b/code/game/mecha/mech_bay.dm
@@ -12,15 +12,15 @@
/obj/machinery/mech_bay_recharge_port
name = "mech bay power port"
- density = 1
- anchored = 1
+ density = TRUE
+ anchored = TRUE
dir = EAST
icon = 'icons/mecha/mech_bay.dmi'
icon_state = "recharge_port"
var/obj/mecha/recharging_mech
var/obj/machinery/computer/mech_bay_power_console/recharge_console
var/max_charge = 50
- var/on = 0
+ var/on = FALSE
var/repairability = 0
var/turf/recharging_turf = null
@@ -95,7 +95,7 @@
return
interact(user)
-/obj/machinery/computer/mech_bay_power_console/ui_interact(mob/user, ui_key = "main", datum/tgui/ui = null, force_open = 0, datum/tgui/master_ui = null, datum/ui_state/state = GLOB.default_state)
+/obj/machinery/computer/mech_bay_power_console/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)
ui = SStgui.try_update_ui(user, src, ui_key, ui, force_open)
if(!ui)
ui = new(user, src, ui_key, "mech_bay_power_console", "Mech Bay Power Control Console", 400, 170, master_ui, state)
diff --git a/code/game/mecha/mech_fabricator.dm b/code/game/mecha/mech_fabricator.dm
index 6e1f66a237..f7b0e9b877 100644
--- a/code/game/mecha/mech_fabricator.dm
+++ b/code/game/mecha/mech_fabricator.dm
@@ -3,8 +3,8 @@
icon_state = "fab-idle"
name = "exosuit fabricator"
desc = "Nothing is being built."
- density = 1
- anchored = 1
+ density = TRUE
+ anchored = TRUE
use_power = IDLE_POWER_USE
idle_power_usage = 20
active_power_usage = 5000
@@ -87,7 +87,7 @@
if(emagged)
return
- emagged = 0.5
+ emagged = FALSE
say("DB error \[Code 0x00F1\]")
sleep(10)
say("Attempting auto-repair...")
@@ -96,7 +96,7 @@
sleep(30)
say("User DB truncated. Please contact your Nanotrasen system operator for future assistance.")
req_access = null
- emagged = 1
+ emagged = TRUE
/obj/machinery/mecha_part_fabricator/proc/output_parts_list(set_name)
var/output = ""
diff --git a/code/game/mecha/mecha.dm b/code/game/mecha/mecha.dm
index 92b2c22656..7f2f41313c 100644
--- a/code/game/mecha/mecha.dm
+++ b/code/game/mecha/mecha.dm
@@ -16,9 +16,9 @@
name = "mecha"
desc = "Exosuit"
icon = 'icons/mecha/mecha.dmi'
- density = 1 //Dense. To raise the heat.
+ density = TRUE //Dense. To raise the heat.
opacity = 1 ///opaque. Menacing.
- anchored = 1 //no pulling around.
+ anchored = TRUE //no pulling around.
resistance_flags = FIRE_PROOF | ACID_PROOF
layer = BELOW_MOB_LAYER//icon draw layer
infra_luminosity = 15 //byond implementation is bugged.
@@ -43,7 +43,7 @@
var/dna_lock//dna-locking the mech
var/list/proc_res = list() //stores proc owners, like proc_res["functionname"] = owner reference
var/datum/effect_system/spark_spread/spark_system = new
- var/lights = 0
+ var/lights = FALSE
var/lights_power = 6
var/last_user_hud = 1 // used to show/hide the mecha hud while preserving previous preference
diff --git a/code/game/mecha/mecha_construction_paths.dm b/code/game/mecha/mecha_construction_paths.dm
index 3cc5788bd8..55c18688a1 100644
--- a/code/game/mecha/mecha_construction_paths.dm
+++ b/code/game/mecha/mecha_construction_paths.dm
@@ -95,7 +95,7 @@
const_holder.construct = new /datum/construction/reversible/mecha/ripley(const_holder)
const_holder.icon = 'icons/mecha/mech_construction.dmi'
const_holder.icon_state = "ripley0"
- const_holder.density = 1
+ const_holder.density = TRUE
const_holder.cut_overlays(TRUE)
qdel(src)
return
@@ -305,7 +305,7 @@
const_holder.construct = new /datum/construction/reversible/mecha/gygax(const_holder)
const_holder.icon = 'icons/mecha/mech_construction.dmi'
const_holder.icon_state = "gygax0"
- const_holder.density = 1
+ const_holder.density = TRUE
qdel(src)
return
@@ -590,7 +590,7 @@
const_holder.construct = new /datum/construction/reversible/mecha/firefighter(const_holder)
const_holder.icon = 'icons/mecha/mech_construction.dmi'
const_holder.icon_state = "fireripley0"
- const_holder.density = 1
+ const_holder.density = TRUE
qdel(src)
return
@@ -812,7 +812,7 @@
/datum/construction/mecha/honker_chassis/spawn_result()
var/obj/item/mecha_parts/chassis/const_holder = holder
const_holder.construct = new /datum/construction/mecha/honker(const_holder)
- const_holder.density = 1
+ const_holder.density = TRUE
qdel(src)
return
@@ -890,7 +890,7 @@
const_holder.construct = new /datum/construction/reversible/mecha/durand(const_holder)
const_holder.icon = 'icons/mecha/mech_construction.dmi'
const_holder.icon_state = "durand0"
- const_holder.density = 1
+ const_holder.density = TRUE
del src
return
@@ -1178,7 +1178,7 @@
const_holder.construct = new /datum/construction/reversible/mecha/phazon(const_holder)
const_holder.icon = 'icons/mecha/mech_construction.dmi'
const_holder.icon_state = "phazon0"
- const_holder.density = 1
+ const_holder.density = TRUE
del src
return
@@ -1509,7 +1509,7 @@
const_holder.construct = new /datum/construction/reversible/mecha/odysseus(const_holder)
const_holder.icon = 'icons/mecha/mech_construction.dmi'
const_holder.icon_state = "odysseus0"
- const_holder.density = 1
+ const_holder.density = TRUE
del src
return
diff --git a/code/game/mecha/mecha_wreckage.dm b/code/game/mecha/mecha_wreckage.dm
index 950f6eaafb..34ac8fa93e 100644
--- a/code/game/mecha/mecha_wreckage.dm
+++ b/code/game/mecha/mecha_wreckage.dm
@@ -7,8 +7,8 @@
name = "exosuit wreckage"
desc = "Remains of some unfortunate mecha. Completely unrepairable, but perhaps something can be salvaged."
icon = 'icons/mecha/mecha.dmi'
- density = 1
- anchored = 0
+ density = TRUE
+ anchored = FALSE
opacity = 0
var/list/welder_salvage = list(/obj/item/stack/sheet/plasteel,/obj/item/stack/sheet/metal,/obj/item/stack/rods)
var/list/wirecutters_salvage = list(/obj/item/stack/cable_coil)
diff --git a/code/game/objects/effects/alien_acid.dm b/code/game/objects/effects/alien_acid.dm
index 06c3b37a93..0ab2c309cc 100644
--- a/code/game/objects/effects/alien_acid.dm
+++ b/code/game/objects/effects/alien_acid.dm
@@ -12,9 +12,9 @@
name = "acid"
desc = "Burbling corrossive stuff."
icon_state = "acid"
- density = 0
+ density = FALSE
opacity = 0
- anchored = 1
+ anchored = TRUE
resistance_flags = FIRE_PROOF | UNACIDABLE | ACID_PROOF
layer = ABOVE_NORMAL_TURF_LAYER
var/turf/target
diff --git a/code/game/objects/effects/anomalies.dm b/code/game/objects/effects/anomalies.dm
index 7beffc4a54..18fe979342 100644
--- a/code/game/objects/effects/anomalies.dm
+++ b/code/game/objects/effects/anomalies.dm
@@ -4,8 +4,8 @@
name = "anomaly"
desc = "A mysterious anomaly, seen commonly only in the region of space that the station orbits..."
icon_state = "bhole3"
- density = 0
- anchored = 1
+ density = FALSE
+ anchored = TRUE
light_range = 3
var/movechance = 70
var/obj/item/device/assembly/signaler/anomaly/aSignal = null
@@ -81,7 +81,7 @@
/obj/effect/anomaly/grav
name = "gravitational anomaly"
icon_state = "shield2"
- density = 0
+ density = FALSE
var/boing = 0
/obj/effect/anomaly/grav/New()
@@ -125,7 +125,7 @@
/obj/effect/anomaly/flux
name = "flux wave anomaly"
icon_state = "electricity2"
- density = 1
+ density = TRUE
var/canshock = 0
var/shockdamage = 20
var/explosive = TRUE
@@ -177,7 +177,7 @@
name = "bluespace anomaly"
icon = 'icons/obj/projectiles.dmi'
icon_state = "bluespace"
- density = 1
+ density = TRUE
/obj/effect/anomaly/bluespace/New()
..()
diff --git a/code/game/objects/effects/bump_teleporter.dm b/code/game/objects/effects/bump_teleporter.dm
index c249356239..308419d6ea 100644
--- a/code/game/objects/effects/bump_teleporter.dm
+++ b/code/game/objects/effects/bump_teleporter.dm
@@ -5,8 +5,8 @@
var/id = null //id of this bump_teleporter.
var/id_target = null //id of bump_teleporter which this moves you to.
invisibility = INVISIBILITY_ABSTRACT //nope, can't see this
- anchored = 1
- density = 1
+ anchored = TRUE
+ density = TRUE
opacity = 0
var/static/list/AllTeleporters
diff --git a/code/game/objects/effects/contraband.dm b/code/game/objects/effects/contraband.dm
index 2ee81b0422..1392159cea 100644
--- a/code/game/objects/effects/contraband.dm
+++ b/code/game/objects/effects/contraband.dm
@@ -49,7 +49,7 @@
var/original_name
desc = "A large piece of space-resistant printed paper."
icon = 'icons/obj/contraband.dmi'
- anchored = 1
+ anchored = TRUE
var/ruined = FALSE
var/random_basetype
var/never_random = FALSE // used for the 'random' subclasses.
diff --git a/code/game/objects/effects/decals/decal.dm b/code/game/objects/effects/decals/decal.dm
index b98965d680..18b0a2f548 100644
--- a/code/game/objects/effects/decals/decal.dm
+++ b/code/game/objects/effects/decals/decal.dm
@@ -1,6 +1,6 @@
/obj/effect/decal
name = "decal"
- anchored = 1
+ anchored = TRUE
resistance_flags = FIRE_PROOF | UNACIDABLE | ACID_PROOF
/obj/effect/decal/ex_act(severity, target)
@@ -19,7 +19,7 @@
var/group = TURF_DECAL_PAINT
icon = 'icons/turf/decals.dmi'
icon_state = "warningline"
- anchored = 1
+ anchored = TRUE
//in case we need some special decals
/obj/effect/turf_decal/proc/get_decal()
diff --git a/code/game/objects/effects/decals/misc.dm b/code/game/objects/effects/decals/misc.dm
index 829ed6f6f5..896b0691fd 100644
--- a/code/game/objects/effects/decals/misc.dm
+++ b/code/game/objects/effects/decals/misc.dm
@@ -31,4 +31,4 @@
desc = "A lightweight support lattice."
icon = 'icons/obj/smooth_structures/lattice.dmi'
icon_state = "lattice"
- density = 1
+ density = TRUE
diff --git a/code/game/objects/effects/effect_system/effects_explosion.dm b/code/game/objects/effects/effect_system/effects_explosion.dm
index bd9a54880d..24674e96a6 100644
--- a/code/game/objects/effects/effect_system/effects_explosion.dm
+++ b/code/game/objects/effects/effect_system/effects_explosion.dm
@@ -2,7 +2,7 @@
name = "fire"
icon_state = "explosion_particle"
opacity = 1
- anchored = 1
+ anchored = TRUE
/obj/effect/particle_effect/expl_particles/New()
..()
@@ -26,7 +26,7 @@
icon = 'icons/effects/96x96.dmi'
icon_state = "explosion"
opacity = 1
- anchored = 1
+ anchored = TRUE
mouse_opacity = 0
pixel_x = -32
pixel_y = -32
diff --git a/code/game/objects/effects/effect_system/effects_foam.dm b/code/game/objects/effects/effect_system/effects_foam.dm
index 9eac6d5dea..0cf6d8c0d9 100644
--- a/code/game/objects/effects/effect_system/effects_foam.dm
+++ b/code/game/objects/effects/effect_system/effects_foam.dm
@@ -9,8 +9,8 @@
name = "foam"
icon_state = "foam"
opacity = 0
- anchored = 1
- density = 0
+ anchored = TRUE
+ density = FALSE
layer = WALL_OBJ_LAYER
mouse_opacity = 0
var/amount = 3
@@ -194,9 +194,9 @@
/obj/structure/foamedmetal
icon = 'icons/effects/effects.dmi'
icon_state = "metalfoam"
- density = 1
+ density = TRUE
opacity = 1 // changed in New()
- anchored = 1
+ anchored = TRUE
resistance_flags = FIRE_PROOF | ACID_PROOF
name = "foamed metal"
desc = "A lightweight foamed metal wall."
@@ -210,7 +210,7 @@
/obj/structure/foamedmetal/Destroy()
- density = 0
+ density = FALSE
air_update_turf(1)
return ..()
diff --git a/code/game/objects/effects/effect_system/effects_other.dm b/code/game/objects/effects/effect_system/effects_other.dm
index 0a81374435..99b9461689 100644
--- a/code/game/objects/effects/effect_system/effects_other.dm
+++ b/code/game/objects/effects/effect_system/effects_other.dm
@@ -8,8 +8,8 @@
/datum/effect_system/trail_follow
var/turf/oldposition
- var/processing = 1
- var/on = 1
+ var/processing = TRUE
+ var/on = TRUE
/datum/effect_system/trail_follow/set_up(atom/atom)
attach(atom)
@@ -20,8 +20,8 @@
return ..()
/datum/effect_system/trail_follow/proc/stop()
- processing = 0
- on = 0
+ processing = FALSE
+ on = FALSE
oldposition = null
/datum/effect_system/trail_follow/steam
@@ -29,12 +29,12 @@
/datum/effect_system/trail_follow/steam/start()
if(!on)
- on = 1
- processing = 1
+ on = TRUE
+ processing = TRUE
if(!oldposition)
oldposition = get_turf(holder)
if(processing)
- processing = 0
+ processing = FALSE
if(number < 3)
var/obj/effect/particle_effect/steam/I = new /obj/effect/particle_effect/steam(oldposition)
number++
@@ -45,13 +45,13 @@
number--
spawn(2)
if(on)
- processing = 1
+ processing = TRUE
start()
/obj/effect/particle_effect/ion_trails
name = "ion trails"
icon_state = "ion_trails"
- anchored = 1
+ anchored = TRUE
/obj/effect/particle_effect/ion_trails/flight
icon_state = "ion_trails_flight"
@@ -64,12 +64,12 @@
/datum/effect_system/trail_follow/ion/start() //Whoever is responsible for this abomination of code should become an hero
if(!on)
- on = 1
- processing = 1
+ on = TRUE
+ processing = TRUE
if(!oldposition)
oldposition = get_turf(holder)
if(processing)
- processing = 0
+ processing = FALSE
var/turf/T = get_turf(holder)
if(T != oldposition)
if(!T.has_gravity() || !nograv_required)
@@ -83,7 +83,7 @@
oldposition = T
spawn(2)
if(on)
- processing = 1
+ processing = TRUE
start()
/datum/effect_system/trail_follow/ion/proc/set_dir(obj/effect/particle_effect/ion_trails/I)
diff --git a/code/game/objects/effects/effect_system/effects_smoke.dm b/code/game/objects/effects/effect_system/effects_smoke.dm
index 81c8292580..abcd5d9059 100644
--- a/code/game/objects/effects/effect_system/effects_smoke.dm
+++ b/code/game/objects/effects/effect_system/effects_smoke.dm
@@ -10,7 +10,7 @@
pixel_y = -32
opacity = 0
layer = FLY_LAYER
- anchored = 1
+ anchored = TRUE
mouse_opacity = 0
animate_movement = 0
var/amount = 4
@@ -176,7 +176,7 @@
G.garbage_collect()
for(var/obj/machinery/atmospherics/components/unary/U in T)
if(!isnull(U.welded) && !U.welded) //must be an unwelded vent pump or vent scrubber.
- U.welded = 1
+ U.welded = TRUE
U.update_icon()
U.visible_message("[U] was frozen shut!")
for(var/mob/living/L in T)
diff --git a/code/game/objects/effects/effect_system/effects_sparks.dm b/code/game/objects/effects/effect_system/effects_sparks.dm
index 997c7af124..b552ee0808 100644
--- a/code/game/objects/effects/effect_system/effects_sparks.dm
+++ b/code/game/objects/effects/effect_system/effects_sparks.dm
@@ -19,7 +19,7 @@
/obj/effect/particle_effect/sparks
name = "sparks"
icon_state = "sparks"
- anchored = 1
+ anchored = TRUE
light_range = 1
/obj/effect/particle_effect/sparks/New()
diff --git a/code/game/objects/effects/effect_system/effects_water.dm b/code/game/objects/effects/effect_system/effects_water.dm
index 0cd476e001..f6b374718a 100644
--- a/code/game/objects/effects/effect_system/effects_water.dm
+++ b/code/game/objects/effects/effect_system/effects_water.dm
@@ -43,7 +43,7 @@ steam.start() -- spawns the effect
/obj/effect/particle_effect/steam
name = "steam"
icon_state = "extinguish"
- density = 0
+ density = FALSE
/obj/effect/particle_effect/steam/New()
..()
diff --git a/code/game/objects/effects/forcefields.dm b/code/game/objects/effects/forcefields.dm
index c816e86911..024fb4b4ea 100644
--- a/code/game/objects/effects/forcefields.dm
+++ b/code/game/objects/effects/forcefields.dm
@@ -2,9 +2,9 @@
desc = "A space wizard's magic wall."
name = "FORCEWALL"
icon_state = "m_shield"
- anchored = 1
+ anchored = TRUE
opacity = 0
- density = 1
+ density = TRUE
CanAtmosPass = ATMOS_PASS_DENSITY
/obj/effect/forcefield/cult
diff --git a/code/game/objects/effects/glowshroom.dm b/code/game/objects/effects/glowshroom.dm
index ef6ddf31cb..1146b5ff09 100644
--- a/code/game/objects/effects/glowshroom.dm
+++ b/code/game/objects/effects/glowshroom.dm
@@ -3,9 +3,9 @@
/obj/structure/glowshroom
name = "glowshroom"
desc = "Mycena Bregprox, a species of mushroom that glows in the dark."
- anchored = 1
+ anchored = TRUE
opacity = 0
- density = 0
+ density = FALSE
icon = 'icons/obj/lighting.dmi'
icon_state = "glowshroom" //replaced in New
layer = ABOVE_NORMAL_TURF_LAYER
diff --git a/code/game/objects/effects/landmarks.dm b/code/game/objects/effects/landmarks.dm
index 2c701ee274..e0cec3af02 100644
--- a/code/game/objects/effects/landmarks.dm
+++ b/code/game/objects/effects/landmarks.dm
@@ -2,7 +2,7 @@
name = "landmark"
icon = 'icons/mob/screen_gen.dmi'
icon_state = "x2"
- anchored = 1
+ anchored = TRUE
invisibility = INVISIBILITY_ABSTRACT
/obj/effect/landmark/New()
@@ -18,7 +18,7 @@
name = "start"
icon = 'icons/mob/screen_gen.dmi'
icon_state = "x"
- anchored = 1
+ anchored = TRUE
/obj/effect/landmark/start/New()
GLOB.start_landmarks_list += src
diff --git a/code/game/objects/effects/mines.dm b/code/game/objects/effects/mines.dm
index 1ae2cf07ec..c9b524836f 100644
--- a/code/game/objects/effects/mines.dm
+++ b/code/game/objects/effects/mines.dm
@@ -1,8 +1,8 @@
/obj/effect/mine
name = "dummy mine"
desc = "Better stay away from that thing."
- density = 0
- anchored = 1
+ density = FALSE
+ anchored = TRUE
icon = 'icons/obj/weapons.dmi'
icon_state = "uglymine"
var/triggered = 0
@@ -95,7 +95,7 @@
desc = "pick me up"
icon = 'icons/effects/effects.dmi'
icon_state = "electricity2"
- density = 0
+ density = FALSE
var/duration = 0
/obj/effect/mine/pickup/New()
diff --git a/code/game/objects/effects/misc.dm b/code/game/objects/effects/misc.dm
index 29ea86daa9..448f3cf815 100644
--- a/code/game/objects/effects/misc.dm
+++ b/code/game/objects/effects/misc.dm
@@ -4,8 +4,8 @@
desc = "It's a ... present?"
icon = 'icons/obj/items.dmi'
icon_state = "strangepresent"
- density = 1
- anchored = 0
+ density = TRUE
+ anchored = FALSE
/obj/effect/beam
name = "beam"
diff --git a/code/game/objects/effects/overlays.dm b/code/game/objects/effects/overlays.dm
index 9d9694b076..811fed84ca 100644
--- a/code/game/objects/effects/overlays.dm
+++ b/code/game/objects/effects/overlays.dm
@@ -22,17 +22,17 @@
name = "Palm tree"
icon = 'icons/misc/beach2.dmi'
icon_state = "palm1"
- density = 1
+ density = TRUE
layer = WALL_OBJ_LAYER
- anchored = 1
+ anchored = TRUE
/obj/effect/overlay/palmtree_l
name = "Palm tree"
icon = 'icons/misc/beach2.dmi'
icon_state = "palm2"
- density = 1
+ density = TRUE
layer = WALL_OBJ_LAYER
- anchored = 1
+ anchored = TRUE
/obj/effect/overlay/coconut
name = "Coconuts"
diff --git a/code/game/objects/effects/spiders.dm b/code/game/objects/effects/spiders.dm
index 798e6ee113..094492b3be 100644
--- a/code/game/objects/effects/spiders.dm
+++ b/code/game/objects/effects/spiders.dm
@@ -3,8 +3,8 @@
name = "web"
icon = 'icons/effects/effects.dmi'
desc = "it's stringy and sticky"
- anchored = 1
- density = 0
+ anchored = TRUE
+ density = FALSE
max_integrity = 15
@@ -80,7 +80,7 @@
name = "spiderling"
desc = "It never stays still for long."
icon_state = "spiderling"
- anchored = 0
+ anchored = FALSE
layer = PROJECTILE_HIT_THRESHHOLD_LAYER
max_integrity = 3
var/amount_grown = 0
diff --git a/code/game/objects/effects/step_triggers.dm b/code/game/objects/effects/step_triggers.dm
index 87bde5ce98..93faacbf68 100644
--- a/code/game/objects/effects/step_triggers.dm
+++ b/code/game/objects/effects/step_triggers.dm
@@ -5,7 +5,7 @@
var/stopper = 1 // stops throwers
var/mobs_only = FALSE
invisibility = INVISIBILITY_ABSTRACT // nope cant see this shit
- anchored = 1
+ anchored = TRUE
/obj/effect/step_trigger/proc/Trigger(atom/movable/A)
return 0
diff --git a/code/game/objects/effects/temporary_visuals/temporary_visual.dm b/code/game/objects/effects/temporary_visuals/temporary_visual.dm
index 63e2b33d36..1eb427cfb6 100644
--- a/code/game/objects/effects/temporary_visuals/temporary_visual.dm
+++ b/code/game/objects/effects/temporary_visuals/temporary_visual.dm
@@ -1,7 +1,7 @@
//temporary visual effects
/obj/effect/temp_visual
icon_state = "nothing"
- anchored = 1
+ anchored = TRUE
layer = ABOVE_MOB_LAYER
mouse_opacity = 0
var/duration = 10 //in deciseconds
diff --git a/code/game/objects/items.dm b/code/game/objects/items.dm
index d31f14d4f3..5161386474 100644
--- a/code/game/objects/items.dm
+++ b/code/game/objects/items.dm
@@ -68,7 +68,7 @@ GLOBAL_VAR_INIT(rpg_loot_items, FALSE)
var/list/attack_verb //Used in attackby() to say how something was attacked "[x] has been [z.attack_verb] by [y] with [z]"
var/list/species_exception = null // list() of species types, if a species cannot put items in a certain slot, but species type is in list, it will be able to wear that item
- var/suittoggled = 0
+ var/suittoggled = FALSE
var/hooded = 0
var/mob/thrownby = null
diff --git a/code/game/objects/items/control_wand.dm b/code/game/objects/items/control_wand.dm
index 6d13c6a848..ec1441ad53 100644
--- a/code/game/objects/items/control_wand.dm
+++ b/code/game/objects/items/control_wand.dm
@@ -51,9 +51,9 @@
D.bolt()
if(WAND_EMERGENCY)
if(D.emergency)
- D.emergency = 0
+ D.emergency = FALSE
else
- D.emergency = 1
+ D.emergency = TRUE
D.update_icon()
else
to_chat(user, "[src] does not have access to this door.")
diff --git a/code/game/objects/items/crayons.dm b/code/game/objects/items/crayons.dm
index ecc36c0c2d..dbdd6779ea 100644
--- a/code/game/objects/items/crayons.dm
+++ b/code/game/objects/items/crayons.dm
@@ -138,7 +138,7 @@
qdel(src)
. = TRUE
-/obj/item/toy/crayon/ui_interact(mob/user, ui_key = "main", datum/tgui/ui = null, force_open = 0, datum/tgui/master_ui = null, datum/ui_state/state = GLOB.hands_state)
+/obj/item/toy/crayon/ui_interact(mob/user, ui_key = "main", datum/tgui/ui = null, force_open = FALSE, datum/tgui/master_ui = null, datum/ui_state/state = GLOB.hands_state)
// tgui is a plague upon this codebase
SStgui.try_update_ui(user, src, ui_key, ui, force_open)
diff --git a/code/game/objects/items/devices/PDA/radio.dm b/code/game/objects/items/devices/PDA/radio.dm
index a3e6a95427..d1f6cff85d 100644
--- a/code/game/objects/items/devices/PDA/radio.dm
+++ b/code/game/objects/items/devices/PDA/radio.dm
@@ -4,7 +4,7 @@
icon = 'icons/obj/module.dmi'
icon_state = "power_mod"
- var/on = 0 //Are we currently active??
+ var/on = FALSE //Are we currently active??
var/menu_message = ""
/obj/item/radio/integrated/Initialize()
diff --git a/code/game/objects/items/devices/aicard.dm b/code/game/objects/items/devices/aicard.dm
index 5c8dd2fe80..f87faa8528 100644
--- a/code/game/objects/items/devices/aicard.dm
+++ b/code/game/objects/items/devices/aicard.dm
@@ -37,7 +37,7 @@
name = initial(name)
icon_state = initial(icon_state)
-/obj/item/device/aicard/ui_interact(mob/user, ui_key = "main", datum/tgui/ui = null, force_open = 0, \
+/obj/item/device/aicard/ui_interact(mob/user, ui_key = "main", datum/tgui/ui = null, force_open = FALSE, \
datum/tgui/master_ui = null, datum/ui_state/state = GLOB.hands_state)
ui = SStgui.try_update_ui(user, src, ui_key, ui, force_open)
if(!ui)
diff --git a/code/game/objects/items/devices/chameleonproj.dm b/code/game/objects/items/devices/chameleonproj.dm
index 6521a71f44..9595d72d72 100644
--- a/code/game/objects/items/devices/chameleonproj.dm
+++ b/code/game/objects/items/devices/chameleonproj.dm
@@ -89,7 +89,7 @@
/obj/effect/dummy/chameleon
name = ""
desc = ""
- density = 0
+ density = FALSE
var/can_move = 0
var/obj/item/device/chameleon/master = null
diff --git a/code/game/objects/items/devices/flashlight.dm b/code/game/objects/items/devices/flashlight.dm
index 0f897d7f0e..dc075effae 100644
--- a/code/game/objects/items/devices/flashlight.dm
+++ b/code/game/objects/items/devices/flashlight.dm
@@ -9,7 +9,7 @@
slot_flags = SLOT_BELT
materials = list(MAT_METAL=50, MAT_GLASS=20)
actions_types = list(/datum/action/item_action/toggle_light)
- var/on = 0
+ var/on = FALSE
var/brightness_on = 4 //range of light when on
var/flashlight_power = 1 //strength of the light when on
@@ -208,7 +208,7 @@
w_class = WEIGHT_CLASS_BULKY
flags = CONDUCT
materials = list()
- on = 1
+ on = TRUE
// green-shaded desk lamp
@@ -271,7 +271,7 @@
. = ""
/obj/item/device/flashlight/flare/proc/turn_off()
- on = 0
+ on = FALSE
force = initial(src.force)
damtype = initial(src.damtype)
if(ismob(loc))
@@ -415,7 +415,7 @@
update_icon()
/obj/item/device/flashlight/glowstick/proc/turn_off()
- on = 0
+ on = FALSE
update_icon()
/obj/item/device/flashlight/glowstick/update_icon()
diff --git a/code/game/objects/items/devices/geiger_counter.dm b/code/game/objects/items/devices/geiger_counter.dm
index c07bb012a0..0691f2d822 100644
--- a/code/game/objects/items/devices/geiger_counter.dm
+++ b/code/game/objects/items/devices/geiger_counter.dm
@@ -14,7 +14,7 @@
materials = list(MAT_METAL = 150, MAT_GLASS = 150)
var/scanning = 0
var/radiation_count = 0
- var/emagged = 0
+ var/emagged = FALSE
/obj/item/device/geiger_counter/New()
..()
@@ -126,7 +126,7 @@
return 0
user.visible_message("[user] refastens [src]'s maintenance panel!", "You reset [src] to its factory settings!")
playsound(user, 'sound/items/screwdriver2.ogg', 50, 1)
- emagged = 0
+ emagged = FALSE
radiation_count = 0
update_icon()
return 1
@@ -149,7 +149,7 @@
to_chat(user, "Turn off [src] before you perform this action!")
return 0
to_chat(user, "You override [src]'s radiation storing protocols. It will now generate small doses of radiation, and stored rads are now projected into creatures you scan.")
- emagged = 1
+ emagged = TRUE
#undef RAD_LEVEL_NORMAL
#undef RAD_LEVEL_MODERATE
diff --git a/code/game/objects/items/devices/gps.dm b/code/game/objects/items/devices/gps.dm
index f54bd72af0..5eee70d83e 100644
--- a/code/game/objects/items/devices/gps.dm
+++ b/code/game/objects/items/devices/gps.dm
@@ -57,7 +57,7 @@ GLOBAL_LIST_EMPTY(GPS_list)
tracking = TRUE
-/obj/item/device/gps/ui_interact(mob/user, ui_key = "gps", datum/tgui/ui = null, force_open = 0, datum/tgui/master_ui = null, datum/ui_state/state = GLOB.default_state) // Remember to use the appropriate state.
+/obj/item/device/gps/ui_interact(mob/user, ui_key = "gps", datum/tgui/ui = null, force_open = FALSE, datum/tgui/master_ui = null, datum/ui_state/state = GLOB.default_state) // Remember to use the appropriate state.
if(emped)
to_chat(user, "[src] fizzles weakly.")
return
diff --git a/code/game/objects/items/devices/laserpointer.dm b/code/game/objects/items/devices/laserpointer.dm
index 2ec6c846df..1ce87d91f6 100644
--- a/code/game/objects/items/devices/laserpointer.dm
+++ b/code/game/objects/items/devices/laserpointer.dm
@@ -15,7 +15,7 @@
var/max_energy = 5
var/effectchance = 33
var/recharging = 0
- var/recharge_locked = 0
+ var/recharge_locked = FALSE
var/obj/item/weapon/stock_parts/micro_laser/diode //used for upgrading!
@@ -150,7 +150,7 @@
START_PROCESSING(SSobj, src)
if(energy <= 0)
to_chat(user, "[src]'s battery is overused, it needs time to recharge!")
- recharge_locked = 1
+ recharge_locked = TRUE
flick_overlay_view(I, targloc, 10)
icon_state = "pointer"
@@ -161,5 +161,5 @@
if(energy >= max_energy)
energy = max_energy
recharging = 0
- recharge_locked = 0
+ recharge_locked = FALSE
..()
diff --git a/code/game/objects/items/devices/lightreplacer.dm b/code/game/objects/items/devices/lightreplacer.dm
index bb44b38abb..4f2508bff4 100644
--- a/code/game/objects/items/devices/lightreplacer.dm
+++ b/code/game/objects/items/devices/lightreplacer.dm
@@ -53,7 +53,7 @@
var/max_uses = 20
var/uses = 0
- var/emagged = 0
+ var/emagged = FALSE
var/failmsg = ""
// How much to increase per each glass?
var/increment = 5
diff --git a/code/game/objects/items/devices/megaphone.dm b/code/game/objects/items/devices/megaphone.dm
index d10654ba6e..d07153810f 100644
--- a/code/game/objects/items/devices/megaphone.dm
+++ b/code/game/objects/items/devices/megaphone.dm
@@ -6,7 +6,7 @@
w_class = WEIGHT_CLASS_SMALL
siemens_coefficient = 1
var/spamcheck = 0
- var/emagged = 0
+ var/emagged = FALSE
var/list/voicespan = list(SPAN_COMMAND)
/obj/item/device/megaphone/get_held_item_speechspans(mob/living/carbon/user)
@@ -19,7 +19,7 @@
/obj/item/device/megaphone/emag_act(mob/user)
to_chat(user, "You overload \the [src]'s voice synthesizer.")
- emagged = 1
+ emagged = TRUE
voicespan = list(SPAN_REALLYBIG, "userdanger")
/obj/item/device/megaphone/sec
diff --git a/code/game/objects/items/devices/powersink.dm b/code/game/objects/items/devices/powersink.dm
index fb70d77ff3..d49d3f4d98 100644
--- a/code/game/objects/items/devices/powersink.dm
+++ b/code/game/objects/items/devices/powersink.dm
@@ -16,7 +16,7 @@
var/power_drained = 0 // has drained this much power
var/max_power = 1e10 // maximum power that can be drained before exploding
var/mode = 0 // 0 = off, 1=clamped (off), 2=operating
- var/admins_warned = 0 // stop spam, only warn the admins once that we are about to boom
+ var/admins_warned = FALSE // stop spam, only warn the admins once that we are about to boom
var/const/DISCONNECTED = 0
var/const/CLAMPED_OFF = 1
@@ -35,20 +35,20 @@
attached = null
if(mode == OPERATING)
STOP_PROCESSING(SSobj, src)
- anchored = 0
+ anchored = FALSE
if(CLAMPED_OFF)
if(!attached)
return
if(mode == OPERATING)
STOP_PROCESSING(SSobj, src)
- anchored = 1
+ anchored = TRUE
if(OPERATING)
if(!attached)
return
START_PROCESSING(SSobj, src)
- anchored = 1
+ anchored = TRUE
mode = value
update_icon()
@@ -135,7 +135,7 @@
if(power_drained > max_power * 0.98)
if (!admins_warned)
- admins_warned = 1
+ admins_warned = TRUE
message_admins("Power sink at ([x],[y],[z] - JMP) is 95% full. Explosion imminent.")
playsound(src, 'sound/effects/screech.ogg', 100, 1, 1)
diff --git a/code/game/objects/items/devices/radio/electropack.dm b/code/game/objects/items/devices/radio/electropack.dm
index 5d81ceae38..f8313bb079 100644
--- a/code/game/objects/items/devices/radio/electropack.dm
+++ b/code/game/objects/items/devices/radio/electropack.dm
@@ -8,7 +8,7 @@
slot_flags = SLOT_BACK
w_class = WEIGHT_CLASS_HUGE
materials = list(MAT_METAL=10000, MAT_GLASS=2500)
- var/on = 1
+ var/on = TRUE
var/code = 2
var/frequency = 1449
var/shock_cooldown = 0
diff --git a/code/game/objects/items/devices/radio/intercom.dm b/code/game/objects/items/devices/radio/intercom.dm
index 12ae73e5da..24b281925a 100644
--- a/code/game/objects/items/devices/radio/intercom.dm
+++ b/code/game/objects/items/devices/radio/intercom.dm
@@ -2,7 +2,7 @@
name = "station intercom"
desc = "Talk through this."
icon_state = "intercom"
- anchored = 1
+ anchored = TRUE
w_class = WEIGHT_CLASS_BULKY
canhear_range = 2
var/number = 0
@@ -107,7 +107,7 @@
var/area/A = get_area(src)
if(!A || emped)
- on = 0
+ on = FALSE
else
on = A.powered(EQUIP) // set "on" to the power status
diff --git a/code/game/objects/items/devices/radio/radio.dm b/code/game/objects/items/devices/radio/radio.dm
index fbc41fb1bb..251be1c368 100644
--- a/code/game/objects/items/devices/radio/radio.dm
+++ b/code/game/objects/items/devices/radio/radio.dm
@@ -5,7 +5,7 @@
icon_state = "walkietalkie"
item_state = "walkietalkie"
dog_fashion = /datum/dog_fashion/back
- var/on = 1 // 0 for off
+ var/on = TRUE // 0 for off
var/last_transmission
var/frequency = 1459 //common chat
var/traitor_frequency = 0 //tune to frequency to unlock traitor supplies
@@ -104,7 +104,7 @@
else
ui_interact(user)
-/obj/item/device/radio/ui_interact(mob/user, ui_key = "main", datum/tgui/ui = null, force_open = 0, \
+/obj/item/device/radio/ui_interact(mob/user, ui_key = "main", datum/tgui/ui = null, force_open = FALSE, \
datum/tgui/master_ui = null, datum/ui_state/state = GLOB.inventory_state)
ui = SStgui.try_update_ui(user, src, ui_key, ui, force_open)
if(!ui)
@@ -530,12 +530,12 @@
listening = 0
for (var/ch_name in channels)
channels[ch_name] = 0
- on = 0
+ on = FALSE
spawn(200)
if(emped == curremp) //Don't fix it if it's been EMP'd again
emped = 0
if (!istype(src, /obj/item/device/radio/intercom)) // intercoms will turn back on on their own
- on = 1
+ on = TRUE
..()
///////////////////////////////
diff --git a/code/game/objects/items/devices/scanners.dm b/code/game/objects/items/devices/scanners.dm
index 73d92a696c..5b3dfbb994 100644
--- a/code/game/objects/items/devices/scanners.dm
+++ b/code/game/objects/items/devices/scanners.dm
@@ -12,7 +12,7 @@ MASS SPECTROMETER
name = "\improper T-ray scanner"
desc = "A terahertz-ray emitter and scanner used to detect underfloor objects such as cables and pipes."
icon_state = "t-ray0"
- var/on = 0
+ var/on = FALSE
slot_flags = SLOT_BELT
w_class = WEIGHT_CLASS_SMALL
item_state = "electronic"
diff --git a/code/game/objects/items/devices/traitordevices.dm b/code/game/objects/items/devices/traitordevices.dm
index 2843ef9a67..6c0e33a999 100644
--- a/code/game/objects/items/devices/traitordevices.dm
+++ b/code/game/objects/items/devices/traitordevices.dm
@@ -171,7 +171,7 @@ effective or pretty fucking useless.
var/mob/living/carbon/human/user = null
var/charge = 300
var/max_charge = 300
- var/on = 0
+ var/on = FALSE
var/old_alpha = 0
actions_types = list(/datum/action/item_action/toggle)
@@ -194,14 +194,14 @@ effective or pretty fucking useless.
src.user = user
START_PROCESSING(SSobj, src)
old_alpha = user.alpha
- on = 1
+ on = TRUE
/obj/item/device/shadowcloak/proc/Deactivate()
to_chat(user, "You deactivate [src].")
STOP_PROCESSING(SSobj, src)
if(user)
user.alpha = old_alpha
- on = 0
+ on = FALSE
user = null
/obj/item/device/shadowcloak/dropped(mob/user)
diff --git a/code/game/objects/items/devices/transfer_valve.dm b/code/game/objects/items/devices/transfer_valve.dm
index 635338fe96..27cf8a772f 100644
--- a/code/game/objects/items/devices/transfer_valve.dm
+++ b/code/game/objects/items/devices/transfer_valve.dm
@@ -8,7 +8,7 @@
var/obj/item/weapon/tank/tank_two
var/obj/item/device/attached_device
var/mob/attacher = null
- var/valve_open = 0
+ var/valve_open = FALSE
var/toggle = 1
origin_tech = "materials=1;engineering=1"
@@ -79,7 +79,7 @@
if (src.loc == usr)
if(tank_one && href_list["tankone"])
split_gases()
- valve_open = 0
+ valve_open = FALSE
tank_one.loc = get_turf(src)
tank_one = null
update_icon()
@@ -87,7 +87,7 @@
w_class = WEIGHT_CLASS_NORMAL
else if(tank_two && href_list["tanktwo"])
split_gases()
- valve_open = 0
+ valve_open = FALSE
tank_two.loc = get_turf(src)
tank_two = null
update_icon()
@@ -156,7 +156,7 @@
/obj/item/device/transfer_valve/proc/toggle_valve()
if(!valve_open && tank_one && tank_two)
- valve_open = 1
+ valve_open = TRUE
var/turf/bombturf = get_turf(src)
var/area/A = get_area(bombturf)
@@ -202,7 +202,7 @@
else if(valve_open && tank_one && tank_two)
split_gases()
- valve_open = 0
+ valve_open = FALSE
src.update_icon()
// this doesn't do anything but the timer etc. expects it to be here
diff --git a/code/game/objects/items/robot/robot_parts.dm b/code/game/objects/items/robot/robot_parts.dm
index 0b2e81a9da..7111093951 100644
--- a/code/game/objects/items/robot/robot_parts.dm
+++ b/code/game/objects/items/robot/robot_parts.dm
@@ -20,7 +20,7 @@
var/locomotion = 1
var/lawsync = 1
var/aisync = 1
- var/panel_locked = 1
+ var/panel_locked = TRUE
/obj/item/robot_suit/New()
..()
diff --git a/code/game/objects/items/robot/robot_upgrades.dm b/code/game/objects/items/robot/robot_upgrades.dm
index 185ddf23e6..fb47a8d6ae 100644
--- a/code/game/objects/items/robot/robot_upgrades.dm
+++ b/code/game/objects/items/robot/robot_upgrades.dm
@@ -7,7 +7,7 @@
icon = 'icons/obj/module.dmi'
icon_state = "cyborg_upgrade"
origin_tech = "programming=2"
- var/locked = 0
+ var/locked = FALSE
var/installed = 0
var/require_module = 0
var/module_type = null
@@ -211,7 +211,7 @@
var/repair_amount = -1
var/repair_tick = 1
var/msg_cooldown = 0
- var/on = 0
+ var/on = FALSE
var/powercost = 10
var/mob/living/silicon/robot/cyborg
var/datum/action/toggle_action
diff --git a/code/game/objects/items/shooting_range.dm b/code/game/objects/items/shooting_range.dm
index 2e31e59714..d86ea63338 100644
--- a/code/game/objects/items/shooting_range.dm
+++ b/code/game/objects/items/shooting_range.dm
@@ -3,7 +3,7 @@
desc = "A shooting target."
icon = 'icons/obj/objects.dmi'
icon_state = "target_h"
- density = 0
+ density = FALSE
var/hp = 1800
var/obj/structure/target_stake/pinnedLoc
@@ -15,7 +15,7 @@
/obj/item/target/proc/nullPinnedLoc()
pinnedLoc = null
- density = 0
+ density = FALSE
/obj/item/target/proc/removeOverlays()
cut_overlays()
diff --git a/code/game/objects/items/toys.dm b/code/game/objects/items/toys.dm
index 7a29d2412e..e3eda24652 100644
--- a/code/game/objects/items/toys.dm
+++ b/code/game/objects/items/toys.dm
@@ -215,7 +215,7 @@
var/active = 0
w_class = WEIGHT_CLASS_SMALL
attack_verb = list("attacked", "struck", "hit")
- var/hacked = 0
+ var/hacked = FALSE
/obj/item/toy/sword/attack_self(mob/user)
active = !( active )
@@ -247,13 +247,13 @@
to_chat(user, "You attach the ends of the two plastic swords, making a single double-bladed toy! You're fake-cool.")
var/obj/item/weapon/twohanded/dualsaber/toy/newSaber = new /obj/item/weapon/twohanded/dualsaber/toy(user.loc)
if(hacked) // That's right, we'll only check the "original" "sword".
- newSaber.hacked = 1
+ newSaber.hacked = TRUE
newSaber.item_color = "rainbow"
qdel(W)
qdel(src)
else if(istype(W, /obj/item/device/multitool))
- if(hacked == 0)
- hacked = 1
+ if(!hacked)
+ hacked = TRUE
item_color = "rainbow"
to_chat(user, "RNBW_ENGAGE")
diff --git a/code/game/objects/items/weapons/RCD.dm b/code/game/objects/items/weapons/RCD.dm
index 82c2698605..01a3e77a19 100644
--- a/code/game/objects/items/weapons/RCD.dm
+++ b/code/game/objects/items/weapons/RCD.dm
@@ -10,8 +10,8 @@ ARCD
obj/item/weapon/construction
opacity = 0
- density = 0
- anchored = 0
+ density = FALSE
+ anchored = FALSE
flags = CONDUCT | NOBLUDGEON
force = 0
throwforce = 10
diff --git a/code/game/objects/items/weapons/RSF.dm b/code/game/objects/items/weapons/RSF.dm
index 2d0bce9c87..a9f270e101 100644
--- a/code/game/objects/items/weapons/RSF.dm
+++ b/code/game/objects/items/weapons/RSF.dm
@@ -9,8 +9,8 @@ RSF
icon = 'icons/obj/tools.dmi'
icon_state = "rcd"
opacity = 0
- density = 0
- anchored = 0
+ density = FALSE
+ anchored = FALSE
flags = NOBLUDGEON
armor = list(melee = 0, bullet = 0, laser = 0, energy = 0, bomb = 0, bio = 0, rad = 0, fire = 0, acid = 0)
var/matter = 0
@@ -119,7 +119,7 @@ RSF
var/toxin = 0
var/cooldown = 0
var/cooldowndelay = 10
- var/emagged = 0
+ var/emagged = FALSE
w_class = WEIGHT_CLASS_NORMAL
/obj/item/weapon/cookiesynth/examine(mob/user)
diff --git a/code/game/objects/items/weapons/chrono_eraser.dm b/code/game/objects/items/weapons/chrono_eraser.dm
index 1939bf6499..2d99238eb8 100644
--- a/code/game/objects/items/weapons/chrono_eraser.dm
+++ b/code/game/objects/items/weapons/chrono_eraser.dm
@@ -149,8 +149,8 @@
desc = "An aura of time-bluespace energy."
icon = 'icons/effects/effects.dmi'
icon_state = "chronofield"
- density = 0
- anchored = 1
+ density = FALSE
+ anchored = TRUE
blend_mode = BLEND_MULTIPLY
var/mob/living/captured = null
var/obj/item/weapon/gun/energy/chrono_gun/gun = null
diff --git a/code/game/objects/items/weapons/cigs_lighters.dm b/code/game/objects/items/weapons/cigs_lighters.dm
index 3d55fbd712..f920dc10f9 100644
--- a/code/game/objects/items/weapons/cigs_lighters.dm
+++ b/code/game/objects/items/weapons/cigs_lighters.dm
@@ -630,7 +630,7 @@ CIGARETTE PACKETS ARE IN FANCY.DM
var/vapetime = 0 //this so it won't puff out clouds every tick
var/screw = 0 // kinky
var/super = 0 //for the fattest vapes dude.
- var/emagged = 0 //LET THE GRIEF BEGIN
+ var/emagged = FALSE //LET THE GRIEF BEGIN
/obj/item/clothing/mask/vape/suicide_act(mob/user)
user.visible_message("[user] is puffin hard on dat vape, [user.p_they()] trying to join the vape life on a whole notha plane!")//it doesn't give you cancer, it is cancer
@@ -693,7 +693,7 @@ CIGARETTE PACKETS ARE IN FANCY.DM
if(screw)
if(!emagged)
cut_overlays()
- emagged = 1
+ emagged = TRUE
super = 0
to_chat(user, "You maximize the voltage in the [src]")
add_overlay("vapeopen_high")
diff --git a/code/game/objects/items/weapons/cosmetics.dm b/code/game/objects/items/weapons/cosmetics.dm
index e9e7eb309b..a7051ed109 100644
--- a/code/game/objects/items/weapons/cosmetics.dm
+++ b/code/game/objects/items/weapons/cosmetics.dm
@@ -6,7 +6,7 @@
icon_state = "lipstick"
w_class = WEIGHT_CLASS_TINY
var/colour = "red"
- var/open = 0
+ var/open = FALSE
/obj/item/weapon/lipstick/purple
diff --git a/code/game/objects/items/weapons/defib.dm b/code/game/objects/items/weapons/defib.dm
index ffa1b157e0..2462b5d19a 100644
--- a/code/game/objects/items/weapons/defib.dm
+++ b/code/game/objects/items/weapons/defib.dm
@@ -15,7 +15,7 @@
actions_types = list(/datum/action/item_action/toggle_paddles)
armor = list(melee = 0, bullet = 0, laser = 0, energy = 0, bomb = 0, bio = 0, rad = 0, fire = 50, acid = 50)
- var/on = 0 //if the paddles are equipped (1) or on the defib (0)
+ var/on = FALSE //if the paddles are equipped (1) or on the defib (0)
var/safety = 1 //if you can zap people with the defibs on harm mode
var/powered = 0 //if there's a cell in the defib with enough power for a revive, blocks paddles from reviving otherwise
var/obj/item/weapon/twohanded/shockpaddles/paddles
@@ -161,7 +161,7 @@
if(on)
//Detach the paddles into the user's hands
if(!usr.put_in_hands(paddles))
- on = 0
+ on = FALSE
to_chat(user, "You need a free hand to hold the paddles!")
update_icon()
return
@@ -279,7 +279,7 @@
var/revivecost = 1000
var/cooldown = 0
- var/busy = 0
+ var/busy = FALSE
var/obj/item/weapon/defibrillator/defib
var/req_defib = 1
var/combat = 0 //If it penetrates armor and gives additional functionality
@@ -302,7 +302,7 @@
if(check_defib_exists(mainunit, src) && req_defib)
defib = mainunit
loc = defib
- busy = 0
+ busy = FALSE
update_icon()
/obj/item/weapon/twohanded/shockpaddles/update_icon()
@@ -396,7 +396,7 @@
return
if(!req_defib && !combat)
return
- busy = 1
+ busy = TRUE
M.visible_message("[user] has touched [M] with [src]!", \
"[user] has touched [M] with [src]!")
M.adjustStaminaLoss(50)
@@ -408,7 +408,7 @@
if(req_defib)
defib.deductcharge(revivecost)
cooldown = 1
- busy = 0
+ busy = FALSE
update_icon()
if(req_defib)
defib.cooldowncheck(user)
@@ -422,7 +422,7 @@
return
user.visible_message("[user] begins to place [src] on [H]'s chest.",
"You overcharge the paddles and begin to place them onto [H]'s chest...")
- busy = 1
+ busy = TRUE
update_icon()
if(do_after(user, 30, target = H))
user.visible_message("[user] places [src] on [H]'s chest.",
@@ -435,13 +435,13 @@
user.audible_message("[src] let out an urgent beep.")
if(do_after(user, 30, target = H)) //Takes longer due to overcharging
if(!H)
- busy = 0
+ busy = FALSE
update_icon()
return
if(H && H.stat == DEAD)
to_chat(user, "[H] is dead.")
playsound(get_turf(src), 'sound/machines/defib_failed.ogg', 50, 0)
- busy = 0
+ busy = FALSE
update_icon()
return
user.visible_message("[user] shocks [H] with \the [src]!", "You shock [H] with \the [src]!")
@@ -460,18 +460,18 @@
if(req_defib)
defib.deductcharge(revivecost)
cooldown = 1
- busy = 0
+ busy = FALSE
update_icon()
if(!req_defib)
recharge(60)
if(req_defib && (defib.cooldowncheck(user)))
return
- busy = 0
+ busy = FALSE
update_icon()
/obj/item/weapon/twohanded/shockpaddles/proc/do_help(mob/living/carbon/human/H, mob/living/user)
user.visible_message("[user] begins to place [src] on [H]'s chest.", "You begin to place [src] on [H]'s chest...")
- busy = 1
+ busy = TRUE
update_icon()
if(do_after(user, 30, target = H)) //beginning to place the paddles on patient's chest to allow some time for people to move away to stop the process
user.visible_message("[user] places [src] on [H]'s chest.", "You place [src] on [H]'s chest.")
@@ -491,7 +491,7 @@
if((!src.combat && !req_defib) || (req_defib && !defib.combat))
user.audible_message("[req_defib ? "[defib]" : "[src]"] buzzes: Patient's chest is obscured. Operation aborted.")
playsound(get_turf(src), 'sound/machines/defib_failed.ogg', 50, 0)
- busy = 0
+ busy = FALSE
update_icon()
return
if(H.stat == DEAD)
@@ -563,7 +563,7 @@
else
user.visible_message("[req_defib ? "[defib]" : "[src]"] buzzes: Patient is not in a valid state. Operation aborted.")
playsound(get_turf(src), 'sound/machines/defib_failed.ogg', 50, 0)
- busy = 0
+ busy = FALSE
update_icon()
/obj/item/weapon/twohanded/shockpaddles/cyborg
diff --git a/code/game/objects/items/weapons/flamethrower.dm b/code/game/objects/items/weapons/flamethrower.dm
index ee75520f76..a5456b7724 100755
--- a/code/game/objects/items/weapons/flamethrower.dm
+++ b/code/game/objects/items/weapons/flamethrower.dm
@@ -13,13 +13,13 @@
materials = list(MAT_METAL=500)
origin_tech = "combat=1;plasmatech=2;engineering=2"
resistance_flags = FIRE_PROOF
- var/status = 0
- var/lit = 0 //on or off
- var/operating = 0//cooldown
+ var/status = FALSE
+ var/lit = FALSE //on or off
+ var/operating = FALSE//cooldown
var/obj/item/weapon/weldingtool/weldtool = null
var/obj/item/device/assembly/igniter/igniter = null
var/obj/item/weapon/tank/internals/plasma/ptank = null
- var/warned_admins = 0 //for the message_admins() when lit
+ var/warned_admins = FALSE //for the message_admins() when lit
//variables for prebuilt flamethrowers
var/create_full = FALSE
var/create_with_tank = FALSE
@@ -161,7 +161,7 @@
START_PROCESSING(SSobj, src)
if(!warned_admins)
message_admins("[ADMIN_LOOKUPFLW(user)] has lit a flamethrower.")
- warned_admins = 1
+ warned_admins = TRUE
else
STOP_PROCESSING(SSobj,src)
update_icon()
@@ -170,16 +170,16 @@
..()
weldtool = locate(/obj/item/weapon/weldingtool) in contents
igniter = locate(/obj/item/device/assembly/igniter) in contents
- weldtool.status = 0
- igniter.secured = 0
- status = 1
+ weldtool.status = FALSE
+ igniter.secured = FALSE
+ status = TRUE
update_icon()
//Called from turf.dm turf/dblclick
/obj/item/weapon/flamethrower/proc/flame_turf(turflist)
if(!lit || operating)
return
- operating = 1
+ operating = TRUE
var/turf/previousturf = get_turf(src)
for(var/turf/T in turflist)
if(T == previousturf)
@@ -193,7 +193,7 @@
default_ignite(T)
sleep(1)
previousturf = T
- operating = 0
+ operating = FALSE
for(var/mob/M in viewers(1, loc))
if((M.client && M.machine == src))
attack_self(M)
@@ -217,11 +217,11 @@
if(create_full)
if(!weldtool)
weldtool = new /obj/item/weapon/weldingtool(src)
- weldtool.status = 0
+ weldtool.status = FALSE
if(!igniter)
igniter = new igniter_type(src)
- igniter.secured = 0
- status = 1
+ igniter.secured = FALSE
+ status = TRUE
if(create_with_tank)
ptank = new /obj/item/weapon/tank/internals/plasma/full(src)
update_icon()
diff --git a/code/game/objects/items/weapons/holosign_creator.dm b/code/game/objects/items/weapons/holosign_creator.dm
index 861a530967..1923f7e3d3 100644
--- a/code/game/objects/items/weapons/holosign_creator.dm
+++ b/code/game/objects/items/weapons/holosign_creator.dm
@@ -15,7 +15,7 @@
var/max_signs = 10
var/creation_time = 0 //time to create a holosign in deciseconds.
var/holosign_type = /obj/structure/holosign/wetsign
- var/holocreator_busy = 0 //to prevent placing multiple holo barriers at once
+ var/holocreator_busy = FALSE //to prevent placing multiple holo barriers at once
/obj/item/weapon/holosign_creator/afterattack(atom/target, mob/user, flag)
if(flag)
@@ -34,11 +34,11 @@
if(signs.len < max_signs)
playsound(src.loc, 'sound/machines/click.ogg', 20, 1)
if(creation_time)
- holocreator_busy = 1
+ holocreator_busy = TRUE
if(!do_after(user, creation_time, target = target))
- holocreator_busy = 0
+ holocreator_busy = FALSE
return
- holocreator_busy = 0
+ holocreator_busy = FALSE
if(signs.len >= max_signs)
return
if(is_blocked_turf(T, TRUE)) //don't try to sneak dense stuff on our tile during the wait.
diff --git a/code/game/objects/items/weapons/implants/implantchair.dm b/code/game/objects/items/weapons/implants/implantchair.dm
index 9d7516faac..487b70f8f2 100644
--- a/code/game/objects/items/weapons/implants/implantchair.dm
+++ b/code/game/objects/items/weapons/implants/implantchair.dm
@@ -3,7 +3,7 @@
desc = "Used to implant occupants with mindshield implants."
icon = 'icons/obj/machines/implantchair.dmi'
icon_state = "implantchair"
- density = 1
+ density = TRUE
opacity = 0
anchored = TRUE
@@ -26,7 +26,7 @@
update_icon()
-/obj/machinery/implantchair/ui_interact(mob/user, ui_key = "main", datum/tgui/ui = null, force_open = 0, \
+/obj/machinery/implantchair/ui_interact(mob/user, ui_key = "main", datum/tgui/ui = null, force_open = FALSE, \
datum/tgui/master_ui = null, datum/ui_state/state = GLOB.notcontained_state)
ui = SStgui.try_update_ui(user, src, ui_key, ui, force_open)
diff --git a/code/game/objects/items/weapons/melee/energy.dm b/code/game/objects/items/weapons/melee/energy.dm
index 945889d800..d7dc87b196 100644
--- a/code/game/objects/items/weapons/melee/energy.dm
+++ b/code/game/objects/items/weapons/melee/energy.dm
@@ -80,7 +80,7 @@
origin_tech = "combat=3;magnets=4;syndicate=4"
block_chance = 50
possible_colors = list("red", "blue", "green", "purple")
- var/hacked = 0
+ var/hacked = FALSE
/obj/item/weapon/melee/energy/sword/Destroy()
STOP_PROCESSING(SSobj, src)
diff --git a/code/game/objects/items/weapons/melee/misc.dm b/code/game/objects/items/weapons/melee/misc.dm
index fe9fbefb59..e10d04611a 100644
--- a/code/game/objects/items/weapons/melee/misc.dm
+++ b/code/game/objects/items/weapons/melee/misc.dm
@@ -87,7 +87,7 @@
force = 12 //9 hit crit
w_class = WEIGHT_CLASS_NORMAL
var/cooldown = 0
- var/on = 1
+ var/on = TRUE
/obj/item/weapon/melee/classic_baton/attack(mob/living/target, mob/living/user)
if(!on)
@@ -143,7 +143,7 @@
w_class = WEIGHT_CLASS_SMALL
needs_permit = 0
force = 0
- on = 0
+ on = FALSE
/obj/item/weapon/melee/classic_baton/telescopic/suicide_act(mob/user)
var/mob/living/carbon/human/H = user
diff --git a/code/game/objects/items/weapons/storage/backpack.dm b/code/game/objects/items/weapons/storage/backpack.dm
index 78e1261aba..89f1feeef1 100644
--- a/code/game/objects/items/weapons/storage/backpack.dm
+++ b/code/game/objects/items/weapons/storage/backpack.dm
@@ -278,11 +278,11 @@
/obj/item/weapon/storage/backpack/satchel/flat/hide(var/intact)
if(intact)
invisibility = INVISIBILITY_MAXIMUM
- anchored = 1 //otherwise you can start pulling, cover it, and drag around an invisible backpack.
+ anchored = TRUE //otherwise you can start pulling, cover it, and drag around an invisible backpack.
icon_state = "[initial(icon_state)]2"
else
invisibility = initial(invisibility)
- anchored = 0
+ anchored = FALSE
icon_state = initial(icon_state)
/obj/item/weapon/storage/backpack/satchel/flat/Initialize(mapload)
diff --git a/code/game/objects/items/weapons/storage/secure.dm b/code/game/objects/items/weapons/storage/secure.dm
index e455a0277c..56eb477906 100644
--- a/code/game/objects/items/weapons/storage/secure.dm
+++ b/code/game/objects/items/weapons/storage/secure.dm
@@ -15,13 +15,13 @@
var/icon_locking = "secureb"
var/icon_sparking = "securespark"
var/icon_opened = "secure0"
- var/locked = 1
+ var/locked = TRUE
var/code = ""
var/l_code = null
var/l_set = 0
var/l_setshort = 0
var/l_hacking = 0
- var/open = 0
+ var/open = FALSE
w_class = WEIGHT_CLASS_NORMAL
max_w_class = WEIGHT_CLASS_SMALL
max_combined_w_class = 14
@@ -92,7 +92,7 @@
src.l_code = src.code
src.l_set = 1
else if ((src.code == src.l_code) && (src.l_set == 1))
- src.locked = 0
+ src.locked = FALSE
cut_overlays()
add_overlay(icon_opened)
src.code = null
@@ -100,7 +100,7 @@
src.code = "ERROR"
else
if ((href_list["type"] == "R") && (!src.l_setshort))
- src.locked = 1
+ src.locked = TRUE
cut_overlays()
src.code = null
src.close(usr)
@@ -180,8 +180,8 @@
force = 8
w_class = WEIGHT_CLASS_GIGANTIC
max_w_class = 8
- anchored = 1
- density = 0
+ anchored = TRUE
+ density = FALSE
cant_hold = list(/obj/item/weapon/storage/secure/briefcase)
/obj/item/weapon/storage/secure/safe/PopulateContents()
diff --git a/code/game/objects/items/weapons/tanks/tanks.dm b/code/game/objects/items/weapons/tanks/tanks.dm
index e5ffbade4c..abd907aeb5 100644
--- a/code/game/objects/items/weapons/tanks/tanks.dm
+++ b/code/game/objects/items/weapons/tanks/tanks.dm
@@ -142,7 +142,7 @@
else
. = ..()
-/obj/item/weapon/tank/ui_interact(mob/user, ui_key = "main", datum/tgui/ui = null, force_open = 0, \
+/obj/item/weapon/tank/ui_interact(mob/user, ui_key = "main", datum/tgui/ui = null, force_open = FALSE, \
datum/tgui/master_ui = null, datum/ui_state/state = GLOB.hands_state)
ui = SStgui.try_update_ui(user, src, ui_key, ui, force_open)
if(!ui)
diff --git a/code/game/objects/items/weapons/tanks/watertank.dm b/code/game/objects/items/weapons/tanks/watertank.dm
index 79e14ad4e5..7b7f1d5423 100644
--- a/code/game/objects/items/weapons/tanks/watertank.dm
+++ b/code/game/objects/items/weapons/tanks/watertank.dm
@@ -14,7 +14,7 @@
resistance_flags = FIRE_PROOF
var/obj/item/weapon/noz
- var/on = 0
+ var/on = FALSE
var/volume = 500
/obj/item/weapon/watertank/New()
@@ -46,7 +46,7 @@
//Detach the nozzle into the user's hands
if(!user.put_in_hands(noz))
- on = 0
+ on = FALSE
to_chat(user, "You need a free hand to hold the mister!")
return
noz.loc = user
@@ -337,7 +337,7 @@
slowdown = 1
actions_types = list(/datum/action/item_action/activate_injector)
- var/on = 0
+ var/on = FALSE
volume = 300
var/usage_ratio = 5 //5 unit added per 1 removed
var/injection_amount = 1
@@ -403,13 +403,13 @@
. += filling
/obj/item/weapon/reagent_containers/chemtank/proc/turn_on()
- on = 1
+ on = TRUE
START_PROCESSING(SSobj, src)
if(ismob(loc))
to_chat(loc, "[src] turns on.")
/obj/item/weapon/reagent_containers/chemtank/proc/turn_off()
- on = 0
+ on = FALSE
STOP_PROCESSING(SSobj, src)
if(ismob(loc))
to_chat(loc, "[src] turns off.")
diff --git a/code/game/objects/items/weapons/tools.dm b/code/game/objects/items/weapons/tools.dm
index 5edea69c19..0db6e6d001 100755
--- a/code/game/objects/items/weapons/tools.dm
+++ b/code/game/objects/items/weapons/tools.dm
@@ -335,7 +335,7 @@
materials = list(MAT_METAL=70, MAT_GLASS=30)
origin_tech = "engineering=1;plasmatech=1"
var/welding = 0 //Whether or not the welding tool is off(0), on(1) or currently welding(2)
- var/status = 1 //Whether the welder is secured or unsecured (able to attach rods to it to make a flamethrower)
+ var/status = TRUE //Whether the welder is secured or unsecured (able to attach rods to it to make a flamethrower)
var/max_fuel = 20 //The max amount of fuel the welder can hold
var/change_icons = 1
var/can_off_process = 0
diff --git a/code/game/objects/items/weapons/twohanded.dm b/code/game/objects/items/weapons/twohanded.dm
index d741f175e2..94452dce8b 100644
--- a/code/game/objects/items/weapons/twohanded.dm
+++ b/code/game/objects/items/weapons/twohanded.dm
@@ -260,7 +260,7 @@
max_integrity = 200
armor = list(melee = 0, bullet = 0, laser = 0, energy = 0, bomb = 0, bio = 0, rad = 0, fire = 100, acid = 70)
resistance_flags = FIRE_PROOF
- var/hacked = 0
+ var/hacked = FALSE
var/brightness_on = 6 //TWICE AS BRIGHT AS A REGULAR ESWORD
var/list/possible_colors = list("red", "blue", "green", "purple")
@@ -388,8 +388,8 @@
/obj/item/weapon/twohanded/dualsaber/attackby(obj/item/weapon/W, mob/user, params)
if(istype(W, /obj/item/device/multitool))
- if(hacked == 0)
- hacked = 1
+ if(!hacked)
+ hacked = TRUE
to_chat(user, "2XRNBW_ENGAGE")
item_color = "rainbow"
update_icon()
@@ -490,7 +490,7 @@
hitsound = "swing_hit"
sharpness = IS_SHARP
actions_types = list(/datum/action/item_action/startchainsaw)
- var/on = 0
+ var/on = FALSE
/obj/item/weapon/twohanded/required/chainsaw/attack_self(mob/user)
on = !on
diff --git a/code/game/objects/obj_defense.dm b/code/game/objects/obj_defense.dm
index d5d7d90d0b..d6748235bd 100644
--- a/code/game/objects/obj_defense.dm
+++ b/code/game/objects/obj_defense.dm
@@ -214,13 +214,13 @@ GLOBAL_DATUM_INIT(acid_overlay, /mutable_appearance, mutable_appearance('icons/e
/obj/proc/tesla_act(var/power)
- being_shocked = 1
+ being_shocked = TRUE
var/power_bounced = power / 2
tesla_zap(src, 3, power_bounced)
addtimer(CALLBACK(src, .proc/reset_shocked), 10)
/obj/proc/reset_shocked()
- being_shocked = 0
+ being_shocked = FALSE
//the obj is deconstructed into pieces, whether through careful disassembly or when destroyed.
/obj/proc/deconstruct(disassembled = TRUE)
diff --git a/code/game/objects/structures.dm b/code/game/objects/structures.dm
index 4ba56742bc..facab21cc0 100644
--- a/code/game/objects/structures.dm
+++ b/code/game/objects/structures.dm
@@ -63,9 +63,9 @@
/obj/structure/proc/do_climb(atom/movable/A)
if(climbable)
- density = 0
+ density = FALSE
. = step(A,get_dir(A,src.loc))
- density = 1
+ density = TRUE
/obj/structure/proc/climb_structure(mob/living/user)
src.add_fingerprint(user)
diff --git a/code/game/objects/structures/ai_core.dm b/code/game/objects/structures/ai_core.dm
index ba94d09ac4..ecf7ca9db9 100644
--- a/code/game/objects/structures/ai_core.dm
+++ b/code/game/objects/structures/ai_core.dm
@@ -1,6 +1,6 @@
/obj/structure/AIcore
- density = 1
- anchored = 0
+ density = TRUE
+ anchored = FALSE
name = "\improper AI core"
icon = 'icons/mob/ai.dmi'
icon_state = "0"
@@ -231,7 +231,7 @@
/obj/structure/AIcore/deactivated
name = "inactive AI"
icon_state = "ai-empty"
- anchored = 1
+ anchored = TRUE
state = AI_READY_CORE
/obj/structure/AIcore/deactivated/New()
diff --git a/code/game/objects/structures/aliens.dm b/code/game/objects/structures/aliens.dm
index 70a7e157ec..16c85f7e72 100644
--- a/code/game/objects/structures/aliens.dm
+++ b/code/game/objects/structures/aliens.dm
@@ -54,9 +54,9 @@
desc = "Looks like some kind of thick resin."
icon = 'icons/obj/smooth_structures/alien/resin_wall.dmi'
icon_state = "resin"
- density = 1
+ density = TRUE
opacity = 1
- anchored = 1
+ anchored = TRUE
canSmoothWith = list(/obj/structure/alien/resin)
max_integrity = 200
smooth = SMOOTH_TRUE
@@ -112,8 +112,8 @@
gender = PLURAL
name = "resin floor"
desc = "A thick resin surface covers the floor."
- anchored = 1
- density = 0
+ anchored = TRUE
+ density = FALSE
layer = TURF_LAYER
icon_state = "weeds"
max_integrity = 15
diff --git a/code/game/objects/structures/artstuff.dm b/code/game/objects/structures/artstuff.dm
index 6d545c3ee0..b77a4a53ba 100644
--- a/code/game/objects/structures/artstuff.dm
+++ b/code/game/objects/structures/artstuff.dm
@@ -8,7 +8,7 @@
desc = "Only for the finest of art!"
icon = 'icons/obj/artstuff.dmi'
icon_state = "easel"
- density = 1
+ density = TRUE
resistance_flags = FLAMMABLE
max_integrity = 60
var/obj/item/weapon/canvas/painting = null
diff --git a/code/game/objects/structures/barsigns.dm b/code/game/objects/structures/barsigns.dm
index 7ba9bb9d9d..bd9fe8be2f 100644
--- a/code/game/objects/structures/barsigns.dm
+++ b/code/game/objects/structures/barsigns.dm
@@ -10,10 +10,10 @@
buildable_sign = 0
var/list/barsigns=list()
var/list/hiddensigns
- var/emagged = 0
+ var/emagged = FALSE
var/state = 0
var/prev_sign = ""
- var/panel_open = 0
+ var/panel_open = FALSE
/obj/structure/sign/barsign/Initialize()
. = ..()
@@ -78,7 +78,7 @@
if(!panel_open)
to_chat(user, "You open the maintenance panel.")
set_sign(new /datum/barsign/hiddensigns/signoff)
- panel_open = 1
+ panel_open = TRUE
else
to_chat(user, "You close the maintenance panel.")
if(!broken && !emagged)
@@ -87,7 +87,7 @@
set_sign(new /datum/barsign/hiddensigns/syndibarsign)
else
set_sign(new /datum/barsign/hiddensigns/empbarsign)
- panel_open = 0
+ panel_open = FALSE
else if(istype(I, /obj/item/stack/cable_coil) && panel_open)
var/obj/item/stack/cable_coil/C = I
@@ -121,7 +121,7 @@
to_chat(user, "You emag the barsign. Takeover in progress...")
sleep(100) //10 seconds
set_sign(new /datum/barsign/hiddensigns/syndibarsign)
- emagged = 1
+ emagged = TRUE
req_access = list(GLOB.access_syndicate)
diff --git a/code/game/objects/structures/beds_chairs/alien_nest.dm b/code/game/objects/structures/beds_chairs/alien_nest.dm
index 5b6d53b444..ed5dc5f902 100644
--- a/code/game/objects/structures/beds_chairs/alien_nest.dm
+++ b/code/game/objects/structures/beds_chairs/alien_nest.dm
@@ -7,7 +7,7 @@
icon_state = "nest"
max_integrity = 120
smooth = SMOOTH_TRUE
- can_be_unanchored = 0
+ can_be_unanchored = FALSE
canSmoothWith = null
buildstacktype = null
flags = NODECONSTRUCT
diff --git a/code/game/objects/structures/beds_chairs/bed.dm b/code/game/objects/structures/beds_chairs/bed.dm
index 53736eace4..19a4439720 100644
--- a/code/game/objects/structures/beds_chairs/bed.dm
+++ b/code/game/objects/structures/beds_chairs/bed.dm
@@ -12,7 +12,7 @@
desc = "This is used to lie in, sleep in or strap on."
icon_state = "bed"
icon = 'icons/obj/objects.dmi'
- anchored = 1
+ anchored = TRUE
can_buckle = 1
buckle_lying = 1
resistance_flags = FLAMMABLE
@@ -44,7 +44,7 @@
name = "roller bed"
icon = 'icons/obj/rollerbed.dmi'
icon_state = "down"
- anchored = 0
+ anchored = FALSE
resistance_flags = 0
var/foldabletype = /obj/item/roller
@@ -86,11 +86,11 @@
/obj/structure/bed/roller/post_buckle_mob(mob/living/M)
if(M in buckled_mobs)
- density = 1
+ density = TRUE
icon_state = "up"
M.pixel_y = initial(M.pixel_y)
else
- density = 0
+ density = FALSE
icon_state = "down"
M.pixel_x = M.get_standard_pixel_x_offset(M.lying)
M.pixel_y = M.get_standard_pixel_y_offset(M.lying)
@@ -157,7 +157,7 @@
name = "dog bed"
icon_state = "dogbed"
desc = "A comfy-looking dog bed. You can even strap your pet in, in case the gravity turns off."
- anchored = 0
+ anchored = FALSE
buildstacktype = /obj/item/stack/sheet/mineral/wood
buildstackamount = 10
var/mob/living/owner = null
diff --git a/code/game/objects/structures/beds_chairs/chair.dm b/code/game/objects/structures/beds_chairs/chair.dm
index e2728e5eaf..c88d1f763c 100644
--- a/code/game/objects/structures/beds_chairs/chair.dm
+++ b/code/game/objects/structures/beds_chairs/chair.dm
@@ -3,7 +3,7 @@
desc = "You sit in this. Either by will or force.\nDrag your sprite to sit in the chair. Alt-click to rotate it clockwise."
icon = 'icons/obj/chairs.dmi'
icon_state = "chair"
- anchored = 1
+ anchored = TRUE
can_buckle = 1
buckle_lying = 0 //you sit in a chair, not lay
resistance_flags = 0
@@ -177,7 +177,7 @@
color = rgb(255,251,0)
/obj/structure/chair/office
- anchored = 0
+ anchored = FALSE
buildstackamount = 5
item_chair = null
diff --git a/code/game/objects/structures/bedsheet_bin.dm b/code/game/objects/structures/bedsheet_bin.dm
index 9074efe582..206c9daf33 100644
--- a/code/game/objects/structures/bedsheet_bin.dm
+++ b/code/game/objects/structures/bedsheet_bin.dm
@@ -240,7 +240,7 @@ LINEN BINS
desc = "It looks rather cosy."
icon = 'icons/obj/structures.dmi'
icon_state = "linenbin-full"
- anchored = 1
+ anchored = TRUE
resistance_flags = FLAMMABLE
max_integrity = 70
var/amount = 10
diff --git a/code/game/objects/structures/crates_lockers/closets.dm b/code/game/objects/structures/crates_lockers/closets.dm
index 2957c434f8..097c631e8d 100644
--- a/code/game/objects/structures/crates_lockers/closets.dm
+++ b/code/game/objects/structures/crates_lockers/closets.dm
@@ -3,7 +3,7 @@
desc = "It's a basic storage unit."
icon = 'icons/obj/closet.dmi'
icon_state = "generic"
- density = 1
+ density = TRUE
var/icon_door = null
var/icon_door_override = FALSE //override to have open overlay use icon different to its base's
var/secure = FALSE //secure locker or not, also used if overriding a non-secure locker with a secure door overlay to add fancy lights
@@ -130,7 +130,7 @@
playsound(loc, open_sound, 15, 1, -3)
opened = 1
if(!dense_when_open)
- density = 0
+ density = FALSE
climb_time *= 0.5 //it's faster to climb onto an open thing
dump_contents()
update_icon()
@@ -182,7 +182,7 @@
playsound(loc, close_sound, 15, 1, -3)
climb_time = initial(climb_time)
opened = 0
- density = 1
+ density = TRUE
update_icon()
return 1
@@ -381,8 +381,8 @@
to_chat(user, "You fail to break out of [src]!")
/obj/structure/closet/proc/bust_open()
- welded = 0 //applies to all lockers
- locked = 0 //applies to critter crates and secure lockers only
+ welded = FALSE //applies to all lockers
+ locked = FALSE //applies to critter crates and secure lockers only
broken = 1 //applies to secure lockers only
open()
@@ -417,7 +417,7 @@
"You hear a faint electrical spark.")
playsound(src.loc, 'sound/effects/sparks4.ogg', 50, 1)
broken = 1
- locked = 0
+ locked = FALSE
update_icon()
/obj/structure/closet/get_remote_view_fullscreens(mob/user)
diff --git a/code/game/objects/structures/crates_lockers/closets/bodybag.dm b/code/game/objects/structures/crates_lockers/closets/bodybag.dm
index e817942a90..f65c180210 100644
--- a/code/game/objects/structures/crates_lockers/closets/bodybag.dm
+++ b/code/game/objects/structures/crates_lockers/closets/bodybag.dm
@@ -4,7 +4,7 @@
desc = "A plastic bag designed for the storage and transportation of cadavers."
icon = 'icons/obj/bodybag.dmi'
icon_state = "bodybag"
- density = 0
+ density = FALSE
mob_storage_capacity = 2
open_sound = 'sound/items/zip.ogg'
close_sound = 'sound/items/zip.ogg'
@@ -42,7 +42,7 @@
/obj/structure/closet/body_bag/close()
if(..())
- density = 0
+ density = FALSE
return 1
return 0
diff --git a/code/game/objects/structures/crates_lockers/closets/gimmick.dm b/code/game/objects/structures/crates_lockers/closets/gimmick.dm
index d37cfbc1af..8b68adff42 100644
--- a/code/game/objects/structures/crates_lockers/closets/gimmick.dm
+++ b/code/game/objects/structures/crates_lockers/closets/gimmick.dm
@@ -52,7 +52,7 @@
/obj/structure/closet/thunderdome
name = "\improper Thunderdome closet"
desc = "Everything you need!"
- anchored = 1
+ anchored = TRUE
/obj/structure/closet/thunderdome/tdred
name = "red-team Thunderdome closet"
diff --git a/code/game/objects/structures/crates_lockers/closets/secure/secure_closets.dm b/code/game/objects/structures/crates_lockers/closets/secure/secure_closets.dm
index 1847c336b1..4dccd78bca 100644
--- a/code/game/objects/structures/crates_lockers/closets/secure/secure_closets.dm
+++ b/code/game/objects/structures/crates_lockers/closets/secure/secure_closets.dm
@@ -1,11 +1,11 @@
/obj/structure/closet/secure_closet
name = "secure locker"
desc = "It's a card-locked storage unit."
- locked = 1
+ locked = TRUE
icon_state = "secure"
max_integrity = 250
armor = list(melee = 30, bullet = 50, laser = 50, energy = 100, bomb = 0, bio = 0, rad = 0, fire = 80, acid = 80)
- secure = 1
+ secure = TRUE
/obj/structure/closet/secure_closet/run_obj_armor(damage_amount, damage_type, damage_flag = 0, attack_dir)
if(damage_flag == "melee" && damage_amount < 20)
diff --git a/code/game/objects/structures/crates_lockers/closets/secure/security.dm b/code/game/objects/structures/crates_lockers/closets/secure/security.dm
index 8dfb71cd86..9102a8e019 100644
--- a/code/game/objects/structures/crates_lockers/closets/secure/security.dm
+++ b/code/game/objects/structures/crates_lockers/closets/secure/security.dm
@@ -196,7 +196,7 @@
/obj/structure/closet/secure_closet/brig
name = "brig locker"
req_access = list(GLOB.access_brig)
- anchored = 1
+ anchored = TRUE
var/id = null
/obj/structure/closet/secure_closet/brig/PopulateContents()
diff --git a/code/game/objects/structures/crates_lockers/crates/large.dm b/code/game/objects/structures/crates_lockers/crates/large.dm
index 53293ebb09..06702843ac 100644
--- a/code/game/objects/structures/crates_lockers/crates/large.dm
+++ b/code/game/objects/structures/crates_lockers/crates/large.dm
@@ -2,7 +2,7 @@
name = "large crate"
desc = "A hefty wooden crate."
icon_state = "largecrate"
- density = 1
+ density = TRUE
material_drop = /obj/item/stack/sheet/mineral/wood
delivery_icon = "deliverybox"
diff --git a/code/game/objects/structures/crates_lockers/crates/secure.dm b/code/game/objects/structures/crates_lockers/crates/secure.dm
index c118800636..57cc82662e 100644
--- a/code/game/objects/structures/crates_lockers/crates/secure.dm
+++ b/code/game/objects/structures/crates_lockers/crates/secure.dm
@@ -2,8 +2,8 @@
desc = "A secure crate."
name = "secure crate"
icon_state = "securecrate"
- secure = 1
- locked = 1
+ secure = TRUE
+ locked = TRUE
max_integrity = 500
armor = list(melee = 30, bullet = 50, laser = 50, energy = 100, bomb = 0, bio = 0, rad = 0, fire = 80, acid = 80)
var/tamperproof = 0
diff --git a/code/game/objects/structures/displaycase.dm b/code/game/objects/structures/displaycase.dm
index ee2be86fba..ac08947e9b 100644
--- a/code/game/objects/structures/displaycase.dm
+++ b/code/game/objects/structures/displaycase.dm
@@ -3,8 +3,8 @@
icon = 'icons/obj/stationobjs.dmi'
icon_state = "glassbox0"
desc = "A display case for prized possessions."
- density = 1
- anchored = 1
+ density = TRUE
+ anchored = TRUE
resistance_flags = ACID_PROOF
armor = list(melee = 30, bullet = 0, laser = 0, energy = 0, bomb = 10, bio = 0, rad = 0, fire = 70, acid = 100)
max_integrity = 200
@@ -59,7 +59,7 @@
/obj/structure/displaycase/obj_break(damage_flag)
if(!broken && !(flags & NODECONSTRUCT))
- density = 0
+ density = FALSE
broken = 1
new /obj/item/weapon/shard( src.loc )
playsound(src, "shatter", 70, 1)
@@ -189,8 +189,8 @@
/obj/structure/displaycase_chassis
- anchored = 1
- density = 0
+ anchored = TRUE
+ density = FALSE
name = "display case chassis"
desc = "wooden base of display case"
icon = 'icons/obj/stationobjs.dmi'
diff --git a/code/game/objects/structures/divine.dm b/code/game/objects/structures/divine.dm
index 2058d1ed24..208bc79d4f 100644
--- a/code/game/objects/structures/divine.dm
+++ b/code/game/objects/structures/divine.dm
@@ -3,8 +3,8 @@
desc = "An altar designed to perform blood sacrifice for a deity."
icon = 'icons/obj/hand_of_god_structures.dmi'
icon_state = "sacrificealtar"
- anchored = 1
- density = 0
+ anchored = TRUE
+ density = FALSE
can_buckle = 1
/obj/structure/sacrificealtar/attack_hand(mob/living/user)
@@ -23,8 +23,8 @@
desc = "A fountain containing the waters of life."
icon = 'icons/obj/hand_of_god_structures.dmi'
icon_state = "fountain"
- anchored = 1
- density = 1
+ anchored = TRUE
+ density = TRUE
var/time_between_uses = 1800
var/last_process = 0
diff --git a/code/game/objects/structures/door_assembly.dm b/code/game/objects/structures/door_assembly.dm
index 1b516d25c5..a03d6af048 100644
--- a/code/game/objects/structures/door_assembly.dm
+++ b/code/game/objects/structures/door_assembly.dm
@@ -3,8 +3,8 @@
icon = 'icons/obj/doors/airlocks/station/public.dmi'
icon_state = "construction"
var/overlays_file = 'icons/obj/doors/airlocks/station/overlays.dmi'
- anchored = 0
- density = 1
+ anchored = FALSE
+ density = TRUE
max_integrity = 200
var/state = 0
var/mineral = null
@@ -24,7 +24,7 @@
/obj/structure/door_assembly/door_assembly_0
name = "airlock assembly"
airlock_type = /obj/machinery/door/airlock
- anchored = 1
+ anchored = TRUE
state = 1
/obj/structure/door_assembly/door_assembly_com
@@ -34,7 +34,7 @@
icontext = "com"
glass_type = /obj/machinery/door/airlock/glass_command
airlock_type = /obj/machinery/door/airlock/command
- anchored = 1
+ anchored = TRUE
state = 1
/obj/structure/door_assembly/door_assembly_com/glass
@@ -48,7 +48,7 @@
icontext = "sec"
glass_type = /obj/machinery/door/airlock/glass_security
airlock_type = /obj/machinery/door/airlock/security
- anchored = 1
+ anchored = TRUE
state = 1
/obj/structure/door_assembly/door_assembly_sec/glass
@@ -62,7 +62,7 @@
icontext = "eng"
glass_type = /obj/machinery/door/airlock/glass_engineering
airlock_type = /obj/machinery/door/airlock/engineering
- anchored = 1
+ anchored = TRUE
state = 1
/obj/structure/door_assembly/door_assembly_eng/glass
@@ -76,7 +76,7 @@
icontext = "min"
glass_type = /obj/machinery/door/airlock/glass_mining
airlock_type = /obj/machinery/door/airlock/mining
- anchored = 1
+ anchored = TRUE
state = 1
/obj/structure/door_assembly/door_assembly_min/glass
@@ -90,7 +90,7 @@
icontext = "atmo"
glass_type = /obj/machinery/door/airlock/glass_atmos
airlock_type = /obj/machinery/door/airlock/atmos
- anchored = 1
+ anchored = TRUE
state = 1
/obj/structure/door_assembly/door_assembly_atmo/glass
@@ -104,7 +104,7 @@
icontext = "res"
glass_type = /obj/machinery/door/airlock/glass_research
airlock_type = /obj/machinery/door/airlock/research
- anchored = 1
+ anchored = TRUE
state = 1
/obj/structure/door_assembly/door_assembly_research/glass
@@ -118,7 +118,7 @@
icontext = "sci"
glass_type = /obj/machinery/door/airlock/glass_science
airlock_type = /obj/machinery/door/airlock/science
- anchored = 1
+ anchored = TRUE
state = 1
/obj/structure/door_assembly/door_assembly_science/glass
@@ -132,7 +132,7 @@
icontext = "med"
glass_type = /obj/machinery/door/airlock/glass_medical
airlock_type = /obj/machinery/door/airlock/medical
- anchored = 1
+ anchored = TRUE
state = 1
/obj/structure/door_assembly/door_assembly_med/glass
@@ -146,7 +146,7 @@
icontext = "mai"
glass_type = /obj/machinery/door/airlock/glass_maintenance
airlock_type = /obj/machinery/door/airlock/maintenance
- anchored = 1
+ anchored = TRUE
state = 1
/obj/structure/door_assembly/door_assembly_mai/glass
@@ -161,7 +161,7 @@
icontext = "ext"
glass_type = /obj/machinery/door/airlock/glass_external
airlock_type = /obj/machinery/door/airlock/external
- anchored = 1
+ anchored = TRUE
state = 1
/obj/structure/door_assembly/door_assembly_ext/glass
@@ -174,7 +174,7 @@
typetext = "freezer"
icontext = "fre"
airlock_type = /obj/machinery/door/airlock/freezer
- anchored = 1
+ anchored = TRUE
state = 1
/obj/structure/door_assembly/door_assembly_hatch
@@ -184,7 +184,7 @@
typetext = "hatch"
icontext = "hatch"
airlock_type = /obj/machinery/door/airlock/hatch
- anchored = 1
+ anchored = TRUE
state = 1
/obj/structure/door_assembly/door_assembly_mhatch
@@ -194,7 +194,7 @@
typetext = "maintenance_hatch"
icontext = "mhatch"
airlock_type = /obj/machinery/door/airlock/maintenance_hatch
- anchored = 1
+ anchored = TRUE
state = 1
/obj/structure/door_assembly/door_assembly_glass
@@ -202,7 +202,7 @@
icon = 'icons/obj/doors/airlocks/station2/glass.dmi'
overlays_file = 'icons/obj/doors/airlocks/station2/overlays.dmi'
airlock_type = /obj/machinery/door/airlock/glass
- anchored = 1
+ anchored = TRUE
state = 1
mineral = "glass"
material = "glass"
@@ -211,7 +211,7 @@
name = "gold airlock assembly"
icon = 'icons/obj/doors/airlocks/station/gold.dmi'
airlock_type = /obj/machinery/door/airlock/gold
- anchored = 1
+ anchored = TRUE
state = 1
mineral = "gold"
@@ -219,7 +219,7 @@
name = "silver airlock assembly"
icon = 'icons/obj/doors/airlocks/station/silver.dmi'
airlock_type = /obj/machinery/door/airlock/silver
- anchored = 1
+ anchored = TRUE
state = 1
mineral = "silver"
@@ -227,7 +227,7 @@
name = "diamond airlock assembly"
icon = 'icons/obj/doors/airlocks/station/diamond.dmi'
airlock_type = /obj/machinery/door/airlock/diamond
- anchored = 1
+ anchored = TRUE
state = 1
mineral = "diamond"
@@ -235,7 +235,7 @@
name = "uranium airlock assembly"
icon = 'icons/obj/doors/airlocks/station/uranium.dmi'
airlock_type = /obj/machinery/door/airlock/uranium
- anchored = 1
+ anchored = TRUE
state = 1
mineral = "uranium"
@@ -243,7 +243,7 @@
name = "plasma airlock assembly"
icon = 'icons/obj/doors/airlocks/station/plasma.dmi'
airlock_type = /obj/machinery/door/airlock/plasma
- anchored = 1
+ anchored = TRUE
state = 1
mineral = "plasma"
@@ -252,7 +252,7 @@
desc = "Honk"
icon = 'icons/obj/doors/airlocks/station/bananium.dmi'
airlock_type = /obj/machinery/door/airlock/clown
- anchored = 1
+ anchored = TRUE
state = 1
mineral = "bananium"
@@ -260,7 +260,7 @@
name = "sandstone airlock assembly"
icon = 'icons/obj/doors/airlocks/station/sandstone.dmi'
airlock_type = /obj/machinery/door/airlock/sandstone
- anchored = 1
+ anchored = TRUE
state = 1
mineral = "sandstone"
@@ -272,7 +272,7 @@
icontext = "titanium"
glass_type = /obj/machinery/door/airlock/glass_titanium
airlock_type = /obj/machinery/door/airlock/titanium
- anchored = 1
+ anchored = TRUE
state = 1
mineral = "titanium"
@@ -287,7 +287,7 @@
typetext = "highsecurity"
icontext = "highsec"
airlock_type = /obj/machinery/door/airlock/highsecurity
- anchored = 1
+ anchored = TRUE
state = 1
/obj/structure/door_assembly/door_assembly_vault
@@ -297,7 +297,7 @@
typetext = "vault"
icontext = "vault"
airlock_type = /obj/machinery/door/airlock/vault
- anchored = 1
+ anchored = TRUE
state = 1
/obj/structure/door_assembly/door_assembly_shuttle
@@ -307,7 +307,7 @@
typetext = "shuttle"
icontext = "shuttle"
airlock_type = /obj/machinery/door/airlock/shuttle
- anchored = 1
+ anchored = TRUE
state = 1
/obj/structure/door_assembly/door_assembly_cult
@@ -317,7 +317,7 @@
typetext = "cult"
icontext = "cult"
airlock_type = /obj/machinery/door/airlock/cult
- anchored = 1
+ anchored = TRUE
state = 1
/obj/structure/door_assembly/door_assembly_cult/glass
@@ -336,7 +336,7 @@
name = "wooden airlock assembly"
icon = 'icons/obj/doors/airlocks/station/wood.dmi'
airlock_type = /obj/machinery/door/airlock/wood
- anchored = 1
+ anchored = TRUE
state = 1
mineral = "wood"
@@ -347,7 +347,7 @@
icontext = "viro"
glass_type = /obj/machinery/door/airlock/glass_virology
airlock_type = /obj/machinery/door/airlock/virology
- anchored = 1
+ anchored = TRUE
state = 1
/obj/structure/door_assembly/door_assembly_viro/glass
@@ -360,7 +360,7 @@
overlays_file = 'icons/obj/doors/airlocks/centcom/overlays.dmi'
icontext = "ele"
airlock_type = /obj/machinery/door/airlock/centcom
- anchored = 1
+ anchored = TRUE
state = 1
/obj/structure/door_assembly/attackby(obj/item/W, mob/user, params)
@@ -394,100 +394,100 @@
icontype = input(user, "Please select a paintjob for this airlock.") in optionlist
if((!in_range(src, usr) && src.loc != usr) || !WT.use(user))
return
- var/has_solid = 0
- var/has_glass = 0
+ var/has_solid = FALSE
+ var/has_glass = FALSE
switch(icontype)
if("Public")
icon = 'icons/obj/doors/airlocks/station/public.dmi'
overlays_file = 'icons/obj/doors/airlocks/station/overlays.dmi'
typetext = ""
icontext = ""
- has_solid = 1
- has_glass = 1
+ has_solid = TRUE
+ has_glass = TRUE
if("Public2")
icon = 'icons/obj/doors/airlocks/station2/glass.dmi'
overlays_file = 'icons/obj/doors/airlocks/station2/overlays.dmi'
typetext = ""
icontext = ""
- has_solid = 1
- has_glass = 1
+ has_solid = TRUE
+ has_glass = TRUE
if("Engineering")
icon = 'icons/obj/doors/airlocks/station/engineering.dmi'
overlays_file = 'icons/obj/doors/airlocks/station/overlays.dmi'
typetext = "engineering"
icontext = "eng"
- has_solid = 1
- has_glass = 1
+ has_solid = TRUE
+ has_glass = TRUE
if("Atmospherics")
icon = 'icons/obj/doors/airlocks/station/atmos.dmi'
overlays_file = 'icons/obj/doors/airlocks/station/overlays.dmi'
typetext = "atmos"
icontext = "atmo"
- has_solid = 1
- has_glass = 1
+ has_solid = TRUE
+ has_glass = TRUE
if("Security")
icon = 'icons/obj/doors/airlocks/station/security.dmi'
overlays_file = 'icons/obj/doors/airlocks/station/overlays.dmi'
typetext = "security"
icontext = "sec"
- has_solid = 1
- has_glass = 1
+ has_solid = TRUE
+ has_glass = TRUE
if("Command")
icon = 'icons/obj/doors/airlocks/station/command.dmi'
overlays_file = 'icons/obj/doors/airlocks/station/overlays.dmi'
typetext = "command"
icontext = "com"
- has_solid = 1
- has_glass = 1
+ has_solid = TRUE
+ has_glass = TRUE
if("Medical")
icon = 'icons/obj/doors/airlocks/station/medical.dmi'
overlays_file = 'icons/obj/doors/airlocks/station/overlays.dmi'
typetext = "medical"
icontext = "med"
- has_solid = 1
- has_glass = 1
+ has_solid = TRUE
+ has_glass = TRUE
if("Research")
icon = 'icons/obj/doors/airlocks/station/research.dmi'
overlays_file = 'icons/obj/doors/airlocks/station/overlays.dmi'
typetext = "research"
icontext = "res"
- has_solid = 1
- has_glass = 1
+ has_solid = TRUE
+ has_glass = TRUE
if("Science")
icon = 'icons/obj/doors/airlocks/station/science.dmi'
overlays_file = 'icons/obj/doors/airlocks/station/overlays.dmi'
typetext = "research"
icontext = "res"
- has_solid = 1
- has_glass = 1
+ has_solid = TRUE
+ has_glass = TRUE
if("Mining")
icon = 'icons/obj/doors/airlocks/station/mining.dmi'
overlays_file = 'icons/obj/doors/airlocks/station/overlays.dmi'
typetext = "mining"
icontext = "min"
- has_solid = 1
- has_glass = 1
+ has_solid = TRUE
+ has_glass = TRUE
if("Maintenance")
icon = 'icons/obj/doors/airlocks/station/maintenance.dmi'
overlays_file = 'icons/obj/doors/airlocks/station/overlays.dmi'
typetext = "maintenance"
icontext = "mai"
- has_solid = 1
- has_glass = 0
+ has_solid = TRUE
+ has_glass = FALSE
if("External")
icon = 'icons/obj/doors/airlocks/external/external.dmi'
overlays_file = 'icons/obj/doors/airlocks/external/overlays.dmi'
typetext = "external"
icontext = "ext"
- has_solid = 1
- has_glass = 0
+ has_solid = TRUE
+ has_glass = FALSE
if("High Security")
icon = 'icons/obj/doors/airlocks/highsec/highsec.dmi'
overlays_file = 'icons/obj/doors/airlocks/highsec/overlays.dmi'
typetext = "highsecurity"
icontext = "highsec"
- has_solid = 1
- has_glass = 0
+ has_solid = TRUE
+ has_glass = FALSE
if(has_solid)
airlock_type = text2path("/obj/machinery/door/airlock/[typetext]")
else
@@ -534,7 +534,7 @@
return
to_chat(user, "You secure the airlock assembly.")
src.name = "secured airlock assembly"
- src.anchored = 1
+ src.anchored = TRUE
else
to_chat(user, "There is another door here!")
@@ -548,7 +548,7 @@
return
to_chat(user, "You unsecure the airlock assembly.")
name = "airlock assembly"
- anchored = 0
+ anchored = FALSE
else if(istype(W, /obj/item/stack/cable_coil) && state == 0 && anchored )
var/obj/item/stack/cable_coil/C = W
diff --git a/code/game/objects/structures/dresser.dm b/code/game/objects/structures/dresser.dm
index c9ff698411..8c1db44563 100644
--- a/code/game/objects/structures/dresser.dm
+++ b/code/game/objects/structures/dresser.dm
@@ -3,8 +3,8 @@
desc = "A nicely-crafted wooden dresser. It's filled with lots of undies."
icon = 'icons/obj/stationobjs.dmi'
icon_state = "dresser"
- density = 1
- anchored = 1
+ density = TRUE
+ anchored = TRUE
/obj/structure/dresser/attackby(obj/item/P, mob/user, params)
if(istype(P, /obj/item/weapon/wrench))
diff --git a/code/game/objects/structures/extinguisher.dm b/code/game/objects/structures/extinguisher.dm
index 3d1d4bb612..fac717fc7f 100644
--- a/code/game/objects/structures/extinguisher.dm
+++ b/code/game/objects/structures/extinguisher.dm
@@ -3,8 +3,8 @@
desc = "A small wall mounted cabinet designed to hold a fire extinguisher."
icon = 'icons/obj/wallmounts.dmi'
icon_state = "extinguisher_closed"
- anchored = 1
- density = 0
+ anchored = TRUE
+ density = FALSE
max_integrity = 200
integrity_failure = 50
var/obj/item/weapon/extinguisher/stored_extinguisher
diff --git a/code/game/objects/structures/false_walls.dm b/code/game/objects/structures/false_walls.dm
index 02f19211c4..3e030c6c35 100644
--- a/code/game/objects/structures/false_walls.dm
+++ b/code/game/objects/structures/false_walls.dm
@@ -4,7 +4,7 @@
/obj/structure/falsewall
name = "wall"
desc = "A huge chunk of metal used to separate rooms."
- anchored = 1
+ anchored = TRUE
icon = 'icons/turf/walls/wall.dmi'
icon_state = "wall"
var/mineral = /obj/item/stack/sheet/metal
@@ -12,7 +12,7 @@
var/walltype = /turf/closed/wall
var/girder_type = /obj/structure/girder/displaced
var/opening = 0
- density = 1
+ density = TRUE
opacity = 1
max_integrity = 100
@@ -26,7 +26,7 @@
/turf/closed/wall/r_wall/rust,
/turf/closed/wall/clockwork)
smooth = SMOOTH_TRUE
- can_be_unanchored = 0
+ can_be_unanchored = FALSE
CanAtmosPass = ATMOS_PASS_DENSITY
/obj/structure/falsewall/New(loc)
@@ -34,7 +34,7 @@
air_update_turf(1)
/obj/structure/falsewall/Destroy()
- density = 0
+ density = FALSE
air_update_turf(1)
return ..()
@@ -51,7 +51,7 @@
do_the_flick()
sleep(5)
if(!QDELETED(src))
- density = 0
+ density = FALSE
set_opacity(0)
update_icon()
else
@@ -60,7 +60,7 @@
opening = 0
return
do_the_flick()
- density = 1
+ density = TRUE
sleep(5)
if(!QDELETED(src))
set_opacity(1)
diff --git a/code/game/objects/structures/fireaxe.dm b/code/game/objects/structures/fireaxe.dm
index 98b77bc4b5..064d056cf1 100644
--- a/code/game/objects/structures/fireaxe.dm
+++ b/code/game/objects/structures/fireaxe.dm
@@ -4,11 +4,11 @@
var/obj/item/weapon/twohanded/fireaxe/fireaxe = new/obj/item/weapon/twohanded/fireaxe
icon = 'icons/obj/wallmounts.dmi'
icon_state = "fireaxe"
- anchored = 1
- density = 0
+ anchored = TRUE
+ density = FALSE
armor = list(melee = 50, bullet = 20, laser = 0, energy = 100, bomb = 10, bio = 100, rad = 100, fire = 90, acid = 50)
- var/locked = 1
- var/open = 0
+ var/locked = TRUE
+ var/open = FALSE
max_integrity = 150
integrity_failure = 50
diff --git a/code/game/objects/structures/flora.dm b/code/game/objects/structures/flora.dm
index ce18836827..e478ff5d92 100644
--- a/code/game/objects/structures/flora.dm
+++ b/code/game/objects/structures/flora.dm
@@ -1,12 +1,12 @@
/obj/structure/flora
resistance_flags = FLAMMABLE
max_integrity = 150
- anchored = 1
+ anchored = TRUE
//trees
/obj/structure/flora/tree
name = "tree"
- density = 1
+ density = TRUE
pixel_x = -16
layer = FLY_LAYER
var/cut = FALSE
@@ -25,7 +25,7 @@
playsound(get_turf(src), 'sound/effects/meteorimpact.ogg', 100 , 0, 0)
icon = 'icons/obj/flora/pinetrees.dmi'
icon_state = "tree_stump"
- density = 0
+ density = FALSE
pixel_x = -16
name += " stump"
cut = TRUE
@@ -129,7 +129,7 @@
name = "bush"
icon = 'icons/obj/flora/snowflora.dmi'
icon_state = "snowbush1"
- anchored = 1
+ anchored = TRUE
/obj/structure/flora/bush/Initialize()
icon_state = "snowbush[rand(1, 6)]"
@@ -308,7 +308,7 @@
desc = "A volcanic rock"
icon = 'icons/obj/flora/rocks.dmi'
resistance_flags = FIRE_PROOF
- density = 1
+ density = TRUE
/obj/structure/flora/rock/Initialize()
..()
diff --git a/code/game/objects/structures/fluff.dm b/code/game/objects/structures/fluff.dm
index d94978b397..b0d17236af 100644
--- a/code/game/objects/structures/fluff.dm
+++ b/code/game/objects/structures/fluff.dm
@@ -87,7 +87,7 @@
/obj/structure/fluff/bus/passable
name = "bus"
icon_state = "frontwalltop"
- density = 0
+ density = FALSE
layer = ABOVE_ALL_MOB_LAYER //except for the stairs tile, which should be set to OBJ_LAYER aka 3.
@@ -126,8 +126,8 @@
/obj/structure/fluff/divine
name = "Miracle"
icon = 'icons/obj/hand_of_god_structures.dmi'
- anchored = 1
- density = 1
+ anchored = TRUE
+ density = TRUE
/obj/structure/fluff/divine/nexus
name = "nexus"
@@ -143,7 +143,7 @@
name = "conversion altar"
desc = "An altar dedicated to a deity."
icon_state = "convertaltar"
- density = 0
+ density = FALSE
can_buckle = 1
/obj/structure/fluff/divine/powerpylon
diff --git a/code/game/objects/structures/ghost_role_spawners.dm b/code/game/objects/structures/ghost_role_spawners.dm
index b675a0560d..ebe6972434 100644
--- a/code/game/objects/structures/ghost_role_spawners.dm
+++ b/code/game/objects/structures/ghost_role_spawners.dm
@@ -41,8 +41,8 @@
outfit = /datum/outfit/ashwalker
roundstart = FALSE
death = FALSE
- anchored = 0
- density = 0
+ anchored = FALSE
+ density = FALSE
flavour_text = "You are an ash walker. Your tribe worships the Necropolis. The wastes are sacred ground, its monsters a blessed bounty. \
You have seen lights in the distance... they foreshadow the arrival of outsiders that seek to tear apart the Necropolis and its domain. Fresh sacrifices for your nest."
assignedrole = "Ash Walker"
@@ -113,8 +113,8 @@
mob_species = /datum/species/golem
roundstart = FALSE
death = FALSE
- anchored = 0
- density = 0
+ anchored = FALSE
+ density = FALSE
var/has_owner = FALSE
var/can_transfer = TRUE //if golems can switch bodies to this new shell
var/mob/living/owner = null //golem's owner if it has one
diff --git a/code/game/objects/structures/girders.dm b/code/game/objects/structures/girders.dm
index 774d023196..9035a79f2f 100644
--- a/code/game/objects/structures/girders.dm
+++ b/code/game/objects/structures/girders.dm
@@ -1,8 +1,8 @@
/obj/structure/girder
name = "girder"
icon_state = "girder"
- anchored = 1
- density = 1
+ anchored = TRUE
+ density = TRUE
layer = BELOW_OBJ_LAYER
var/state = GIRDER_NORMAL
var/girderpasschance = 20 // percentage chance that a projectile passes through the girder.
@@ -302,7 +302,7 @@
/obj/structure/girder/displaced
name = "displaced girder"
icon_state = "displaced"
- anchored = 0
+ anchored = FALSE
state = GIRDER_DISPLACED
girderpasschance = 25
max_integrity = 120
diff --git a/code/game/objects/structures/grille.dm b/code/game/objects/structures/grille.dm
index c1bed2f515..c223232754 100644
--- a/code/game/objects/structures/grille.dm
+++ b/code/game/objects/structures/grille.dm
@@ -3,8 +3,8 @@
name = "grille"
icon = 'icons/obj/structures.dmi'
icon_state = "grille"
- density = 1
- anchored = 1
+ density = TRUE
+ anchored = TRUE
flags = CONDUCT
pressure_resistance = 5*ONE_ATMOSPHERE
layer = BELOW_OBJ_LAYER
@@ -156,7 +156,7 @@
WD = new/obj/structure/window/fulltile(loc) //normal window
WD.setDir(dir_to_set)
WD.ini_dir = dir_to_set
- WD.anchored = 0
+ WD.anchored = FALSE
WD.state = 0
ST.use(2)
to_chat(user, "You place [WD] on [src].")
@@ -238,7 +238,7 @@
/obj/structure/grille/broken // Pre-broken grilles for map placement
icon_state = "brokengrille"
- density = 0
+ density = FALSE
obj_integrity = 20
broken = 1
rods_amount = 1
@@ -274,7 +274,7 @@
/obj/structure/grille/ratvar/broken
icon_state = "brokenratvargrille"
- density = 0
+ density = FALSE
obj_integrity = 20
broken = 1
rods_amount = 1
diff --git a/code/game/objects/structures/guncase.dm b/code/game/objects/structures/guncase.dm
index be8c336c06..0a5b40c319 100644
--- a/code/game/objects/structures/guncase.dm
+++ b/code/game/objects/structures/guncase.dm
@@ -4,12 +4,12 @@
desc = "A locker that holds guns."
icon = 'icons/obj/closet.dmi'
icon_state = "shotguncase"
- anchored = 0
- density = 1
+ anchored = FALSE
+ density = TRUE
opacity = 0
var/case_type = ""
var/gun_category = /obj/item/weapon/gun
- var/open = 1
+ var/open = TRUE
var/capacity = 4
/obj/structure/guncase/Initialize(mapload)
diff --git a/code/game/objects/structures/hivebot.dm b/code/game/objects/structures/hivebot.dm
index e4ea4a7ebf..ea649a1f86 100644
--- a/code/game/objects/structures/hivebot.dm
+++ b/code/game/objects/structures/hivebot.dm
@@ -3,8 +3,8 @@
desc = "Some odd beacon thing."
icon = 'icons/mob/hivebot.dmi'
icon_state = "def_radar-off"
- anchored = 1
- density = 1
+ anchored = TRUE
+ density = TRUE
var/bot_type = "norm"
var/bot_amt = 10
diff --git a/code/game/objects/structures/holosign.dm b/code/game/objects/structures/holosign.dm
index b1d20a8f65..b909da8347 100644
--- a/code/game/objects/structures/holosign.dm
+++ b/code/game/objects/structures/holosign.dm
@@ -4,7 +4,7 @@
/obj/structure/holosign
name = "holo sign"
icon = 'icons/effects/effects.dmi'
- anchored = 1
+ anchored = TRUE
max_integrity = 1
armor = list(melee = 0, bullet = 50, laser = 50, energy = 50, bomb = 0, bio = 0, rad = 0, fire = 20, acid = 20)
var/obj/item/weapon/holosign_creator/projector
@@ -44,7 +44,7 @@
desc = "A short holographic barrier which can only be passed by walking."
icon_state = "holosign_sec"
pass_flags = LETPASSTHROW
- density = 1
+ density = TRUE
max_integrity = 20
var/allow_walk = 1 //can we pass through it on walk intent
@@ -86,7 +86,7 @@
/obj/structure/holosign/barrier/cyborg
name = "Energy Field"
desc = "A fragile energy field that blocks movement. Excels at blocking lethal projectiles."
- density = 1
+ density = TRUE
max_integrity = 10
allow_walk = 0
diff --git a/code/game/objects/structures/janicart.dm b/code/game/objects/structures/janicart.dm
index e8387750f3..2ca456e060 100644
--- a/code/game/objects/structures/janicart.dm
+++ b/code/game/objects/structures/janicart.dm
@@ -3,8 +3,8 @@
desc = "This is the alpha and omega of sanitation."
icon = 'icons/obj/janitor.dmi'
icon_state = "cart"
- anchored = 0
- density = 1
+ anchored = FALSE
+ density = TRUE
container_type = OPENCONTAINER
//copypaste sorry
var/amount_per_transfer_from_this = 5 //shit I dunno, adding this so syringes stop runtime erroring. --NeoFite
diff --git a/code/game/objects/structures/kitchen_spike.dm b/code/game/objects/structures/kitchen_spike.dm
index 2dbf54dff5..c1a9e8b565 100644
--- a/code/game/objects/structures/kitchen_spike.dm
+++ b/code/game/objects/structures/kitchen_spike.dm
@@ -6,8 +6,8 @@
icon = 'icons/obj/kitchen.dmi'
icon_state = "spikeframe"
desc = "The frame of a meat spike."
- density = 1
- anchored = 0
+ density = TRUE
+ anchored = FALSE
max_integrity = 200
/obj/structure/kitchenspike_frame/attackby(obj/item/I, mob/user, params)
@@ -46,8 +46,8 @@
icon = 'icons/obj/kitchen.dmi'
icon_state = "spike"
desc = "A spike for collecting meat from animals"
- density = 1
- anchored = 1
+ density = TRUE
+ anchored = TRUE
buckle_lying = 0
can_buckle = 1
max_integrity = 250
diff --git a/code/game/objects/structures/lattice.dm b/code/game/objects/structures/lattice.dm
index 9b1268e30b..60f4e86473 100644
--- a/code/game/objects/structures/lattice.dm
+++ b/code/game/objects/structures/lattice.dm
@@ -3,8 +3,8 @@
desc = "A lightweight support lattice. These hold our station together."
icon = 'icons/obj/smooth_structures/lattice.dmi'
icon_state = "lattice"
- density = 0
- anchored = 1
+ density = FALSE
+ anchored = TRUE
armor = list(melee = 50, bullet = 0, laser = 0, energy = 0, bomb = 0, bio = 0, rad = 0, fire = 80, acid = 50)
max_integrity = 50
layer = LATTICE_LAYER //under pipes
diff --git a/code/game/objects/structures/memorial.dm b/code/game/objects/structures/memorial.dm
index 51dad9fef7..243a7e3cba 100644
--- a/code/game/objects/structures/memorial.dm
+++ b/code/game/objects/structures/memorial.dm
@@ -17,5 +17,5 @@ This memorial has been designed for him and any future coders to perish.
desc = "Here rests an unknown employee\nUnknown by name or rank\nWhose acts will not be forgotten"
icon = 'icons/obj/tomb.dmi'
icon_state = "memorial"
- density = 1
- anchored = 1
\ No newline at end of file
+ density = TRUE
+ anchored = TRUE
\ No newline at end of file
diff --git a/code/game/objects/structures/mineral_doors.dm b/code/game/objects/structures/mineral_doors.dm
index e7a42e4dbd..62d6be6c05 100644
--- a/code/game/objects/structures/mineral_doors.dm
+++ b/code/game/objects/structures/mineral_doors.dm
@@ -3,8 +3,8 @@
/obj/structure/mineral_door
name = "metal door"
- density = 1
- anchored = 1
+ density = TRUE
+ anchored = TRUE
opacity = TRUE
icon = 'icons/obj/doors/mineral_doors.dmi'
@@ -28,7 +28,7 @@
air_update_turf(1)
/obj/structure/mineral_door/Destroy()
- density = 0
+ density = FALSE
air_update_turf(1)
return ..()
@@ -89,7 +89,7 @@
set_opacity(FALSE)
flick("[initial_state]opening",src)
sleep(10)
- density = 0
+ density = FALSE
state = 1
air_update_turf(1)
update_icon()
@@ -108,7 +108,7 @@
playsound(loc, closeSound, 100, 1)
flick("[initial_state]closing",src)
sleep(10)
- density = 1
+ density = TRUE
set_opacity(TRUE)
state = 0
air_update_turf(1)
diff --git a/code/game/objects/structures/mirror.dm b/code/game/objects/structures/mirror.dm
index c8b83c2ad0..d2ea22006e 100644
--- a/code/game/objects/structures/mirror.dm
+++ b/code/game/objects/structures/mirror.dm
@@ -4,8 +4,8 @@
desc = "Mirror mirror on the wall, who's the most robust of them all?"
icon = 'icons/obj/watercloset.dmi'
icon_state = "mirror"
- density = 0
- anchored = 1
+ density = FALSE
+ anchored = TRUE
max_integrity = 200
integrity_failure = 100
diff --git a/code/game/objects/structures/mop_bucket.dm b/code/game/objects/structures/mop_bucket.dm
index 604de1d6c1..2199114a1d 100644
--- a/code/game/objects/structures/mop_bucket.dm
+++ b/code/game/objects/structures/mop_bucket.dm
@@ -3,7 +3,7 @@
desc = "Fill it with water, but don't forget a mop!"
icon = 'icons/obj/janitor.dmi'
icon_state = "mopbucket"
- density = 1
+ density = TRUE
container_type = OPENCONTAINER
var/amount_per_transfer_from_this = 5 //shit I dunno, adding this so syringes stop runtime erroring. --NeoFite
diff --git a/code/game/objects/structures/morgue.dm b/code/game/objects/structures/morgue.dm
index 42eb0af034..e8dca19dfd 100644
--- a/code/game/objects/structures/morgue.dm
+++ b/code/game/objects/structures/morgue.dm
@@ -16,12 +16,12 @@
/obj/structure/bodycontainer
icon = 'icons/obj/stationobjs.dmi'
icon_state = "morgue1"
- density = 1
- anchored = 1
+ density = TRUE
+ anchored = TRUE
max_integrity = 400
var/obj/structure/tray/connected = null
- var/locked = 0
+ var/locked = FALSE
var/opendir = SOUTH
/obj/structure/bodycontainer/Destroy()
@@ -196,7 +196,7 @@ GLOBAL_LIST_EMPTY(crematoriums)
else
audible_message("You hear a roar as the crematorium activates.")
- locked = 1
+ locked = TRUE
update_icon()
for(var/mob/living/M in conts)
@@ -219,7 +219,7 @@ GLOBAL_LIST_EMPTY(crematoriums)
new /obj/effect/decal/cleanable/ash(src)
sleep(30)
if(!QDELETED(src))
- locked = 0
+ locked = FALSE
update_icon()
playsound(src.loc, 'sound/machines/ding.ogg', 50, 1) //you horrible people
@@ -245,10 +245,10 @@ GLOBAL_LIST_EMPTY(crematoriums)
*/
/obj/structure/tray
icon = 'icons/obj/stationobjs.dmi'
- density = 1
+ density = TRUE
layer = BELOW_OBJ_LAYER
var/obj/structure/bodycontainer/connected = null
- anchored = 1
+ anchored = TRUE
pass_flags = LETPASSTHROW
max_integrity = 350
diff --git a/code/game/objects/structures/musician.dm b/code/game/objects/structures/musician.dm
index 1ceb91ccd9..6c89c7d51c 100644
--- a/code/game/objects/structures/musician.dm
+++ b/code/game/objects/structures/musician.dm
@@ -311,8 +311,8 @@
name = "space minimoog"
icon = 'icons/obj/musician.dmi'
icon_state = "minimoog"
- anchored = 1
- density = 1
+ anchored = TRUE
+ density = TRUE
var/datum/song/song
@@ -365,7 +365,7 @@
"[user] tightens \the [src]'s casters.", \
"You tighten \the [src]'s casters. Now it can be played again.", \
"You hear ratchet.")
- anchored = 1
+ anchored = TRUE
else if(anchored)
playsound(src.loc, O.usesound, 50, 1)
to_chat(user, " You begin to loosen \the [src]'s casters...")
@@ -374,6 +374,6 @@
"[user] loosens \the [src]'s casters.", \
"You loosen \the [src]. Now it can be pulled somewhere else.", \
"You hear ratchet.")
- anchored = 0
+ anchored = FALSE
else
return ..()
diff --git a/code/game/objects/structures/noticeboard.dm b/code/game/objects/structures/noticeboard.dm
index 394a4db540..ab1ec54388 100644
--- a/code/game/objects/structures/noticeboard.dm
+++ b/code/game/objects/structures/noticeboard.dm
@@ -3,8 +3,8 @@
desc = "A board for pinning important notices upon."
icon = 'icons/obj/stationobjs.dmi'
icon_state = "nboard00"
- density = 0
- anchored = 1
+ density = FALSE
+ anchored = TRUE
max_integrity = 150
var/notices = 0
diff --git a/code/game/objects/structures/petrified_statue.dm b/code/game/objects/structures/petrified_statue.dm
index 80b69506dc..36233bc155 100644
--- a/code/game/objects/structures/petrified_statue.dm
+++ b/code/game/objects/structures/petrified_statue.dm
@@ -2,8 +2,8 @@
name = "statue"
desc = "An incredibly lifelike marble carving."
icon_state = "human_male"
- density = 1
- anchored = 1
+ density = TRUE
+ anchored = TRUE
max_integrity = 200
var/timer = 240 //eventually the person will be freed
var/mob/living/petrified_mob
diff --git a/code/game/objects/structures/plasticflaps.dm b/code/game/objects/structures/plasticflaps.dm
index fd2d168f50..1194525123 100644
--- a/code/game/objects/structures/plasticflaps.dm
+++ b/code/game/objects/structures/plasticflaps.dm
@@ -4,8 +4,8 @@
icon = 'icons/obj/stationobjs.dmi'
icon_state = "plasticflaps"
armor = list(melee = 100, bullet = 80, laser = 80, energy = 100, bomb = 50, bio = 100, rad = 100, fire = 50, acid = 50)
- density = 0
- anchored = 1
+ density = FALSE
+ anchored = TRUE
layer = ABOVE_MOB_LAYER
var/state = PLASTIC_FLAPS_NORMAL
diff --git a/code/game/objects/structures/reflector.dm b/code/game/objects/structures/reflector.dm
index 817d687c00..3936b2770d 100644
--- a/code/game/objects/structures/reflector.dm
+++ b/code/game/objects/structures/reflector.dm
@@ -3,8 +3,8 @@
icon = 'icons/obj/stock_parts.dmi'
icon_state = "box_0"
desc = "An angled mirror for reflecting lasers. This one does so at a 90 degree angle."
- anchored = 0
- density = 1
+ anchored = FALSE
+ density = TRUE
layer = BELOW_OBJ_LAYER
var/finished = 0
var/admin = 0 //Can't be rotated or deconstructed
@@ -62,7 +62,7 @@
if (do_after(user,20*W.toolspeed, target = src))
if(!src || !WT.isOn())
return
- anchored = 1
+ anchored = TRUE
to_chat(user, "You weld \the [src] to the floor.")
if(1)
if (WT.remove_fuel(0,user))
@@ -154,7 +154,7 @@
/obj/structure/reflector/single/mapping
admin = 1
- anchored = 1
+ anchored = TRUE
//DOUBLE
@@ -177,7 +177,7 @@
/obj/structure/reflector/double/mapping
admin = 1
- anchored = 1
+ anchored = TRUE
//BOX
@@ -201,7 +201,7 @@
/obj/structure/reflector/box/mapping
admin = 1
- anchored = 1
+ anchored = TRUE
/obj/structure/reflector/ex_act()
if(admin)
diff --git a/code/game/objects/structures/safe.dm b/code/game/objects/structures/safe.dm
index a1a2ea65ba..f14ca385a8 100644
--- a/code/game/objects/structures/safe.dm
+++ b/code/game/objects/structures/safe.dm
@@ -10,10 +10,10 @@ FLOOR SAFES
desc = "A huge chunk of metal with a dial embedded in it. Fine print on the dial reads \"Scarborough Arms - 2 tumbler safe, guaranteed thermite resistant, explosion resistant, and assistant resistant.\""
icon = 'icons/obj/structures.dmi'
icon_state = "safe"
- anchored = 1
- density = 1
+ anchored = TRUE
+ density = TRUE
resistance_flags = INDESTRUCTIBLE | LAVA_PROOF | FIRE_PROOF | ACID_PROOF
- var/open = 0 //is the safe open?
+ var/open = FALSE //is the safe open?
var/tumbler_1_pos //the tumbler position- from 0 to 72
var/tumbler_1_open //the tumbler position to open at- 0 to 72
var/tumbler_2_pos
@@ -186,7 +186,7 @@ FLOOR SAFES
/obj/structure/safe/floor
name = "floor safe"
icon_state = "floorsafe"
- density = 0
+ density = FALSE
level = 1 //underfloor
layer = LOW_OBJ_LAYER
diff --git a/code/game/objects/structures/showcase.dm b/code/game/objects/structures/showcase.dm
index a8b05f2458..4e9d7b896b 100644
--- a/code/game/objects/structures/showcase.dm
+++ b/code/game/objects/structures/showcase.dm
@@ -7,8 +7,8 @@
icon = 'icons/obj/stationobjs.dmi'
icon_state = "showcase_1"
desc = "A stand with the empty body of a cyborg bolted to it."
- density = 1
- anchored = 1
+ density = TRUE
+ anchored = TRUE
var/deconstruction_state = SHOWCASE_CONSTRUCTED
/obj/structure/showcase/fakeid
diff --git a/code/game/objects/structures/signs.dm b/code/game/objects/structures/signs.dm
index 50497af187..9195c243a5 100644
--- a/code/game/objects/structures/signs.dm
+++ b/code/game/objects/structures/signs.dm
@@ -1,8 +1,8 @@
/obj/structure/sign
icon = 'icons/obj/decals.dmi'
- anchored = 1
+ anchored = TRUE
opacity = 0
- density = 0
+ density = FALSE
layer = SIGN_LAYER
max_integrity = 100
armor = list(melee = 50, bullet = 0, laser = 0, energy = 0, bomb = 0, bio = 0, rad = 0, fire = 50, acid = 50)
diff --git a/code/game/objects/structures/spirit_board.dm b/code/game/objects/structures/spirit_board.dm
index 7cd9f1d8a1..9ab37e4fc0 100644
--- a/code/game/objects/structures/spirit_board.dm
+++ b/code/game/objects/structures/spirit_board.dm
@@ -3,8 +3,8 @@
desc = "A wooden board with letters etched into it, used in seances."
icon = 'icons/obj/objects.dmi'
icon_state = "spirit_board"
- density = 1
- anchored = 0
+ density = TRUE
+ anchored = FALSE
var/virgin = 1
var/next_use = 0
var/planchette = "A"
diff --git a/code/game/objects/structures/statues.dm b/code/game/objects/structures/statues.dm
index 5cf83b3b29..d6017a0f86 100644
--- a/code/game/objects/structures/statues.dm
+++ b/code/game/objects/structures/statues.dm
@@ -6,8 +6,8 @@
desc = "Placeholder. Yell at Firecage if you SOMEHOW see this."
icon = 'icons/obj/statue.dmi'
icon_state = ""
- density = 1
- anchored = 0
+ density = TRUE
+ anchored = FALSE
max_integrity = 100
var/oreAmount = 5
var/material_drop_type = /obj/item/stack/sheet/metal
@@ -26,7 +26,7 @@
return
user.visible_message("[user] loosened the [name]'s bolts!", \
"You loosen the [name]'s bolts!")
- anchored = 0
+ anchored = FALSE
else
if(!isfloorturf(src.loc))
user.visible_message("A floor must be present to secure the [name]!")
@@ -39,7 +39,7 @@
return
user.visible_message("[user] has secured the [name]'s bolts.", \
"You have secured the [name]'s bolts.")
- anchored = 1
+ anchored = TRUE
else if(istype(W, /obj/item/weapon/gun/energy/plasmacutter))
playsound(src, 'sound/items/welder.ogg', 100, 1)
diff --git a/code/game/objects/structures/table_frames.dm b/code/game/objects/structures/table_frames.dm
index 04ad7189c5..fe0351b531 100644
--- a/code/game/objects/structures/table_frames.dm
+++ b/code/game/objects/structures/table_frames.dm
@@ -14,8 +14,8 @@
desc = "Four metal legs with four framing rods for a table. You could easily pass through this."
icon = 'icons/obj/structures.dmi'
icon_state = "table_frame"
- density = 0
- anchored = 0
+ density = FALSE
+ anchored = FALSE
layer = PROJECTILE_HIT_THRESHHOLD_LAYER
max_integrity = 100
var/framestack = /obj/item/stack/rods
diff --git a/code/game/objects/structures/tables_racks.dm b/code/game/objects/structures/tables_racks.dm
index 450e1b1c24..c7e31ca38f 100644
--- a/code/game/objects/structures/tables_racks.dm
+++ b/code/game/objects/structures/tables_racks.dm
@@ -17,15 +17,15 @@
desc = "A square piece of metal standing on four metal legs. It can not move."
icon = 'icons/obj/smooth_structures/table.dmi'
icon_state = "table"
- density = 1
- anchored = 1
+ density = TRUE
+ anchored = TRUE
layer = TABLE_LAYER
climbable = TRUE
pass_flags = LETPASSTHROW //You can throw objects over this, despite it's density.")
var/frame = /obj/structure/table_frame
var/framestack = /obj/item/stack/rods
var/buildstack = /obj/item/stack/sheet/metal
- var/busy = 0
+ var/busy = FALSE
var/buildstackamount = 1
var/framestackamount = 2
var/deconstruction_ready = 1
@@ -402,8 +402,8 @@
desc = "Different from the Middle Ages version."
icon = 'icons/obj/objects.dmi'
icon_state = "rack"
- density = 1
- anchored = 1
+ density = TRUE
+ anchored = TRUE
pass_flags = LETPASSTHROW //You can throw objects over this, despite it's density.
max_integrity = 20
@@ -470,7 +470,7 @@
/obj/structure/rack/deconstruct(disassembled = TRUE)
if(!(flags&NODECONSTRUCT))
- density = 0
+ density = FALSE
var/obj/item/weapon/rack_parts/newparts = new(loc)
transfer_fingerprints_to(newparts)
qdel(src)
diff --git a/code/game/objects/structures/tank_dispenser.dm b/code/game/objects/structures/tank_dispenser.dm
index 6ba6f882d4..b0cc3f6045 100644
--- a/code/game/objects/structures/tank_dispenser.dm
+++ b/code/game/objects/structures/tank_dispenser.dm
@@ -5,8 +5,8 @@
desc = "A simple yet bulky storage device for gas tanks. Holds up to 10 oxygen tanks and 10 plasma tanks."
icon = 'icons/obj/objects.dmi'
icon_state = "dispenser"
- density = 1
- anchored = 1
+ density = TRUE
+ anchored = TRUE
max_integrity = 300
var/oxygentanks = TANK_DISPENSER_CAPACITY
var/plasmatanks = TANK_DISPENSER_CAPACITY
@@ -68,7 +68,7 @@
to_chat(user, "You put [I] in [src].")
update_icon()
-/obj/structure/tank_dispenser/ui_interact(mob/user, ui_key = "main", datum/tgui/ui = null, force_open = 0, \
+/obj/structure/tank_dispenser/ui_interact(mob/user, ui_key = "main", datum/tgui/ui = null, force_open = FALSE, \
datum/tgui/master_ui = null, datum/ui_state/state = GLOB.physical_state)
ui = SStgui.try_update_ui(user, src, ui_key, ui, force_open)
if(!ui)
diff --git a/code/game/objects/structures/target_stake.dm b/code/game/objects/structures/target_stake.dm
index 0c3ed5fb54..f1906d31fe 100644
--- a/code/game/objects/structures/target_stake.dm
+++ b/code/game/objects/structures/target_stake.dm
@@ -3,7 +3,7 @@
desc = "A thin platform with negatively-magnetized wheels."
icon = 'icons/obj/objects.dmi'
icon_state = "target_stake"
- density = 1
+ density = TRUE
flags = CONDUCT
var/obj/item/target/pinned_target
@@ -26,7 +26,7 @@
if(istype(T) && user.drop_item())
pinned_target = T
T.pinnedLoc = src
- T.density = 1
+ T.density = TRUE
T.layer = OBJ_LAYER + 0.01
T.loc = loc
to_chat(user, "You slide the target into the stake.")
diff --git a/code/game/objects/structures/transit_tubes/transit_tube.dm b/code/game/objects/structures/transit_tubes/transit_tube.dm
index 730b9e057c..23eebcc9d3 100644
--- a/code/game/objects/structures/transit_tubes/transit_tube.dm
+++ b/code/game/objects/structures/transit_tubes/transit_tube.dm
@@ -3,9 +3,9 @@
name = "transit tube"
icon = 'icons/obj/atmospherics/pipes/transit_tube.dmi'
icon_state = "straight"
- density = 1
+ density = TRUE
layer = LOW_ITEM_LAYER
- anchored = 1
+ anchored = TRUE
climbable = 1
var/tube_construction = /obj/structure/c_transit_tube
var/list/tube_dirs //list of directions this tube section can connect to.
@@ -187,7 +187,7 @@
dir = WEST
/obj/structure/transit_tube/diagonal/crossing
- density = 0
+ density = FALSE
icon_state = "diagonal_crossing"
tube_construction = /obj/structure/c_transit_tube/diagonal/crossing
@@ -261,7 +261,7 @@
/obj/structure/transit_tube/crossing
icon_state = "crossing"
tube_construction = /obj/structure/c_transit_tube/crossing
- density = 0
+ density = FALSE
//mostly for mapping use
/obj/structure/transit_tube/crossing/horizontal
diff --git a/code/game/objects/structures/transit_tubes/transit_tube_construction.dm b/code/game/objects/structures/transit_tubes/transit_tube_construction.dm
index aaab5f040f..bff08d4814 100644
--- a/code/game/objects/structures/transit_tubes/transit_tube_construction.dm
+++ b/code/game/objects/structures/transit_tubes/transit_tube_construction.dm
@@ -5,9 +5,9 @@
name = "unattached transit tube"
icon = 'icons/obj/atmospherics/pipes/transit_tube.dmi'
icon_state = "straight"
- density = 0
+ density = FALSE
layer = LOW_ITEM_LAYER //same as the built tube
- anchored = 0
+ anchored = FALSE
var/flipped = 0
var/build_type = /obj/structure/transit_tube
var/flipped_build_type
@@ -154,5 +154,5 @@
name = "unattached transit tube pod"
icon = 'icons/obj/atmospherics/pipes/transit_tube.dmi'
icon_state = "pod"
- anchored = 0
- density = 0
+ anchored = FALSE
+ density = FALSE
diff --git a/code/game/objects/structures/transit_tubes/transit_tube_pod.dm b/code/game/objects/structures/transit_tubes/transit_tube_pod.dm
index b5458d81f8..537e6d3b61 100644
--- a/code/game/objects/structures/transit_tubes/transit_tube_pod.dm
+++ b/code/game/objects/structures/transit_tubes/transit_tube_pod.dm
@@ -2,8 +2,8 @@
icon = 'icons/obj/atmospherics/pipes/transit_tube.dmi'
icon_state = "pod"
animate_movement = FORWARD_STEPS
- anchored = 1
- density = 1
+ anchored = TRUE
+ density = TRUE
layer = BELOW_OBJ_LAYER
var/moving = 0
var/datum/gas_mixture/air_contents = new()
@@ -138,7 +138,7 @@
current_tube.pod_stopped(src, dir)
break
- density = 1
+ density = TRUE
moving = 0
var/obj/structure/transit_tube/TT = locate(/obj/structure/transit_tube) in loc
diff --git a/code/game/objects/structures/traps.dm b/code/game/objects/structures/traps.dm
index dec661105a..d82428ad98 100644
--- a/code/game/objects/structures/traps.dm
+++ b/code/game/objects/structures/traps.dm
@@ -3,7 +3,7 @@
desc = "stepping on me is a guaranteed bad day"
icon = 'icons/obj/hand_of_god_structures.dmi'
icon_state = "trap"
- density = 0
+ density = FALSE
anchored = TRUE
alpha = 30 //initially quite hidden when not "recharging"
var/last_trigger = 0
@@ -130,7 +130,7 @@
name = "divine ward"
desc = "A divine barrier, It looks like you could destroy it with enough effort, or wait for it to dissipate..."
icon_state = "ward"
- density = 1
+ density = TRUE
time_between_triggers = 1200 //Exists for 2 minutes
diff --git a/code/game/objects/structures/watercloset.dm b/code/game/objects/structures/watercloset.dm
index 4f5a7f932c..e8f0ea9b6f 100644
--- a/code/game/objects/structures/watercloset.dm
+++ b/code/game/objects/structures/watercloset.dm
@@ -3,9 +3,9 @@
desc = "The HT-451, a torque rotation-based, waste disposal unit for small matter. This one seems remarkably clean."
icon = 'icons/obj/watercloset.dmi'
icon_state = "toilet00"
- density = 0
- anchored = 1
- var/open = 0 //if the lid is up
+ density = FALSE
+ anchored = TRUE
+ var/open = FALSE //if the lid is up
var/cistern = 0 //if the cistern bit is open
var/w_items = 0 //the combined w_class of all the items in the cistern
var/mob/living/swirlie = null //the mob being given a swirlie
@@ -124,8 +124,8 @@
desc = "The HU-452, an experimental urinal. Comes complete with experimental urinal cake."
icon = 'icons/obj/watercloset.dmi'
icon_state = "urinal"
- density = 0
- anchored = 1
+ density = FALSE
+ anchored = TRUE
var/exposed = 0 // can you currently put an item inside
var/obj/item/hiddenitem = null // what's in the urinal
@@ -194,10 +194,10 @@
desc = "The HS-451. Installed in the 2550s by the Nanotrasen Hygiene Division."
icon = 'icons/obj/watercloset.dmi'
icon_state = "shower"
- density = 0
- anchored = 1
+ density = FALSE
+ anchored = TRUE
use_power = NO_POWER_USE
- var/on = 0
+ var/on = FALSE
var/obj/effect/mist/mymist = null
var/ismist = 0 //needs a var so we can make it linger~
var/watertemp = "normal" //freezing, normal, or boiling
@@ -208,7 +208,7 @@
icon = 'icons/obj/watercloset.dmi'
icon_state = "mist"
layer = FLY_LAYER
- anchored = 1
+ anchored = TRUE
mouse_opacity = 0
@@ -419,8 +419,8 @@
icon = 'icons/obj/watercloset.dmi'
icon_state = "sink"
desc = "A sink used for washing one's hands and face."
- anchored = 1
- var/busy = 0 //Something's being washed at the moment
+ anchored = TRUE
+ var/busy = FALSE //Something's being washed at the moment
var/dispensedreagent = "water" // for whenever plumbing happens
@@ -441,13 +441,13 @@
washing_face = 1
user.visible_message("[user] starts washing their [washing_face ? "face" : "hands"]...", \
"You start washing your [washing_face ? "face" : "hands"]...")
- busy = 1
+ busy = TRUE
if(!do_after(user, 40, target = src))
- busy = 0
+ busy = FALSE
return
- busy = 0
+ busy = FALSE
user.visible_message("[user] washes their [washing_face ? "face" : "hands"] using [src].", \
"You wash your [washing_face ? "face" : "hands"] using [src].")
@@ -512,11 +512,11 @@
if(user.a_intent != INTENT_HARM)
to_chat(user, "You start washing [O]...")
- busy = 1
+ busy = TRUE
if(!do_after(user, 40, target = src))
- busy = 0
+ busy = FALSE
return 1
- busy = 0
+ busy = FALSE
O.clean_blood()
O.acid_level = 0
create_reagents(5)
@@ -567,9 +567,9 @@
color = "#ACD1E9" //Default color, didn't bother hardcoding other colors, mappers can and should easily change it.
alpha = 200 //Mappers can also just set this to 255 if they want curtains that can't be seen through
layer = SIGN_LAYER
- anchored = 1
+ anchored = TRUE
opacity = 0
- density = 0
+ density = FALSE
var/open = TRUE
/obj/structure/curtain/proc/toggle()
@@ -580,13 +580,13 @@
if(!open)
icon_state = "closed"
layer = WALL_OBJ_LAYER
- density = 1
+ density = TRUE
open = FALSE
else
icon_state = "open"
layer = SIGN_LAYER
- density = 0
+ density = FALSE
open = TRUE
/obj/structure/curtain/attackby(obj/item/W, mob/user)
diff --git a/code/game/objects/structures/windoor_assembly.dm b/code/game/objects/structures/windoor_assembly.dm
index 0ecf2b0484..e9834aceab 100644
--- a/code/game/objects/structures/windoor_assembly.dm
+++ b/code/game/objects/structures/windoor_assembly.dm
@@ -14,8 +14,8 @@
name = "windoor Assembly"
icon_state = "l_windoor_assembly01"
- anchored = 0
- density = 0
+ anchored = FALSE
+ density = FALSE
dir = NORTH
var/ini_dir
@@ -24,7 +24,7 @@
//Vars to help with the icon's name
var/facing = "l" //Does the windoor open to the left or right?
- var/secure = 0 //Whether or not this creates a secure windoor
+ var/secure = FALSE //Whether or not this creates a secure windoor
var/state = "01" //How far the door assembly has progressed
CanAtmosPass = ATMOS_PASS_PROC
@@ -40,7 +40,7 @@
air_update_turf(1)
/obj/structure/windoor_assembly/Destroy()
- density = 0
+ density = FALSE
air_update_turf(1)
return ..()
@@ -125,7 +125,7 @@
to_chat(user, "There is already a windoor in that location!")
return
to_chat(user, "You secure the windoor assembly.")
- anchored = 1
+ anchored = TRUE
if(secure)
name = "secure anchored windoor assembly"
else
@@ -140,7 +140,7 @@
if(!src || !anchored)
return
to_chat(user, "You unsecure the windoor assembly.")
- anchored = 0
+ anchored = FALSE
if(secure)
name = "secure windoor assembly"
else
@@ -160,7 +160,7 @@
P.use(2)
to_chat(user, "You reinforce the windoor.")
- secure = 1
+ secure = TRUE
if(anchored)
name = "secure anchored windoor assembly"
else
@@ -265,7 +265,7 @@
if(loc && electronics)
- density = 1 //Shouldn't matter but just incase
+ density = TRUE //Shouldn't matter but just incase
to_chat(user, "You finish the windoor.")
if(secure)
@@ -277,7 +277,7 @@
windoor.icon_state = "rightsecureopen"
windoor.base_state = "rightsecure"
windoor.setDir(dir)
- windoor.density = 0
+ windoor.density = FALSE
if(electronics.one_access)
windoor.req_one_access = electronics.accesses
@@ -300,7 +300,7 @@
windoor.icon_state = "rightopen"
windoor.base_state = "right"
windoor.setDir(dir)
- windoor.density = 0
+ windoor.density = FALSE
windoor.req_access = electronics.accesses
windoor.electronics = electronics
diff --git a/code/game/objects/structures/window.dm b/code/game/objects/structures/window.dm
index 2f005f07a5..c30a3f1092 100644
--- a/code/game/objects/structures/window.dm
+++ b/code/game/objects/structures/window.dm
@@ -2,10 +2,10 @@
name = "window"
desc = "A window."
icon_state = "window"
- density = 1
+ density = TRUE
layer = ABOVE_OBJ_LAYER //Just above doors
pressure_resistance = 4*ONE_ATMOSPHERE
- anchored = 1 //initially is 0 for tile smoothing
+ anchored = TRUE //initially is 0 for tile smoothing
flags = ON_BORDER
max_integrity = 25
var/ini_dir = null
@@ -19,7 +19,7 @@
var/glass_amount = 1
var/mutable_appearance/crack_overlay
var/list/debris = list()
- can_be_unanchored = 1
+ can_be_unanchored = TRUE
resistance_flags = ACID_PROOF
armor = list("melee" = 0, "bullet" = 0, "laser" = 0, "energy" = 0, "bomb" = 0, "bio" = 0, "rad" = 0, "fire" = 80, "acid" = 100)
CanAtmosPass = ATMOS_PASS_PROC
@@ -345,7 +345,7 @@
revrotate()
/obj/structure/window/Destroy()
- density = 0
+ density = FALSE
air_update_turf(1)
update_nearby_icons()
return ..()
diff --git a/code/game/turfs/closed.dm b/code/game/turfs/closed.dm
index f41838f134..0b87c28f8f 100644
--- a/code/game/turfs/closed.dm
+++ b/code/game/turfs/closed.dm
@@ -2,7 +2,7 @@
var/thermite = 0
layer = CLOSED_TURF_LAYER
opacity = 1
- density = 1
+ density = TRUE
blocks_air = 1
/turf/closed/get_smooth_underlay_icon(mutable_appearance/underlay_appearance, turf/asking_turf, adjacency_dir)
diff --git a/code/game/turfs/simulated/floor/light_floor.dm b/code/game/turfs/simulated/floor/light_floor.dm
index d3f7ba8c64..49da7959ab 100644
--- a/code/game/turfs/simulated/floor/light_floor.dm
+++ b/code/game/turfs/simulated/floor/light_floor.dm
@@ -5,7 +5,7 @@
icon_state = "light_on"
floor_tile = /obj/item/stack/tile/light
broken_states = list("light_broken")
- var/on = 1
+ var/on = TRUE
var/state = 0//0 = fine, 1 = flickering, 2 = breaking, 3 = broken
var/list/coloredlights = list("g", "r", "y", "b", "p", "w", "s","o","g")
var/currentcolor = 1
@@ -51,13 +51,13 @@
if(!can_modify_colour)
return
if(!on)
- on = 1
+ on = TRUE
currentcolor = 1
return
else
currentcolor++
if(currentcolor > coloredlights.len)
- on = 0
+ on = FALSE
update_icon()
..() //I am not sure what the parent procs have for attack_hand, best to check later.
diff --git a/code/game/turfs/simulated/minerals.dm b/code/game/turfs/simulated/minerals.dm
index e74dcca188..5af73bbd6d 100644
--- a/code/game/turfs/simulated/minerals.dm
+++ b/code/game/turfs/simulated/minerals.dm
@@ -10,7 +10,7 @@
baseturf = /turf/open/floor/plating/asteroid/airless
initial_gas_mix = "TEMP=2.7"
opacity = 1
- density = 1
+ density = TRUE
blocks_air = 1
layer = EDGED_TURF_LAYER
temperature = TCMB
diff --git a/code/game/turfs/simulated/wall/reinf_walls.dm b/code/game/turfs/simulated/wall/reinf_walls.dm
index 1becd8cadf..4e187bf536 100644
--- a/code/game/turfs/simulated/wall/reinf_walls.dm
+++ b/code/game/turfs/simulated/wall/reinf_walls.dm
@@ -4,7 +4,7 @@
icon = 'icons/turf/walls/reinforced_wall.dmi'
icon_state = "r_wall"
opacity = 1
- density = 1
+ density = TRUE
var/d_state = INTACT
hardness = 10
diff --git a/code/game/turfs/simulated/walls.dm b/code/game/turfs/simulated/walls.dm
index a097b70c6b..bea9841ee7 100644
--- a/code/game/turfs/simulated/walls.dm
+++ b/code/game/turfs/simulated/walls.dm
@@ -227,9 +227,9 @@
O.desc = "Looks hot."
O.icon = 'icons/effects/fire.dmi'
O.icon_state = "2"
- O.anchored = 1
+ O.anchored = TRUE
O.opacity = 1
- O.density = 1
+ O.density = TRUE
O.layer = FLY_LAYER
playsound(src, 'sound/items/welder.ogg', 100, 1)
diff --git a/code/modules/VR/vr_sleeper.dm b/code/modules/VR/vr_sleeper.dm
index bba253a9da..a9f5214f72 100644
--- a/code/modules/VR/vr_sleeper.dm
+++ b/code/modules/VR/vr_sleeper.dm
@@ -81,7 +81,7 @@
ui_interact(occupant)
-/obj/machinery/vr_sleeper/ui_interact(mob/user, ui_key = "main", datum/tgui/ui = null, force_open = 0, datum/tgui/master_ui = null, datum/ui_state/state = GLOB.default_state)
+/obj/machinery/vr_sleeper/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)
ui = SStgui.try_update_ui(user, src, ui_key, ui, force_open)
if(!ui)
ui = new(user, src, ui_key, "vr_sleeper", "VR Sleeper", 475, 340, master_ui, state)
diff --git a/code/modules/admin/fun_balloon.dm b/code/modules/admin/fun_balloon.dm
index d288c63483..bd8a245533 100644
--- a/code/modules/admin/fun_balloon.dm
+++ b/code/modules/admin/fun_balloon.dm
@@ -175,5 +175,5 @@
/area/shuttle_arena
name = "arena"
- has_gravity = 1
- requires_power = 0
+ has_gravity = TRUE
+ requires_power = FALSE
diff --git a/code/modules/admin/secrets.dm b/code/modules/admin/secrets.dm
index edde3138fc..ffad361db8 100644
--- a/code/modules/admin/secrets.dm
+++ b/code/modules/admin/secrets.dm
@@ -578,11 +578,11 @@
log_admin("[key_name(usr)] has removed everyone from purrbation.")
if(E)
- E.processing = 0
+ E.processing = FALSE
if(E.announceWhen>0)
if(alert(usr, "Would you like to alert the crew?", "Alert", "Yes", "No") == "No")
E.announceWhen = -1
- E.processing = 1
+ E.processing = TRUE
if (usr)
log_admin("[key_name(usr)] used secret [item]")
if (ok)
diff --git a/code/modules/admin/topic.dm b/code/modules/admin/topic.dm
index 5099429872..e81c46497b 100644
--- a/code/modules/admin/topic.dm
+++ b/code/modules/admin/topic.dm
@@ -139,7 +139,7 @@
if(E)
var/datum/round_event/event = E.runEvent()
if(event.announceWhen>0)
- event.processing = 0
+ event.processing = FALSE
var/prompt = alert(usr, "Would you like to alert the crew?", "Alert", "Yes", "No", "Cancel")
switch(prompt)
if("Cancel")
@@ -147,7 +147,7 @@
return
if("No")
event.announceWhen = -1
- event.processing = 1
+ event.processing = TRUE
message_admins("[key_name_admin(usr)] has triggered an event. ([E.name])")
log_admin("[key_name(usr)] has triggered an event. ([E.name])")
return
diff --git a/code/modules/admin/verbs/debug.dm b/code/modules/admin/verbs/debug.dm
index 7dc71a2fc5..0f07f31b85 100644
--- a/code/modules/admin/verbs/debug.dm
+++ b/code/modules/admin/verbs/debug.dm
@@ -666,7 +666,7 @@ GLOBAL_PROTECT(AdminProcCallCount)
F.active = 1
F.state = 2
F.power = 250
- F.anchored = 1
+ F.anchored = TRUE
F.warming_up = 3
F.start_fields()
F.update_icon()
diff --git a/code/modules/admin/verbs/mapping.dm b/code/modules/admin/verbs/mapping.dm
index 954f849bf9..c42eb6a05e 100644
--- a/code/modules/admin/verbs/mapping.dm
+++ b/code/modules/admin/verbs/mapping.dm
@@ -61,10 +61,10 @@ GLOBAL_LIST_INIT(admin_verbs_debug_mapping, list(
set category = "Mapping"
set name = "Camera Range Display"
- var/on = 0
+ var/on = FALSE
for(var/turf/T in world)
if(T.maptext)
- on = 1
+ on = TRUE
T.maptext = null
if(!on)
@@ -122,11 +122,8 @@ GLOBAL_LIST_INIT(admin_verbs_debug_mapping, list(
set category = "Mapping"
set name = "Intercom Range Display"
- var/static/intercom_range_display_status = 0
- if(intercom_range_display_status)
- intercom_range_display_status = 0
- else
- intercom_range_display_status = 1
+ var/static/intercom_range_display_status = FALSE
+ intercom_range_display_status = !intercom_range_display_status //blame cyberboss if this breaks something
for(var/obj/effect/debugging/marker/M in world)
qdel(M)
diff --git a/code/modules/assembly/bomb.dm b/code/modules/assembly/bomb.dm
index f54d1f6875..672f91c11b 100644
--- a/code/modules/assembly/bomb.dm
+++ b/code/modules/assembly/bomb.dm
@@ -7,7 +7,7 @@
throw_speed = 2
throw_range = 4
flags = CONDUCT
- var/status = 0 //0 - not readied //1 - bomb finished with welder
+ var/status = FALSE //0 - not readied //1 - bomb finished with welder
var/obj/item/device/assembly_holder/bombassembly = null //The first part of the bomb is an assembly holder, holding an igniter+some device
var/obj/item/weapon/tank/bombtank = null //the second part of the bomb is a plasma tank
origin_tech = "materials=1;engineering=1"
@@ -44,12 +44,12 @@
return
if((istype(W, /obj/item/weapon/weldingtool) && W:welding))
if(!status)
- status = 1
+ status = TRUE
GLOB.bombers += "[key_name(user)] welded a single tank bomb. Temp: [bombtank.air_contents.temperature-T0C]"
message_admins("[key_name_admin(user)] welded a single tank bomb. Temp: [bombtank.air_contents.temperature-T0C]")
to_chat(user, "A pressure hole has been bored to [bombtank] valve. \The [bombtank] can now be ignited.")
else
- status = 0
+ status = FALSE
GLOB.bombers += "[key_name(user)] unwelded a single tank bomb. Temp: [bombtank.air_contents.temperature-T0C]"
to_chat(user, "The hole has been closed.")
add_fingerprint(user)
diff --git a/code/modules/assembly/infrared.dm b/code/modules/assembly/infrared.dm
index 38e624e018..f483c1fca0 100644
--- a/code/modules/assembly/infrared.dm
+++ b/code/modules/assembly/infrared.dm
@@ -5,8 +5,8 @@
materials = list(MAT_METAL=1000, MAT_GLASS=500)
origin_tech = "magnets=2;materials=2"
- var/on = 0
- var/visible = 0
+ var/on = FALSE
+ var/visible = FALSE
var/obj/effect/beam/i_beam/first = null
var/obj/effect/beam/i_beam/last = null
@@ -35,7 +35,7 @@
if(secured)
START_PROCESSING(SSobj, src)
else
- on = 0
+ on = FALSE
if(first)
qdel(first)
STOP_PROCESSING(SSobj, src)
@@ -67,12 +67,12 @@
if(T)
var/obj/effect/beam/i_beam/I = new /obj/effect/beam/i_beam(T)
I.master = src
- I.density = 1
+ I.density = TRUE
I.setDir(dir)
first = I
step(I, I.dir)
if(first)
- I.density = 0
+ I.density = FALSE
I.vis_spread(visible)
I.limit = 8
I.process()
@@ -164,9 +164,9 @@
var/obj/effect/beam/i_beam/previous = null
var/obj/item/device/assembly/infra/master = null
var/limit = null
- var/visible = 0
+ var/visible = FALSE
var/left = null
- anchored = 1
+ anchored = TRUE
/obj/effect/beam/i_beam/proc/hit()
@@ -198,13 +198,13 @@
if(!next && (limit > 0))
var/obj/effect/beam/i_beam/I = new /obj/effect/beam/i_beam(loc)
I.master = master
- I.density = 1
+ I.density = TRUE
I.setDir(dir)
I.previous = src
next = I
step(I, I.dir)
if(next)
- I.density = 0
+ I.density = FALSE
I.vis_spread(visible)
I.limit = limit - 1
master.last = I
diff --git a/code/modules/assembly/signaler.dm b/code/modules/assembly/signaler.dm
index 4f2af56605..c0d4e45ade 100644
--- a/code/modules/assembly/signaler.dm
+++ b/code/modules/assembly/signaler.dm
@@ -160,7 +160,7 @@ Code:
// It's necessary because the signaler doens't have an off state.
// Generated during grenade construction. -Sayu
/obj/item/device/assembly/signaler/reciever
- var/on = 0
+ var/on = FALSE
/obj/item/device/assembly/signaler/reciever/proc/toggle_safety()
on = !on
diff --git a/code/modules/atmospherics/environmental/LINDA_fire.dm b/code/modules/atmospherics/environmental/LINDA_fire.dm
index 3c93e3f15f..891e76fda5 100644
--- a/code/modules/atmospherics/environmental/LINDA_fire.dm
+++ b/code/modules/atmospherics/environmental/LINDA_fire.dm
@@ -44,7 +44,7 @@
//This is the icon for fire on turfs, also helps for nurturing small fires until they are full tile
/obj/effect/hotspot
- anchored = 1
+ anchored = TRUE
mouse_opacity = 0
icon = 'icons/effects/fire.dmi'
icon_state = "1"
diff --git a/code/modules/atmospherics/machinery/airalarm.dm b/code/modules/atmospherics/machinery/airalarm.dm
index 2d4d4f448b..c61212671c 100644
--- a/code/modules/atmospherics/machinery/airalarm.dm
+++ b/code/modules/atmospherics/machinery/airalarm.dm
@@ -49,7 +49,7 @@
desc = "A machine that monitors atmosphere levels. Goes off if the area is dangerous."
icon = 'icons/obj/monitors.dmi'
icon_state = "alarm0"
- anchored = 1
+ anchored = TRUE
use_power = IDLE_POWER_USE
idle_power_usage = 4
active_power_usage = 8
@@ -63,7 +63,7 @@
var/danger_level = 0
var/mode = AALARM_MODE_SCRUBBING
- var/locked = 1
+ var/locked = TRUE
var/aidisabled = 0
var/shorted = 0
var/buildstage = 2 // 2 = complete, 1 = no wires, 0 = circuit gone
@@ -128,7 +128,7 @@
if(nbuild)
buildstage = 0
- panel_open = 1
+ panel_open = TRUE
pixel_x = (dir & 3)? 0 : (dir == 4 ? -24 : 24)
pixel_y = (dir & 3)? (dir == 1 ? -24 : 24) : 0
@@ -156,7 +156,7 @@
return ..()
return UI_CLOSE
-/obj/machinery/airalarm/ui_interact(mob/user, ui_key = "main", datum/tgui/ui = null, force_open = 0, \
+/obj/machinery/airalarm/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)
ui = SStgui.try_update_ui(user, src, ui_key, ui, force_open)
if(!ui)
@@ -681,7 +681,7 @@
to_chat(user, "You wire the air alarm.")
wires.repair()
aidisabled = 0
- locked = 1
+ locked = TRUE
mode = 1
shorted = 0
post_alert(0)
diff --git a/code/modules/atmospherics/machinery/atmosmachinery.dm b/code/modules/atmospherics/machinery/atmosmachinery.dm
index 9b50470508..ce8a6784dd 100644
--- a/code/modules/atmospherics/machinery/atmosmachinery.dm
+++ b/code/modules/atmospherics/machinery/atmosmachinery.dm
@@ -13,7 +13,7 @@ Pipelines + Other Objects -> Pipe network
#define PIPE_HIDDEN_LEVEL 1
/obj/machinery/atmospherics
- anchored = 1
+ anchored = TRUE
idle_power_usage = 0
active_power_usage = 0
power_channel = ENVIRON
diff --git a/code/modules/atmospherics/machinery/components/binary_devices/circulator.dm b/code/modules/atmospherics/machinery/components/binary_devices/circulator.dm
index cdba28e6dd..f76eb3bb65 100644
--- a/code/modules/atmospherics/machinery/components/binary_devices/circulator.dm
+++ b/code/modules/atmospherics/machinery/components/binary_devices/circulator.dm
@@ -12,8 +12,8 @@
var/last_pressure_delta = 0
- anchored = 1
- density = 1
+ anchored = TRUE
+ density = TRUE
var/global/const/CIRC_LEFT = 1
var/global/const/CIRC_RIGHT = 2
diff --git a/code/modules/atmospherics/machinery/components/binary_devices/dp_vent_pump.dm b/code/modules/atmospherics/machinery/components/binary_devices/dp_vent_pump.dm
index 2bfe51ce87..aa13433376 100644
--- a/code/modules/atmospherics/machinery/components/binary_devices/dp_vent_pump.dm
+++ b/code/modules/atmospherics/machinery/components/binary_devices/dp_vent_pump.dm
@@ -20,7 +20,7 @@ Acts like a normal vent, but has an input AND output.
var/id = null
var/datum/radio_frequency/radio_connection
- var/on = 0
+ var/on = FALSE
var/pump_direction = 1 //0 = siphoning, 1 = releasing
var/external_pressure_bound = ONE_ATMOSPHERE
diff --git a/code/modules/atmospherics/machinery/components/binary_devices/passive_gate.dm b/code/modules/atmospherics/machinery/components/binary_devices/passive_gate.dm
index 8ea2b34251..e52c4bee3d 100644
--- a/code/modules/atmospherics/machinery/components/binary_devices/passive_gate.dm
+++ b/code/modules/atmospherics/machinery/components/binary_devices/passive_gate.dm
@@ -14,7 +14,7 @@ Passive gate is similar to the regular pump except:
can_unwrench = 1
- var/on = 0
+ var/on = FALSE
var/target_pressure = ONE_ATMOSPHERE
var/frequency = 0
@@ -92,7 +92,7 @@ Passive gate is similar to the regular pump except:
return 1
-/obj/machinery/atmospherics/components/binary/passive_gate/ui_interact(mob/user, ui_key = "main", datum/tgui/ui = null, force_open = 0, \
+/obj/machinery/atmospherics/components/binary/passive_gate/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)
ui = SStgui.try_update_ui(user, src, ui_key, ui, force_open)
if(!ui)
diff --git a/code/modules/atmospherics/machinery/components/binary_devices/pump.dm b/code/modules/atmospherics/machinery/components/binary_devices/pump.dm
index babb18dd98..77f98ac4df 100644
--- a/code/modules/atmospherics/machinery/components/binary_devices/pump.dm
+++ b/code/modules/atmospherics/machinery/components/binary_devices/pump.dm
@@ -19,7 +19,7 @@ Thus, the two variables affect pump operation are set in New():
can_unwrench = 1
- var/on = 0
+ var/on = FALSE
var/target_pressure = ONE_ATMOSPHERE
var/frequency = 0
@@ -27,7 +27,7 @@ Thus, the two variables affect pump operation are set in New():
var/datum/radio_frequency/radio_connection
/obj/machinery/atmospherics/components/binary/pump/on
- on = 1
+ on = TRUE
/obj/machinery/atmospherics/components/binary/pump/Destroy()
if(SSradio)
@@ -99,7 +99,7 @@ Thus, the two variables affect pump operation are set in New():
return 1
-/obj/machinery/atmospherics/components/binary/pump/ui_interact(mob/user, ui_key = "main", datum/tgui/ui = null, force_open = 0, \
+/obj/machinery/atmospherics/components/binary/pump/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)
ui = SStgui.try_update_ui(user, src, ui_key, ui, force_open)
if(!ui)
diff --git a/code/modules/atmospherics/machinery/components/binary_devices/valve.dm b/code/modules/atmospherics/machinery/components/binary_devices/valve.dm
index df19b7f3e3..bbee3bcb59 100644
--- a/code/modules/atmospherics/machinery/components/binary_devices/valve.dm
+++ b/code/modules/atmospherics/machinery/components/binary_devices/valve.dm
@@ -12,11 +12,11 @@ It's like a regular ol' straight pipe, but you can turn it on and off.
var/frequency = 0
var/id = null
- var/open = 0
+ var/open = FALSE
var/valve_type = "m" //lets us have a nice, clean, OOP update_icon_nopipes()
/obj/machinery/atmospherics/components/binary/valve/open
- open = 1
+ open = TRUE
/obj/machinery/atmospherics/components/binary/valve/update_icon_nopipes(animation = 0)
normalize_dir()
@@ -25,7 +25,7 @@ It's like a regular ol' straight pipe, but you can turn it on and off.
icon_state = "[valve_type]valve_[open?"on":"off"]"
/obj/machinery/atmospherics/components/binary/valve/proc/open()
- open = 1
+ open = TRUE
update_icon_nopipes()
update_parents()
var/datum/pipeline/parent1 = PARENT1
@@ -33,7 +33,7 @@ It's like a regular ol' straight pipe, but you can turn it on and off.
investigate_log("was opened by [usr ? key_name(usr) : "a remote signal"]", INVESTIGATE_ATMOS)
/obj/machinery/atmospherics/components/binary/valve/proc/close()
- open = 0
+ open = FALSE
update_icon_nopipes()
investigate_log("was closed by [usr ? key_name(usr) : "a remote signal"]", INVESTIGATE_ATMOS)
diff --git a/code/modules/atmospherics/machinery/components/binary_devices/volume_pump.dm b/code/modules/atmospherics/machinery/components/binary_devices/volume_pump.dm
index aea169130b..b9debc4d43 100644
--- a/code/modules/atmospherics/machinery/components/binary_devices/volume_pump.dm
+++ b/code/modules/atmospherics/machinery/components/binary_devices/volume_pump.dm
@@ -19,7 +19,7 @@ Thus, the two variables affect pump operation are set in New():
can_unwrench = 1
- var/on = 0
+ var/on = FALSE
var/transfer_rate = MAX_TRANSFER_RATE
var/frequency = 0
@@ -32,7 +32,7 @@ Thus, the two variables affect pump operation are set in New():
return ..()
/obj/machinery/atmospherics/components/binary/volume_pump/on
- on = 1
+ on = TRUE
/obj/machinery/atmospherics/components/binary/volume_pump/update_icon_nopipes()
if(stat & NOPOWER)
@@ -94,7 +94,7 @@ Thus, the two variables affect pump operation are set in New():
return 1
-/obj/machinery/atmospherics/components/binary/volume_pump/ui_interact(mob/user, ui_key = "main", datum/tgui/ui = null, force_open = 0, \
+/obj/machinery/atmospherics/components/binary/volume_pump/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)
ui = SStgui.try_update_ui(user, src, ui_key, ui, force_open)
if(!ui)
diff --git a/code/modules/atmospherics/machinery/components/components_base.dm b/code/modules/atmospherics/machinery/components/components_base.dm
index 0df72f6448..95357a4a7f 100644
--- a/code/modules/atmospherics/machinery/components/components_base.dm
+++ b/code/modules/atmospherics/machinery/components/components_base.dm
@@ -4,8 +4,8 @@ On top of that, now people can add component-speciic procs/vars if they want!
*/
/obj/machinery/atmospherics/components
- var/welded = 0 //Used on pumps and scrubbers
- var/showpipe = 0
+ var/welded = FALSE //Used on pumps and scrubbers
+ var/showpipe = FALSE
var/list/datum/pipeline/parents
var/list/datum/gas_mixture/airs
@@ -29,7 +29,7 @@ Iconnery
return img.dir
-/obj/machinery/atmospherics/components/proc/icon_addbroken(var/connected = 0)
+/obj/machinery/atmospherics/components/proc/icon_addbroken(var/connected = FALSE)
var/unconnected = (~connected) & initialize_directions
for(var/direction in GLOB.cardinals)
if(unconnected & direction)
@@ -45,14 +45,14 @@ Iconnery
var/turf/T = loc
if(level == 2 || !T.intact)
- showpipe = 1
+ showpipe = TRUE
else
- showpipe = 0
+ showpipe = FALSE
if(!showpipe)
return //no need to update the pipes if they aren't showing
- var/connected = 0
+ var/connected = FALSE
for(DEVICE_TYPE_LOOP) //adds intact pieces
if(NODE_I)
diff --git a/code/modules/atmospherics/machinery/components/trinary_devices/filter.dm b/code/modules/atmospherics/machinery/components/trinary_devices/filter.dm
index be3ef75aff..25f80352a4 100644
--- a/code/modules/atmospherics/machinery/components/trinary_devices/filter.dm
+++ b/code/modules/atmospherics/machinery/components/trinary_devices/filter.dm
@@ -1,9 +1,9 @@
/obj/machinery/atmospherics/components/trinary/filter
name = "gas filter"
icon_state = "filter_off"
- density = 0
+ density = FALSE
can_unwrench = 1
- var/on = 0
+ var/on = FALSE
var/target_pressure = ONE_ATMOSPHERE
var/filter_type = ""
var/frequency = 0
@@ -55,7 +55,7 @@
var/old_stat = stat
..()
if(stat & NOPOWER)
- on = 0
+ on = FALSE
if(old_stat != stat)
update_icon()
@@ -120,7 +120,7 @@
set_frequency(frequency)
return ..()
-/obj/machinery/atmospherics/components/trinary/filter/ui_interact(mob/user, ui_key = "main", datum/tgui/ui = null, force_open = 0, \
+/obj/machinery/atmospherics/components/trinary/filter/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)
ui = SStgui.try_update_ui(user, src, ui_key, ui, force_open)
if(!ui)
diff --git a/code/modules/atmospherics/machinery/components/trinary_devices/mixer.dm b/code/modules/atmospherics/machinery/components/trinary_devices/mixer.dm
index 0a9cf56cfb..8c2622bb42 100644
--- a/code/modules/atmospherics/machinery/components/trinary_devices/mixer.dm
+++ b/code/modules/atmospherics/machinery/components/trinary_devices/mixer.dm
@@ -1,11 +1,11 @@
/obj/machinery/atmospherics/components/trinary/mixer
icon_state = "mixer_off"
- density = 0
+ density = FALSE
name = "gas mixer"
can_unwrench = 1
- var/on = 0
+ var/on = FALSE
var/target_pressure = ONE_ATMOSPHERE
var/node1_concentration = 0.5
@@ -39,7 +39,7 @@
var/old_stat = stat
..()
if(stat & NOPOWER)
- on = 0
+ on = FALSE
if(old_stat != stat)
update_icon()
@@ -116,7 +116,7 @@
return TRUE
-/obj/machinery/atmospherics/components/trinary/mixer/ui_interact(mob/user, ui_key = "main", datum/tgui/ui = null, force_open = 0, \
+/obj/machinery/atmospherics/components/trinary/mixer/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)
ui = SStgui.try_update_ui(user, src, ui_key, ui, force_open)
if(!ui)
diff --git a/code/modules/atmospherics/machinery/components/unary_devices/cryo.dm b/code/modules/atmospherics/machinery/components/unary_devices/cryo.dm
index a50997a663..cd9eca1faa 100644
--- a/code/modules/atmospherics/machinery/components/unary_devices/cryo.dm
+++ b/code/modules/atmospherics/machinery/components/unary_devices/cryo.dm
@@ -4,8 +4,8 @@
name = "cryo cell"
icon = 'icons/obj/cryogenics.dmi'
icon_state = "pod-off"
- density = 1
- anchored = 1
+ density = TRUE
+ anchored = TRUE
max_integrity = 350
armor = list(melee = 0, bullet = 0, laser = 0, energy = 100, bomb = 0, bio = 100, rad = 100, fire = 30, acid = 30)
layer = ABOVE_WINDOW_LAYER
@@ -300,7 +300,7 @@
return
return ..()
-/obj/machinery/atmospherics/components/unary/cryo_cell/ui_interact(mob/user, ui_key = "main", datum/tgui/ui = null, force_open = 0, \
+/obj/machinery/atmospherics/components/unary/cryo_cell/ui_interact(mob/user, ui_key = "main", datum/tgui/ui = null, force_open = FALSE, \
datum/tgui/master_ui = null, datum/ui_state/state = GLOB.notcontained_state)
ui = SStgui.try_update_ui(user, src, ui_key, ui, force_open)
if(!ui)
diff --git a/code/modules/atmospherics/machinery/components/unary_devices/generator_input.dm b/code/modules/atmospherics/machinery/components/unary_devices/generator_input.dm
index d1caa8d44b..5ed771d41c 100644
--- a/code/modules/atmospherics/machinery/components/unary_devices/generator_input.dm
+++ b/code/modules/atmospherics/machinery/components/unary_devices/generator_input.dm
@@ -1,7 +1,7 @@
/obj/machinery/atmospherics/components/unary/generator_input
icon_state = "he_intact"
- density = 1
+ density = TRUE
name = "generator input"
desc = "An input for a generator."
diff --git a/code/modules/atmospherics/machinery/components/unary_devices/outlet_injector.dm b/code/modules/atmospherics/machinery/components/unary_devices/outlet_injector.dm
index dd3be2e59f..763c405429 100644
--- a/code/modules/atmospherics/machinery/components/unary_devices/outlet_injector.dm
+++ b/code/modules/atmospherics/machinery/components/unary_devices/outlet_injector.dm
@@ -6,7 +6,7 @@
can_unwrench = TRUE
resistance_flags = FIRE_PROOF | UNACIDABLE | ACID_PROOF //really helpful in building gas chambers for xenomorphs
- var/on = 0
+ var/on = FALSE
var/injecting = 0
var/volume_rate = 50
@@ -147,7 +147,7 @@
update_icon()
-/obj/machinery/atmospherics/components/unary/outlet_injector/ui_interact(mob/user, ui_key = "main", datum/tgui/ui = null, force_open = 0, \
+/obj/machinery/atmospherics/components/unary/outlet_injector/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)
ui = SStgui.try_update_ui(user, src, ui_key, ui, force_open)
if(!ui)
diff --git a/code/modules/atmospherics/machinery/components/unary_devices/oxygen_generator.dm b/code/modules/atmospherics/machinery/components/unary_devices/oxygen_generator.dm
index 7853e2c4b3..65f2c37ac7 100644
--- a/code/modules/atmospherics/machinery/components/unary_devices/oxygen_generator.dm
+++ b/code/modules/atmospherics/machinery/components/unary_devices/oxygen_generator.dm
@@ -9,7 +9,7 @@
initialize_directions = SOUTH
layer = GAS_SCRUBBER_LAYER
- var/on = 0
+ var/on = FALSE
var/oxygen_content = 10
diff --git a/code/modules/atmospherics/machinery/components/unary_devices/tank.dm b/code/modules/atmospherics/machinery/components/unary_devices/tank.dm
index 1379d2eb03..4b2b1843fe 100644
--- a/code/modules/atmospherics/machinery/components/unary_devices/tank.dm
+++ b/code/modules/atmospherics/machinery/components/unary_devices/tank.dm
@@ -6,7 +6,7 @@
desc = "A large vessel containing pressurized gas."
max_integrity = 800
var/volume = 10000 //in liters, 1 meters by 1 meters by 2 meters
- density = 1
+ density = TRUE
var/gas_type = 0
layer = ABOVE_WINDOW_LAYER
diff --git a/code/modules/atmospherics/machinery/components/unary_devices/thermomachine.dm b/code/modules/atmospherics/machinery/components/unary_devices/thermomachine.dm
index 2be7bf2ef7..32789011ae 100644
--- a/code/modules/atmospherics/machinery/components/unary_devices/thermomachine.dm
+++ b/code/modules/atmospherics/machinery/components/unary_devices/thermomachine.dm
@@ -146,7 +146,7 @@
return ..()
return UI_CLOSE
-/obj/machinery/atmospherics/components/unary/thermomachine/ui_interact(mob/user, ui_key = "main", datum/tgui/ui = null, force_open = 0, \
+/obj/machinery/atmospherics/components/unary/thermomachine/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)
ui = SStgui.try_update_ui(user, src, ui_key, ui, force_open)
if(!ui)
diff --git a/code/modules/atmospherics/machinery/components/unary_devices/vent_pump.dm b/code/modules/atmospherics/machinery/components/unary_devices/vent_pump.dm
index 0e5b37acb8..b19569be26 100644
--- a/code/modules/atmospherics/machinery/components/unary_devices/vent_pump.dm
+++ b/code/modules/atmospherics/machinery/components/unary_devices/vent_pump.dm
@@ -11,12 +11,12 @@
icon_state = "vent_map"
use_power = IDLE_POWER_USE
can_unwrench = 1
- welded = 0
+ welded = FALSE
level = 1
layer = GAS_SCRUBBER_LAYER
var/id_tag = null
- var/on = 0
+ var/on = FALSE
var/pump_direction = RELEASING
var/pressure_checks = EXT_BOUND
@@ -107,7 +107,7 @@
if(stat & (NOPOWER|BROKEN))
return
if (!NODE1)
- on = 0
+ on = FALSE
if(!on || welded)
return 0
@@ -271,10 +271,10 @@
playsound(src.loc, 'sound/items/welder2.ogg', 50, 1)
if(!welded)
user.visible_message("[user] welds the vent shut.", "You weld the vent shut.", "You hear welding.")
- welded = 1
+ welded = TRUE
else
user.visible_message("[user] unwelds the vent.", "You unweld the vent.", "You hear welding.")
- welded = 0
+ welded = FALSE
update_icon()
pipe_vision_img = image(src, loc, layer = ABOVE_HUD_LAYER, dir = dir)
pipe_vision_img.plane = ABOVE_HUD_PLANE
@@ -305,7 +305,7 @@
if(!welded || !(do_after(user, 20, target = src)))
return
user.visible_message("[user] furiously claws at [src]!", "You manage to clear away the stuff blocking the vent", "You hear loud scraping noises.")
- welded = 0
+ welded = FALSE
update_icon()
pipe_vision_img = image(src, loc, layer = ABOVE_HUD_LAYER, dir = dir)
pipe_vision_img.plane = ABOVE_HUD_PLANE
diff --git a/code/modules/atmospherics/machinery/components/unary_devices/vent_scrubber.dm b/code/modules/atmospherics/machinery/components/unary_devices/vent_scrubber.dm
index ba723b8d1e..e76856bb66 100644
--- a/code/modules/atmospherics/machinery/components/unary_devices/vent_scrubber.dm
+++ b/code/modules/atmospherics/machinery/components/unary_devices/vent_scrubber.dm
@@ -9,12 +9,12 @@
idle_power_usage = 10
active_power_usage = 60
can_unwrench = 1
- welded = 0
+ welded = FALSE
level = 1
layer = GAS_SCRUBBER_LAYER
var/id_tag = null
- var/on = 0
+ var/on = FALSE
var/scrubbing = SCRUBBING //0 = siphoning, 1 = scrubbing
var/scrub_CO2 = 1
@@ -160,7 +160,7 @@
if(stat & (NOPOWER|BROKEN))
return
if (!NODE1)
- on = 0
+ on = FALSE
if(!on || welded)
return 0
scrub(loc)
@@ -352,10 +352,10 @@
playsound(src.loc, 'sound/items/welder2.ogg', 50, 1)
if(!welded)
user.visible_message("[user] welds the scrubber shut.","You weld the scrubber shut.", "You hear welding.")
- welded = 1
+ welded = TRUE
else
user.visible_message("[user] unwelds the scrubber.", "You unweld the scrubber.", "You hear welding.")
- welded = 0
+ welded = FALSE
update_icon()
pipe_vision_img = image(src, loc, layer = ABOVE_HUD_LAYER, dir = dir)
pipe_vision_img.plane = ABOVE_HUD_PLANE
@@ -377,7 +377,7 @@
if(!welded || !(do_after(user, 20, target = src)))
return
user.visible_message("[user] furiously claws at [src]!", "You manage to clear away the stuff blocking the scrubber.", "You hear loud scraping noises.")
- welded = 0
+ welded = FALSE
update_icon()
pipe_vision_img = image(src, loc, layer = ABOVE_HUD_LAYER, dir = dir)
pipe_vision_img.plane = ABOVE_HUD_PLANE
diff --git a/code/modules/atmospherics/machinery/other/meter.dm b/code/modules/atmospherics/machinery/other/meter.dm
index fe848e9b62..6f37e406fb 100644
--- a/code/modules/atmospherics/machinery/other/meter.dm
+++ b/code/modules/atmospherics/machinery/other/meter.dm
@@ -4,7 +4,7 @@
icon = 'icons/obj/meter.dmi'
icon_state = "meterX"
var/atom/target = null
- anchored = 1
+ anchored = TRUE
power_channel = ENVIRON
var/frequency = 0
var/id_tag
diff --git a/code/modules/atmospherics/machinery/other/zvent.dm b/code/modules/atmospherics/machinery/other/zvent.dm
index 0df9d17410..3490c972d9 100644
--- a/code/modules/atmospherics/machinery/other/zvent.dm
+++ b/code/modules/atmospherics/machinery/other/zvent.dm
@@ -3,10 +3,10 @@
icon = 'icons/obj/atmospherics/components/unary_devices.dmi'
icon_state = "vent_map"
- density = 0
+ density = FALSE
anchored=1
- var/on = 0
+ var/on = FALSE
var/volume_rate = 800
/obj/machinery/zvent/New()
diff --git a/code/modules/atmospherics/machinery/portable/canister.dm b/code/modules/atmospherics/machinery/portable/canister.dm
index 609d5c2226..59fcf9c4a2 100644
--- a/code/modules/atmospherics/machinery/portable/canister.dm
+++ b/code/modules/atmospherics/machinery/portable/canister.dm
@@ -4,7 +4,7 @@
name = "canister"
desc = "A canister for the storage of gas."
icon_state = "yellow"
- density = 1
+ density = TRUE
var/valve_open = FALSE
var/obj/machinery/atmospherics/components/binary/passive_gate/pump
@@ -281,7 +281,7 @@
air_update_turf()
stat |= BROKEN
- density = 0
+ density = FALSE
playsound(src.loc, 'sound/effects/spray.ogg', 10, 1, -3)
update_icon()
investigate_log("was destroyed.", INVESTIGATE_ATMOS)
@@ -312,7 +312,7 @@
air_update_turf() // Update the environment if needed.
update_icon()
-/obj/machinery/portable_atmospherics/canister/ui_interact(mob/user, ui_key = "main", datum/tgui/ui = null, force_open = 0, \
+/obj/machinery/portable_atmospherics/canister/ui_interact(mob/user, ui_key = "main", datum/tgui/ui = null, force_open = FALSE, \
datum/tgui/master_ui = null, datum/ui_state/state = GLOB.physical_state)
ui = SStgui.try_update_ui(user, src, ui_key, ui, force_open)
if(!ui)
diff --git a/code/modules/atmospherics/machinery/portable/portable_atmospherics.dm b/code/modules/atmospherics/machinery/portable/portable_atmospherics.dm
index 4d262f1f66..5c5e11593f 100644
--- a/code/modules/atmospherics/machinery/portable/portable_atmospherics.dm
+++ b/code/modules/atmospherics/machinery/portable/portable_atmospherics.dm
@@ -57,7 +57,7 @@
var/datum/pipeline/connected_port_parent = connected_port.PARENT1
connected_port_parent.reconcile_air()
- anchored = 1 //Prevent movement
+ anchored = TRUE //Prevent movement
return 1
/obj/machinery/portable_atmospherics/Move()
@@ -68,7 +68,7 @@
/obj/machinery/portable_atmospherics/proc/disconnect()
if(!connected_port)
return 0
- anchored = 0
+ anchored = FALSE
connected_port.connected_device = null
connected_port = null
return 1
diff --git a/code/modules/atmospherics/machinery/portable/pump.dm b/code/modules/atmospherics/machinery/portable/pump.dm
index 0b25c29cc9..26c27c7be4 100644
--- a/code/modules/atmospherics/machinery/portable/pump.dm
+++ b/code/modules/atmospherics/machinery/portable/pump.dm
@@ -7,7 +7,7 @@
/obj/machinery/portable_atmospherics/pump
name = "portable air pump"
icon_state = "psiphon:0"
- density = 1
+ density = TRUE
var/on = FALSE
var/direction = PUMP_OUT
@@ -69,7 +69,7 @@
..()
-/obj/machinery/portable_atmospherics/pump/ui_interact(mob/user, ui_key = "main", datum/tgui/ui = null, force_open = 0, \
+/obj/machinery/portable_atmospherics/pump/ui_interact(mob/user, ui_key = "main", datum/tgui/ui = null, force_open = FALSE, \
datum/tgui/master_ui = null, datum/ui_state/state = GLOB.physical_state)
ui = SStgui.try_update_ui(user, src, ui_key, ui, force_open)
if(!ui)
diff --git a/code/modules/atmospherics/machinery/portable/scrubber.dm b/code/modules/atmospherics/machinery/portable/scrubber.dm
index 55b3eb2568..e83d0d479b 100644
--- a/code/modules/atmospherics/machinery/portable/scrubber.dm
+++ b/code/modules/atmospherics/machinery/portable/scrubber.dm
@@ -1,7 +1,7 @@
/obj/machinery/portable_atmospherics/scrubber
name = "portable air scrubber"
icon_state = "pscrubber:0"
- density = 1
+ density = TRUE
var/on = FALSE
var/volume_rate = 1000
@@ -62,7 +62,7 @@
update_icon()
..()
-/obj/machinery/portable_atmospherics/scrubber/ui_interact(mob/user, ui_key = "main", datum/tgui/ui = null, force_open = 0, \
+/obj/machinery/portable_atmospherics/scrubber/ui_interact(mob/user, ui_key = "main", datum/tgui/ui = null, force_open = FALSE, \
datum/tgui/master_ui = null, datum/ui_state/state = GLOB.physical_state)
ui = SStgui.try_update_ui(user, src, ui_key, ui, force_open)
if(!ui)
diff --git a/code/modules/awaymissions/bluespaceartillery.dm b/code/modules/awaymissions/bluespaceartillery.dm
index acf9ef4ede..3878619418 100644
--- a/code/modules/awaymissions/bluespaceartillery.dm
+++ b/code/modules/awaymissions/bluespaceartillery.dm
@@ -9,8 +9,8 @@
name = "bluespace artillery control"
icon_state = "control_boxp1"
icon = 'icons/obj/machines/particle_accelerator.dmi'
- density = 1
- anchored = 1
+ density = TRUE
+ anchored = TRUE
/obj/machinery/artillerycontrol/process()
if(reload < reload_cooldown)
@@ -19,11 +19,11 @@
/obj/structure/artilleryplaceholder
name = "artillery"
icon = 'icons/obj/machines/artillery.dmi'
- anchored = 1
- density = 1
+ anchored = TRUE
+ density = TRUE
/obj/structure/artilleryplaceholder/decorative
- density = 0
+ density = FALSE
/obj/machinery/artillerycontrol/attack_hand(mob/user)
user.set_machine(src)
diff --git a/code/modules/awaymissions/capture_the_flag.dm b/code/modules/awaymissions/capture_the_flag.dm
index b06c9a5579..d5d81a7537 100644
--- a/code/modules/awaymissions/capture_the_flag.dm
+++ b/code/modules/awaymissions/capture_the_flag.dm
@@ -129,7 +129,7 @@
desc = "Used for running friendly games of capture the flag."
icon = 'icons/obj/device.dmi'
icon_state = "syndbeacon"
- anchored = 1
+ anchored = TRUE
resistance_flags = INDESTRUCTIBLE
var/team = WHITE_TEAM
//Capture the Flag scoring
@@ -630,7 +630,7 @@
desc = "You should capture this."
icon = 'icons/obj/machines/dominator.dmi'
icon_state = "dominator"
- anchored = 1
+ anchored = TRUE
resistance_flags = INDESTRUCTIBLE
var/obj/machinery/capture_the_flag/controlling
var/team = "none"
diff --git a/code/modules/awaymissions/corpse.dm b/code/modules/awaymissions/corpse.dm
index f2cb1c7b50..48ec50fcb4 100644
--- a/code/modules/awaymissions/corpse.dm
+++ b/code/modules/awaymissions/corpse.dm
@@ -21,8 +21,8 @@
var/burn_damage = 0
var/mob_color //Change the mob's color
var/assignedrole
- density = 1
- anchored = 1
+ density = TRUE
+ anchored = TRUE
var/banType = "lavaland"
/obj/effect/mob_spawn/attack_ghost(mob/user)
diff --git a/code/modules/awaymissions/gateway.dm b/code/modules/awaymissions/gateway.dm
index 68fc23fd1f..4ccdf0e58b 100644
--- a/code/modules/awaymissions/gateway.dm
+++ b/code/modules/awaymissions/gateway.dm
@@ -5,8 +5,8 @@ GLOBAL_DATUM(the_gateway, /obj/machinery/gateway/centerstation)
desc = "A mysterious gateway built by unknown hands, it allows for faster than light travel to far-flung locations."
icon = 'icons/obj/machines/gateway.dmi'
icon_state = "off"
- density = 1
- anchored = 1
+ density = TRUE
+ anchored = TRUE
resistance_flags = INDESTRUCTIBLE | LAVA_PROOF | FIRE_PROOF | UNACIDABLE | ACID_PROOF
var/active = 0
var/checkparts = TRUE
@@ -21,7 +21,7 @@ GLOBAL_DATUM(the_gateway, /obj/machinery/gateway/centerstation)
if(!istype(src, /obj/machinery/gateway/centerstation) && !istype(src, /obj/machinery/gateway/centeraway))
switch(dir)
if(SOUTH,SOUTHEAST,SOUTHWEST)
- density = 0
+ density = FALSE
..()
/obj/machinery/gateway/proc/toggleoff()
diff --git a/code/modules/awaymissions/mission_code/Academy.dm b/code/modules/awaymissions/mission_code/Academy.dm
index add445a53b..0dc7eea3c6 100644
--- a/code/modules/awaymissions/mission_code/Academy.dm
+++ b/code/modules/awaymissions/mission_code/Academy.dm
@@ -27,7 +27,7 @@
desc = "Made by Abjuration Inc"
icon = 'icons/obj/cult.dmi'
icon_state = "forge"
- anchored = 1
+ anchored = TRUE
max_integrity = 200
var/mob/living/current_wizard = null
var/next_check = 0
diff --git a/code/modules/awaymissions/mission_code/Cabin.dm b/code/modules/awaymissions/mission_code/Cabin.dm
index be16bfba88..c3590277d5 100644
--- a/code/modules/awaymissions/mission_code/Cabin.dm
+++ b/code/modules/awaymissions/mission_code/Cabin.dm
@@ -4,7 +4,7 @@
desc = "warm and toasty"
icon = 'icons/obj/fireplace.dmi'
icon_state = "firepit-active"
- density = 0
+ density = FALSE
var/active = 1
/obj/structure/firepit/Initialize()
diff --git a/code/modules/awaymissions/mission_code/challenge.dm b/code/modules/awaymissions/mission_code/challenge.dm
index d0f27dcf4f..df8246c77f 100644
--- a/code/modules/awaymissions/mission_code/challenge.dm
+++ b/code/modules/awaymissions/mission_code/challenge.dm
@@ -4,8 +4,8 @@
desc = "A heavy duty industrial laser"
icon = 'icons/obj/singularity.dmi'
icon_state = "emitter"
- anchored = 1
- density = 1
+ anchored = TRUE
+ density = TRUE
resistance_flags = INDESTRUCTIBLE | FIRE_PROOF | ACID_PROOF
use_power = NO_POWER_USE
@@ -13,7 +13,7 @@
active_power_usage = 0
active = 1
- locked = 1
+ locked = TRUE
state = 2
/obj/machinery/power/emitter/energycannon/RefreshParts()
diff --git a/code/modules/awaymissions/mission_code/wildwest.dm b/code/modules/awaymissions/mission_code/wildwest.dm
index 29ffa89720..43a620f748 100644
--- a/code/modules/awaymissions/mission_code/wildwest.dm
+++ b/code/modules/awaymissions/mission_code/wildwest.dm
@@ -14,8 +14,8 @@
icon = 'icons/obj/device.dmi'
icon_state = "syndbeacon"
- anchored = 1
- density = 1
+ anchored = TRUE
+ density = TRUE
use_power = NO_POWER_USE
var/chargesa = 1
@@ -85,8 +85,8 @@
/obj/effect/meatgrinder
name = "Meat Grinder"
desc = "What is that thing?"
- density = 1
- anchored = 1
+ density = TRUE
+ anchored = TRUE
icon = 'icons/mob/blob.dmi'
icon_state = "blobpod"
var/triggered = 0
diff --git a/code/modules/awaymissions/signpost.dm b/code/modules/awaymissions/signpost.dm
index 62cb49cb87..f9d74e9d4e 100644
--- a/code/modules/awaymissions/signpost.dm
+++ b/code/modules/awaymissions/signpost.dm
@@ -2,8 +2,8 @@
/obj/structure/signpost
icon = 'icons/obj/stationobjs.dmi'
icon_state = "signpost"
- anchored = 1
- density = 1
+ anchored = TRUE
+ density = TRUE
var/question = "Travel back?"
var/zlevels = list(ZLEVEL_STATION)
diff --git a/code/modules/cargo/console.dm b/code/modules/cargo/console.dm
index cc415b42d2..82a42f8f05 100644
--- a/code/modules/cargo/console.dm
+++ b/code/modules/cargo/console.dm
@@ -37,7 +37,7 @@
board.contraband = TRUE
board.emagged = TRUE
-/obj/machinery/computer/cargo/ui_interact(mob/user, ui_key = "main", datum/tgui/ui = null, force_open = 0, \
+/obj/machinery/computer/cargo/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)
ui = SStgui.try_update_ui(user, src, ui_key, ui, force_open)
if(!ui)
diff --git a/code/modules/cargo/exports/sheets.dm b/code/modules/cargo/exports/sheets.dm
index fcd279f87e..8abc78ac0e 100644
--- a/code/modules/cargo/exports/sheets.dm
+++ b/code/modules/cargo/exports/sheets.dm
@@ -26,7 +26,7 @@
// Human skin. Illegal
/datum/export/stack/skin/human
cost = 2000
- contraband = 1
+ contraband = TRUE
unit_name = "piece"
message = "of human skin"
export_types = list(/obj/item/stack/sheet/animalhide/human)
@@ -40,14 +40,14 @@
// Cat hide. Just in case Runtime is catsploding again.
/datum/export/stack/skin/cat
cost = 2000
- contraband = 1
+ contraband = TRUE
unit_name = "cat hide"
export_types = list(/obj/item/stack/sheet/animalhide/cat)
// Corgi hide. You monster.
/datum/export/stack/skin/corgi
cost = 2500
- contraband = 1
+ contraband = TRUE
unit_name = "corgi hide"
export_types = list(/obj/item/stack/sheet/animalhide/corgi)
diff --git a/code/modules/clothing/clothing.dm b/code/modules/clothing/clothing.dm
index 568a4440a8..ea762f388a 100644
--- a/code/modules/clothing/clothing.dm
+++ b/code/modules/clothing/clothing.dm
@@ -193,7 +193,7 @@
var/invis_view = SEE_INVISIBLE_LIVING
var/invis_override = 0 //Override to allow glasses to set higher than normal see_invis
var/lighting_alpha
- var/emagged = 0
+ var/emagged = FALSE
var/list/icon/current = list() //the current hud icons
var/vision_correction = 0 //does wearing these glasses correct some of our vision defects?
strip_delay = 20
diff --git a/code/modules/clothing/glasses/hud.dm b/code/modules/clothing/glasses/hud.dm
index c227933332..8b4e3f0fbd 100644
--- a/code/modules/clothing/glasses/hud.dm
+++ b/code/modules/clothing/glasses/hud.dm
@@ -19,12 +19,12 @@
/obj/item/clothing/glasses/hud/emp_act(severity)
if(emagged == 0)
- emagged = 1
+ emagged = TRUE
desc = "[desc] The display is flickering slightly."
/obj/item/clothing/glasses/hud/emag_act(mob/user)
if(emagged == 0)
- emagged = 1
+ emagged = TRUE
to_chat(user, "PZZTTPFFFT")
desc = "[desc] The display is flickering slightly."
diff --git a/code/modules/clothing/head/hardhat.dm b/code/modules/clothing/head/hardhat.dm
index a2f23a8d74..28fe8cacfb 100644
--- a/code/modules/clothing/head/hardhat.dm
+++ b/code/modules/clothing/head/hardhat.dm
@@ -4,7 +4,7 @@
icon_state = "hardhat0_yellow"
item_state = "hardhat0_yellow"
var/brightness_on = 4 //luminosity when on
- var/on = 0
+ var/on = FALSE
item_color = "yellow" //Determines used sprites: hardhat[on]_[item_color] and hardhat[on]_[item_color]2 (lying down sprite)
armor = list(melee = 15, bullet = 5, laser = 20,energy = 10, bomb = 20, bio = 10, rad = 20, fire = 100, acid = 50)
flags_inv = 0
diff --git a/code/modules/clothing/shoes/bananashoes.dm b/code/modules/clothing/shoes/bananashoes.dm
index 15cbc11c9f..fcf12b056d 100644
--- a/code/modules/clothing/shoes/bananashoes.dm
+++ b/code/modules/clothing/shoes/bananashoes.dm
@@ -4,7 +4,7 @@
name = "mk-honk prototype shoes"
desc = "Lost prototype of advanced clown tech. Powered by bananium, these shoes leave a trail of chaos in their wake."
icon_state = "clown_prototype_off"
- var/on = 0
+ var/on = FALSE
var/datum/material_container/bananium
actions_types = list(/datum/action/item_action/toggle)
diff --git a/code/modules/clothing/spacesuits/chronosuit.dm b/code/modules/clothing/spacesuits/chronosuit.dm
index 087e0a9133..45b7ccb61f 100644
--- a/code/modules/clothing/spacesuits/chronosuit.dm
+++ b/code/modules/clothing/spacesuits/chronosuit.dm
@@ -91,7 +91,7 @@
user.update_atom_colour()
user.animate_movement = FORWARD_STEPS
user.notransform = 0
- user.anchored = 0
+ user.anchored = FALSE
teleporting = 0
for(var/obj/item/I in user.held_items)
if(I in hands_nodrop)
@@ -136,7 +136,7 @@
user.animate_movement = NO_STEPS
user.changeNext_move(8 + phase_in_ds)
user.notransform = 1
- user.anchored = 1
+ user.anchored = TRUE
user.Stun(INFINITY)
animate(user, color = "#00ccee", time = 3)
@@ -241,8 +241,8 @@
/obj/effect/chronos_cam
name = "Chronosuit View"
- density = 0
- anchored = 1
+ density = FALSE
+ anchored = TRUE
invisibility = INVISIBILITY_ABSTRACT
opacity = 0
mouse_opacity = 0
diff --git a/code/modules/clothing/spacesuits/hardsuit.dm b/code/modules/clothing/spacesuits/hardsuit.dm
index e7e1a4769a..ab5bf9e375 100644
--- a/code/modules/clothing/spacesuits/hardsuit.dm
+++ b/code/modules/clothing/spacesuits/hardsuit.dm
@@ -8,7 +8,7 @@
armor = list(melee = 10, bullet = 5, laser = 10, energy = 5, bomb = 10, bio = 100, rad = 75, fire = 50, acid = 75)
var/basestate = "hardsuit"
var/brightness_on = 4 //luminosity when on
- var/on = 0
+ var/on = FALSE
var/obj/item/clothing/suit/space/hardsuit/suit
item_color = "engineering" //Determines used sprites: hardsuit[on]-[color] and hardsuit[on]-[color]2 (lying down sprite)
actions_types = list(/datum/action/item_action/toggle_helmet_light)
@@ -226,7 +226,7 @@
item_state = "syndie_helm"
item_color = "syndi"
armor = list(melee = 40, bullet = 50, laser = 30, energy = 15, bomb = 35, bio = 100, rad = 50, fire = 50, acid = 90)
- on = 1
+ on = TRUE
var/obj/item/clothing/suit/space/hardsuit/syndi/linkedsuit = null
actions_types = list(/datum/action/item_action/toggle_helmet_mode)
visor_flags_inv = HIDEMASK|HIDEEYES|HIDEFACE|HIDEFACIALHAIR
@@ -320,7 +320,7 @@
max_heat_protection_temperature = FIRE_IMMUNITY_SUIT_MAX_TEMP_PROTECT
visor_flags_inv = 0
visor_flags = 0
- on = 0
+ on = FALSE
resistance_flags = FIRE_PROOF | ACID_PROOF
@@ -346,7 +346,7 @@
item_color = "owl"
visor_flags_inv = 0
visor_flags = 0
- on = 0
+ on = FALSE
/obj/item/clothing/suit/space/hardsuit/syndi/owl
name = "owl hardsuit"
diff --git a/code/modules/clothing/spacesuits/plasmamen.dm b/code/modules/clothing/spacesuits/plasmamen.dm
index 57137d9b6c..5fd3a6725b 100644
--- a/code/modules/clothing/spacesuits/plasmamen.dm
+++ b/code/modules/clothing/spacesuits/plasmamen.dm
@@ -44,7 +44,7 @@
armor = list(melee = 0, bullet = 0, laser = 0, energy = 0, bomb = 0, bio = 100, rad = 0, fire = 100, acid = 75)
resistance_flags = FIRE_PROOF
var/brightness_on = 4 //luminosity when the light is on
- var/on = 0
+ var/on = FALSE
actions_types = list(/datum/action/item_action/toggle_helmet_light)
/obj/item/clothing/head/helmet/space/plasmaman/attack_self(mob/user)
diff --git a/code/modules/clothing/suits/toggles.dm b/code/modules/clothing/suits/toggles.dm
index 151f842ed1..315575ea16 100644
--- a/code/modules/clothing/suits/toggles.dm
+++ b/code/modules/clothing/suits/toggles.dm
@@ -35,7 +35,7 @@
/obj/item/clothing/suit/hooded/proc/RemoveHood()
src.icon_state = "[initial(icon_state)]"
- suittoggled = 0
+ suittoggled = FALSE
if(ishuman(hood.loc))
var/mob/living/carbon/H = hood.loc
H.transferItemToLoc(hood, src, TRUE)
@@ -61,7 +61,7 @@
to_chat(H, "You're already wearing something on your head!")
return
else if(H.equip_to_slot_if_possible(hood,slot_head,0,0,1))
- suittoggled = 1
+ suittoggled = TRUE
src.icon_state = "[initial(icon_state)]_t"
H.update_inv_wear_suit()
for(var/X in actions)
@@ -112,10 +112,10 @@
to_chat(usr, "You toggle [src]'s [togglename].")
if(src.suittoggled)
src.icon_state = "[initial(icon_state)]"
- src.suittoggled = 0
+ src.suittoggled = FALSE
else if(!src.suittoggled)
src.icon_state = "[initial(icon_state)]_t"
- src.suittoggled = 1
+ src.suittoggled = TRUE
usr.update_inv_wear_suit()
for(var/X in actions)
var/datum/action/A = X
@@ -164,7 +164,7 @@
/obj/item/clothing/suit/space/hardsuit/proc/RemoveHelmet()
if(!helmet)
return
- suittoggled = 0
+ suittoggled = FALSE
if(ishuman(helmet.loc))
var/mob/living/carbon/H = helmet.loc
if(helmet.on)
@@ -196,7 +196,7 @@
return
else if(H.equip_to_slot_if_possible(helmet,slot_head,0,0,1))
to_chat(H, "You engage the helmet on the hardsuit.")
- suittoggled = 1
+ suittoggled = TRUE
H.update_inv_wear_suit()
playsound(src.loc, 'sound/mecha/mechmove03.ogg', 50, 1)
else
diff --git a/code/modules/crafting/craft.dm b/code/modules/crafting/craft.dm
index 91278beb23..87b6cb561a 100644
--- a/code/modules/crafting/craft.dm
+++ b/code/modules/crafting/craft.dm
@@ -264,7 +264,7 @@
qdel(DL)
-/datum/personal_crafting/ui_interact(mob/user, ui_key = "main", datum/tgui/ui = null, force_open = 0, datum/tgui/master_ui = null, datum/ui_state/state = GLOB.not_incapacitated_turf_state)
+/datum/personal_crafting/ui_interact(mob/user, ui_key = "main", datum/tgui/ui = null, force_open = FALSE, datum/tgui/master_ui = null, datum/ui_state/state = GLOB.not_incapacitated_turf_state)
ui = SStgui.try_update_ui(user, src, ui_key, ui, force_open)
if(!ui)
ui = new(user, src, ui_key, "personal_crafting", "Crafting Menu", 700, 800, master_ui, state)
@@ -311,14 +311,14 @@
switch(action)
if("make")
var/datum/crafting_recipe/TR = locate(params["recipe"])
- busy = 1
+ busy = TRUE
ui_interact(usr) //explicit call to show the busy display
var/fail_msg = construct_item(usr, TR)
if(!fail_msg)
to_chat(usr, "[TR.name] constructed.")
else
to_chat(usr, "Construction failed[fail_msg]")
- busy = 0
+ busy = FALSE
ui_interact(usr)
if("forwardCat") //Meow
viewing_category = next_cat(FALSE)
diff --git a/code/modules/events/immovable_rod.dm b/code/modules/events/immovable_rod.dm
index d6bc91c5f3..204edb0e9a 100644
--- a/code/modules/events/immovable_rod.dm
+++ b/code/modules/events/immovable_rod.dm
@@ -31,8 +31,8 @@ In my current plan for it, 'solid' will be defined as anything with density == 1
icon = 'icons/obj/objects.dmi'
icon_state = "immrod"
throwforce = 100
- density = 1
- anchored = 1
+ density = TRUE
+ anchored = TRUE
var/z_original = 0
var/destination
var/notify = TRUE
diff --git a/code/modules/events/prison_break.dm b/code/modules/events/prison_break.dm
index f30f4f866f..724b03d325 100644
--- a/code/modules/events/prison_break.dm
+++ b/code/modules/events/prison_break.dm
@@ -49,7 +49,7 @@
temp.overload_lighting()
else if(istype(O,/obj/structure/closet/secure_closet))
var/obj/structure/closet/secure_closet/temp = O
- temp.locked = 0
+ temp.locked = FALSE
temp.update_icon()
else if(istype(O,/obj/machinery/door/airlock))
var/obj/machinery/door/airlock/temp = O
diff --git a/code/modules/events/spacevine.dm b/code/modules/events/spacevine.dm
index 5324159325..d1c32c4026 100644
--- a/code/modules/events/spacevine.dm
+++ b/code/modules/events/spacevine.dm
@@ -280,7 +280,7 @@
/datum/spacevine_mutation/woodening/on_grow(obj/structure/spacevine/holder)
if(holder.energy)
- holder.density = 1
+ holder.density = TRUE
holder.max_integrity = 100
holder.obj_integrity = holder.max_integrity
@@ -311,8 +311,8 @@
desc = "An extremely expansionistic species of vine."
icon = 'icons/effects/spacevines.dmi'
icon_state = "Light1"
- anchored = 1
- density = 0
+ anchored = TRUE
+ density = FALSE
layer = SPACEVINE_LAYER
mouse_opacity = 2 //Clicking anywhere on the turf is good enough
pass_flags = PASSTABLE | PASSGRILLE
diff --git a/code/modules/flufftext/Hallucination.dm b/code/modules/flufftext/Hallucination.dm
index 0e01235062..30e7c843b0 100644
--- a/code/modules/flufftext/Hallucination.dm
+++ b/code/modules/flufftext/Hallucination.dm
@@ -535,8 +535,8 @@ Gunshots/explosions/opening doors/less rare audio (done)
icon_state = null
name = ""
desc = ""
- density = 0
- anchored = 1
+ density = FALSE
+ anchored = TRUE
opacity = 0
var/mob/living/carbon/human/my_target = null
var/weapon_name = null
diff --git a/code/modules/food_and_drinks/kitchen_machinery/deep_fryer.dm b/code/modules/food_and_drinks/kitchen_machinery/deep_fryer.dm
index 4db4e9d8f9..e21bda82ed 100644
--- a/code/modules/food_and_drinks/kitchen_machinery/deep_fryer.dm
+++ b/code/modules/food_and_drinks/kitchen_machinery/deep_fryer.dm
@@ -11,8 +11,8 @@ insert ascii eagle on american flag background here
desc = "Deep fried everything."
icon = 'icons/obj/kitchen.dmi'
icon_state = "fryer_off"
- density = 1
- anchored = 1
+ density = TRUE
+ anchored = TRUE
use_power = IDLE_POWER_USE
idle_power_usage = 5
container_type = OPENCONTAINER
diff --git a/code/modules/food_and_drinks/kitchen_machinery/food_cart.dm b/code/modules/food_and_drinks/kitchen_machinery/food_cart.dm
index b2babc19d7..c3f9e0334d 100644
--- a/code/modules/food_and_drinks/kitchen_machinery/food_cart.dm
+++ b/code/modules/food_and_drinks/kitchen_machinery/food_cart.dm
@@ -7,8 +7,8 @@
desc = "New generation hot dog stand."
icon = 'icons/obj/kitchen.dmi'
icon_state = "foodcart"
- density = 1
- anchored = 0
+ density = TRUE
+ anchored = FALSE
use_power = NO_POWER_USE
var/food_stored = 0
var/glasses = 0
diff --git a/code/modules/food_and_drinks/kitchen_machinery/gibber.dm b/code/modules/food_and_drinks/kitchen_machinery/gibber.dm
index a99a05ef2c..1600c0a2a8 100644
--- a/code/modules/food_and_drinks/kitchen_machinery/gibber.dm
+++ b/code/modules/food_and_drinks/kitchen_machinery/gibber.dm
@@ -4,9 +4,9 @@
desc = "The name isn't descriptive enough?"
icon = 'icons/obj/kitchen.dmi'
icon_state = "grinder"
- density = 1
- anchored = 1
- var/operating = 0 //Is it on?
+ density = TRUE
+ anchored = TRUE
+ var/operating = FALSE //Is it on?
var/dirty = 0 // Does it need cleaning?
var/gibtime = 40 // Time from starting until meat appears
var/meat_produced = 0
@@ -162,7 +162,7 @@
use_power(1000)
visible_message("You hear a loud squelchy grinding sound.")
playsound(src.loc, 'sound/machines/juicer.ogg', 50, 1)
- src.operating = 1
+ operating = TRUE
update_icon()
var/offset = prob(50) ? -2 : 2
@@ -215,7 +215,7 @@
qdel(src.occupant)
spawn(src.gibtime)
playsound(src.loc, 'sound/effects/splat.ogg', 50, 1)
- operating = 0
+ operating = FALSE
var/turf/T = get_turf(src)
var/list/turf/nearby_turfs = RANGE_TURFS(3,T) - T
var/obj/item/skin = allskin
@@ -231,5 +231,5 @@
new gibtype(gibturf,i)
pixel_x = initial(pixel_x) //return to its spot after shaking
- src.operating = 0
+ operating = FALSE
update_icon()
diff --git a/code/modules/food_and_drinks/kitchen_machinery/icecream_vat.dm b/code/modules/food_and_drinks/kitchen_machinery/icecream_vat.dm
index ed3e24242b..b5c02946e7 100644
--- a/code/modules/food_and_drinks/kitchen_machinery/icecream_vat.dm
+++ b/code/modules/food_and_drinks/kitchen_machinery/icecream_vat.dm
@@ -10,8 +10,8 @@
desc = "Ding-aling ding dong. Get your Nanotrasen-approved ice cream!"
icon = 'icons/obj/kitchen.dmi'
icon_state = "icecream_vat"
- density = 1
- anchored = 0
+ density = TRUE
+ anchored = FALSE
use_power = NO_POWER_USE
layer = BELOW_OBJ_LAYER
var/list/product_types = list()
diff --git a/code/modules/food_and_drinks/kitchen_machinery/juicer.dm b/code/modules/food_and_drinks/kitchen_machinery/juicer.dm
index 58563e56d5..9dd314e18c 100644
--- a/code/modules/food_and_drinks/kitchen_machinery/juicer.dm
+++ b/code/modules/food_and_drinks/kitchen_machinery/juicer.dm
@@ -5,8 +5,8 @@
icon = 'icons/obj/kitchen.dmi'
icon_state = "juicer1"
layer = BELOW_OBJ_LAYER
- density = 1
- anchored = 0
+ density = TRUE
+ anchored = FALSE
use_power = IDLE_POWER_USE
idle_power_usage = 5
active_power_usage = 100
diff --git a/code/modules/food_and_drinks/kitchen_machinery/microwave.dm b/code/modules/food_and_drinks/kitchen_machinery/microwave.dm
index 3e7301aed4..6df7ce9e44 100644
--- a/code/modules/food_and_drinks/kitchen_machinery/microwave.dm
+++ b/code/modules/food_and_drinks/kitchen_machinery/microwave.dm
@@ -4,12 +4,12 @@
icon = 'icons/obj/kitchen.dmi'
icon_state = "mw"
layer = BELOW_OBJ_LAYER
- density = 1
- anchored = 1
+ density = TRUE
+ anchored = TRUE
use_power = IDLE_POWER_USE
idle_power_usage = 5
active_power_usage = 100
- var/operating = 0 // Is it on?
+ var/operating = FALSE // Is it on?
var/dirty = 0 // = {0..100} Does it need cleaning?
var/broken = 0 // ={0,1,2} How broken is it???
var/max_n_of_items = 10 // whatever fat fuck made this a global var needs to look at themselves in the mirror sometime
@@ -279,12 +279,12 @@
/obj/machinery/microwave/proc/start()
visible_message("The microwave turns on.", "You hear a microwave humming.")
- operating = 1
+ operating = TRUE
icon_state = "mw1"
updateUsrDialog()
/obj/machinery/microwave/proc/abort()
- operating = 0 // Turn it off again aferwards
+ operating = FALSE // Turn it off again aferwards
icon_state = "mw"
updateUsrDialog()
@@ -307,7 +307,7 @@
visible_message("The microwave gets covered in muck!")
dirty = 100 // Make it dirty so it can't be used util cleaned
icon_state = "mwbloody" // Make it look dirty too
- operating = 0 // Turn it off again aferwards
+ operating = FALSE // Turn it off again aferwards
updateUsrDialog()
for(var/obj/item/weapon/reagent_containers/food/snacks/S in src)
if(prob(50))
@@ -322,7 +322,7 @@
visible_message("The microwave breaks!") //Let them know they're stupid
broken = 2 // Make it broken so it can't be used util fixed
flags = null //So you can't add condiments
- operating = 0 // Turn it off again aferwards
+ operating = FALSE // Turn it off again aferwards
updateUsrDialog()
/obj/machinery/microwave/Topic(href, href_list)
diff --git a/code/modules/food_and_drinks/kitchen_machinery/monkeyrecycler.dm b/code/modules/food_and_drinks/kitchen_machinery/monkeyrecycler.dm
index 72d1580bf6..5b695cfd4b 100644
--- a/code/modules/food_and_drinks/kitchen_machinery/monkeyrecycler.dm
+++ b/code/modules/food_and_drinks/kitchen_machinery/monkeyrecycler.dm
@@ -4,8 +4,8 @@
icon = 'icons/obj/kitchen.dmi'
icon_state = "grinder"
layer = BELOW_OBJ_LAYER
- density = 1
- anchored = 1
+ density = TRUE
+ anchored = TRUE
use_power = IDLE_POWER_USE
idle_power_usage = 5
active_power_usage = 50
diff --git a/code/modules/food_and_drinks/kitchen_machinery/processor.dm b/code/modules/food_and_drinks/kitchen_machinery/processor.dm
index d94992b1d1..09a0560357 100644
--- a/code/modules/food_and_drinks/kitchen_machinery/processor.dm
+++ b/code/modules/food_and_drinks/kitchen_machinery/processor.dm
@@ -5,10 +5,10 @@
icon = 'icons/obj/kitchen.dmi'
icon_state = "processor1"
layer = BELOW_OBJ_LAYER
- density = 1
- anchored = 1
+ density = TRUE
+ anchored = TRUE
var/broken = 0
- var/processing = 0
+ var/processing = FALSE
use_power = IDLE_POWER_USE
idle_power_usage = 5
active_power_usage = 50
@@ -251,7 +251,7 @@
if(src.contents.len == 0)
to_chat(user, "The processor is empty!")
return 1
- src.processing = 1
+ processing = TRUE
user.visible_message("[user] turns on [src].", \
"You turn on [src].", \
"You hear a food processor.")
@@ -274,7 +274,7 @@
continue
P.process_food(src.loc, O, src)
pixel_x = initial(pixel_x) //return to its spot after shaking
- src.processing = 0
+ processing = FALSE
src.visible_message("\The [src] finishes processing.")
/obj/machinery/processor/verb/eject()
diff --git a/code/modules/food_and_drinks/kitchen_machinery/smartfridge.dm b/code/modules/food_and_drinks/kitchen_machinery/smartfridge.dm
index e5d0f473b5..c4cf9a5e54 100644
--- a/code/modules/food_and_drinks/kitchen_machinery/smartfridge.dm
+++ b/code/modules/food_and_drinks/kitchen_machinery/smartfridge.dm
@@ -7,8 +7,8 @@
icon = 'icons/obj/vending.dmi'
icon_state = "smartfridge"
layer = BELOW_OBJ_LAYER
- density = 1
- anchored = 1
+ density = TRUE
+ anchored = TRUE
use_power = IDLE_POWER_USE
idle_power_usage = 5
active_power_usage = 100
diff --git a/code/modules/food_and_drinks/pizzabox.dm b/code/modules/food_and_drinks/pizzabox.dm
index d7b87648bd..0c963ec70b 100644
--- a/code/modules/food_and_drinks/pizzabox.dm
+++ b/code/modules/food_and_drinks/pizzabox.dm
@@ -13,7 +13,7 @@
icon_state = "pizzabox1"
item_state = "pizzabox"
- var/open = 0
+ var/open = FALSE
var/boxtag = ""
var/list/boxes = list()
diff --git a/code/modules/holiday/halloween.dm b/code/modules/holiday/halloween.dm
index 9ffcce2071..c9e6e92699 100644
--- a/code/modules/holiday/halloween.dm
+++ b/code/modules/holiday/halloween.dm
@@ -123,8 +123,8 @@
health = 1e6
speak_emote = list("howls")
emote_hear = list("wails","screeches")
- density = 0
- anchored = 1
+ density = FALSE
+ anchored = TRUE
incorporeal_move = 1
layer = 4
var/timer = 0
diff --git a/code/modules/holodeck/items.dm b/code/modules/holodeck/items.dm
index 561da5cc5c..006f8f7ccc 100644
--- a/code/modules/holodeck/items.dm
+++ b/code/modules/holodeck/items.dm
@@ -97,8 +97,8 @@
desc = "Boom, shakalaka!"
icon = 'icons/obj/basketball.dmi'
icon_state = "hoop"
- anchored = 1
- density = 1
+ anchored = TRUE
+ density = TRUE
/obj/structure/holohoop/attackby(obj/item/weapon/W as obj, mob/user as mob, params)
if(get_dist(src,user)<2)
@@ -145,9 +145,9 @@
icon_state = "auth_off"
var/ready = 0
var/area/currentarea = null
- var/eventstarted = 0
+ var/eventstarted = FALSE
- anchored = 1.0
+ anchored = TRUE
use_power = IDLE_POWER_USE
idle_power_usage = 2
active_power_usage = 6
@@ -199,7 +199,7 @@
/obj/machinery/readybutton/proc/begin_event()
- eventstarted = 1
+ eventstarted = TRUE
for(var/obj/structure/window/W in currentarea)
if(W.flags&NODECONSTRUCT) // Just in case: only holo-windows
diff --git a/code/modules/hydroponics/beekeeping/beebox.dm b/code/modules/hydroponics/beekeeping/beebox.dm
index c0bbd617bc..df5d28b30f 100644
--- a/code/modules/hydroponics/beekeeping/beebox.dm
+++ b/code/modules/hydroponics/beekeeping/beebox.dm
@@ -28,8 +28,8 @@
desc = "Dr Miles Manners is just your average wasp-themed super hero by day, but by night he becomes DR BEES!"
icon = 'icons/obj/hydroponics/equipment.dmi'
icon_state = "beebox"
- anchored = 1
- density = 1
+ anchored = TRUE
+ density = TRUE
var/mob/living/simple_animal/hostile/poison/bees/queen/queen_bee = null
var/list/bees = list() //bees owned by the box, not those inside it
var/list/honeycombs = list()
diff --git a/code/modules/hydroponics/biogenerator.dm b/code/modules/hydroponics/biogenerator.dm
index 3b841a6da7..a5c05d4607 100644
--- a/code/modules/hydroponics/biogenerator.dm
+++ b/code/modules/hydroponics/biogenerator.dm
@@ -3,11 +3,11 @@
desc = "Converts plants into biomass, which can be used to construct useful items."
icon = 'icons/obj/biogenerator.dmi'
icon_state = "biogen-empty"
- density = 1
- anchored = 1
+ density = TRUE
+ anchored = TRUE
use_power = IDLE_POWER_USE
idle_power_usage = 40
- var/processing = 0
+ var/processing = FALSE
var/obj/item/weapon/reagent_containers/glass/beaker = null
var/points = 0
var/menustat = "menu"
@@ -154,13 +154,13 @@
user.visible_message("[user] begins to load \the [O] in \the [src]...",
"You begin to load a design from \the [O]...",
"You hear the chatter of a floppy drive.")
- processing = 1
+ processing = TRUE
var/obj/item/weapon/disk/design_disk/D = O
if(do_after(user, 10, target = src))
for(var/B in D.blueprints)
if(B)
files.AddDesign2Known(B)
- processing = 0
+ processing = FALSE
return 1
else
to_chat(user, "You cannot put this in [src.name]!")
@@ -237,13 +237,13 @@
else points += I.reagents.get_reagent_amount("nutriment")*10*productivity
qdel(I)
if(S)
- processing = 1
+ processing = TRUE
update_icon()
updateUsrDialog()
playsound(src.loc, 'sound/machines/blender.ogg', 50, 1)
use_power(S*30)
sleep(S+15/productivity)
- processing = 0
+ processing = FALSE
update_icon()
else
menustat = "void"
diff --git a/code/modules/hydroponics/gene_modder.dm b/code/modules/hydroponics/gene_modder.dm
index 00d2e099a1..eef8b6b27c 100644
--- a/code/modules/hydroponics/gene_modder.dm
+++ b/code/modules/hydroponics/gene_modder.dm
@@ -3,8 +3,8 @@
desc = "An advanced device designed to manipulate plant genetic makeup."
icon = 'icons/obj/hydroponics/equipment.dmi'
icon_state = "dnamod"
- density = 1
- anchored = 1
+ density = TRUE
+ anchored = TRUE
var/obj/item/seeds/seed
var/obj/item/weapon/disk/plantgene/disk
diff --git a/code/modules/hydroponics/hydroponics.dm b/code/modules/hydroponics/hydroponics.dm
index 9aff9b6414..232cea53ac 100644
--- a/code/modules/hydroponics/hydroponics.dm
+++ b/code/modules/hydroponics/hydroponics.dm
@@ -2,8 +2,8 @@
name = "hydroponics tray"
icon = 'icons/obj/hydroponics/equipment.dmi'
icon_state = "hydrotray"
- density = 1
- anchored = 1
+ density = TRUE
+ anchored = TRUE
pixel_y = 8
unique_rename = 1
var/waterlevel = 100 //The amount of water in the tray (max 100)
@@ -815,7 +815,7 @@
if (do_after(user, 20*O.toolspeed, target = src))
if(anchored)
return
- anchored = 1
+ anchored = TRUE
user.visible_message("[user] wrenches [src] into place.", \
"You wrench [src] in place.")
else if(anchored)
@@ -825,7 +825,7 @@
if (do_after(user, 20*O.toolspeed, target = src))
if(!anchored)
return
- anchored = 0
+ anchored = FALSE
user.visible_message("[user] unwrenches [src].", \
"You unwrench [src].")
@@ -928,7 +928,7 @@
name = "soil"
icon = 'icons/obj/hydroponics/equipment.dmi'
icon_state = "soil"
- density = 0
+ density = FALSE
use_power = NO_POWER_USE
unwrenchable = 0
diff --git a/code/modules/hydroponics/seed_extractor.dm b/code/modules/hydroponics/seed_extractor.dm
index 18bac82ee4..733c5cc716 100644
--- a/code/modules/hydroponics/seed_extractor.dm
+++ b/code/modules/hydroponics/seed_extractor.dm
@@ -42,8 +42,8 @@
desc = "Extracts and bags seeds from produce."
icon = 'icons/obj/hydroponics/equipment.dmi'
icon_state = "sextractor"
- density = 1
- anchored = 1
+ density = TRUE
+ anchored = TRUE
var/piles = list()
var/max_seeds = 1000
var/seed_multiplier = 1
diff --git a/code/modules/language/language_menu.dm b/code/modules/language/language_menu.dm
index 3a30c6c11a..df0edbe6f0 100644
--- a/code/modules/language/language_menu.dm
+++ b/code/modules/language/language_menu.dm
@@ -8,7 +8,7 @@
language_holder = null
. = ..()
-/datum/language_menu/ui_interact(mob/user, ui_key = "main", datum/tgui/ui = null, force_open = 0, datum/tgui/master_ui = null, datum/ui_state/state = GLOB.language_menu_state)
+/datum/language_menu/ui_interact(mob/user, ui_key = "main", datum/tgui/ui = null, force_open = FALSE, datum/tgui/master_ui = null, datum/ui_state/state = GLOB.language_menu_state)
ui = SStgui.try_update_ui(user, src, ui_key, ui, force_open)
if(!ui)
ui = new(user, src, ui_key, "language_menu", "Language Menu", 700, 800, master_ui, state)
diff --git a/code/modules/library/lib_codex_gigas.dm b/code/modules/library/lib_codex_gigas.dm
index 7e099762de..e155b32faf 100644
--- a/code/modules/library/lib_codex_gigas.dm
+++ b/code/modules/library/lib_codex_gigas.dm
@@ -93,7 +93,7 @@
currentSection = SUFFIX
return currentSection != oldSection
-/obj/item/weapon/book/codex_gigas/ui_interact(mob/user, ui_key = "main", datum/tgui/ui = null, force_open = 0, \
+/obj/item/weapon/book/codex_gigas/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)
ui = SStgui.try_update_ui(user, src, ui_key, ui, force_open)
if(!ui)
diff --git a/code/modules/library/lib_items.dm b/code/modules/library/lib_items.dm
index 24537c2857..76047aead2 100644
--- a/code/modules/library/lib_items.dm
+++ b/code/modules/library/lib_items.dm
@@ -14,8 +14,8 @@
name = "bookcase"
icon = 'icons/obj/library.dmi'
icon_state = "bookempty"
- anchored = 0
- density = 1
+ anchored = FALSE
+ density = TRUE
opacity = 0
resistance_flags = FLAMMABLE
max_integrity = 200
@@ -30,7 +30,7 @@
return
state = 2
icon_state = "book-0"
- anchored = 1
+ anchored = TRUE
for(var/obj/item/I in loc)
if(istype(I, /obj/item/weapon/book))
I.loc = src
@@ -44,7 +44,7 @@
playsound(loc, I.usesound, 100, 1)
if(do_after(user, 20*I.toolspeed, target = src))
to_chat(user, "You wrench the frame into place.")
- anchored = 1
+ anchored = TRUE
state = 1
if(istype(I, /obj/item/weapon/crowbar))
playsound(loc, I.usesound, 100, 1)
@@ -63,7 +63,7 @@
if(istype(I, /obj/item/weapon/wrench))
playsound(loc, I.usesound, 100, 1)
to_chat(user, "You unwrench the frame.")
- anchored = 0
+ anchored = FALSE
state = 0
if(2)
diff --git a/code/modules/library/lib_machines.dm b/code/modules/library/lib_machines.dm
index 932fe4cfc1..c38c08ca0b 100644
--- a/code/modules/library/lib_machines.dm
+++ b/code/modules/library/lib_machines.dm
@@ -340,7 +340,7 @@ GLOBAL_LIST(cachedbooks) // List of our cached book datums
/obj/machinery/computer/libraryconsole/bookmanagement/emag_act(mob/user)
if(density && !emagged)
- emagged = 1
+ emagged = TRUE
/obj/machinery/computer/libraryconsole/bookmanagement/Topic(href, href_list)
if(..())
@@ -498,8 +498,8 @@ GLOBAL_LIST(cachedbooks) // List of our cached book datums
name = "scanner control interface"
icon = 'icons/obj/library.dmi'
icon_state = "bigscanner"
- anchored = 1
- density = 1
+ anchored = TRUE
+ density = TRUE
var/obj/item/weapon/book/cache // Last scanned book
/obj/machinery/libraryscanner/attackby(obj/O, mob/user, params)
@@ -554,9 +554,9 @@ GLOBAL_LIST(cachedbooks) // List of our cached book datums
name = "book binder"
icon = 'icons/obj/library.dmi'
icon_state = "binder"
- anchored = 1
- density = 1
- var/busy = 0
+ anchored = TRUE
+ density = TRUE
+ var/busy = FALSE
/obj/machinery/bookbinder/attackby(obj/O, mob/user, params)
if(istype(O, /obj/item/weapon/paper))
@@ -577,9 +577,9 @@ GLOBAL_LIST(cachedbooks) // List of our cached book datums
P.loc = src
user.visible_message("[user] loads some paper into [src].", "You load some paper into [src].")
audible_message("[src] begins to hum as it warms up its printing drums.")
- busy = 1
+ busy = TRUE
sleep(rand(200,400))
- busy = 0
+ busy = FALSE
if(P)
if(!stat)
visible_message("[src] whirs as it prints and binds a new book.")
diff --git a/code/modules/library/random_books.dm b/code/modules/library/random_books.dm
index b29152469c..4e82216513 100644
--- a/code/modules/library/random_books.dm
+++ b/code/modules/library/random_books.dm
@@ -20,7 +20,7 @@
/obj/structure/bookcase/random
var/category = null
var/book_count = 2
- anchored = 1
+ anchored = TRUE
state = 2
/obj/structure/bookcase/random/Initialize(mapload)
diff --git a/code/modules/library/soapstone.dm b/code/modules/library/soapstone.dm
index c83b1d02e0..26c88883df 100644
--- a/code/modules/library/soapstone.dm
+++ b/code/modules/library/soapstone.dm
@@ -201,7 +201,7 @@
SSpersistence.chisel_messages -= src
. = ..()
-/obj/structure/chisel_message/ui_interact(mob/user, ui_key = "main", datum/tgui/ui = null, force_open = 0, datum/tgui/master_ui = null, datum/ui_state/state = GLOB.always_state)
+/obj/structure/chisel_message/ui_interact(mob/user, ui_key = "main", datum/tgui/ui = null, force_open = FALSE, datum/tgui/master_ui = null, datum/ui_state/state = GLOB.always_state)
ui = SStgui.try_update_ui(user, src, ui_key, ui, force_open)
if(!ui)
diff --git a/code/modules/mining/abandoned_crates.dm b/code/modules/mining/abandoned_crates.dm
index ff61e44206..beac8c0d55 100644
--- a/code/modules/mining/abandoned_crates.dm
+++ b/code/modules/mining/abandoned_crates.dm
@@ -167,7 +167,7 @@
sanitycheck = null //if a digit is repeated, reject the input
if (input == code)
to_chat(user, "The crate unlocks!")
- locked = 0
+ locked = FALSE
cut_overlays()
add_overlay("securecrateg")
else if (input == null || sanitycheck == null || length(input) != codelen)
diff --git a/code/modules/mining/aux_base.dm b/code/modules/mining/aux_base.dm
index 51780ad05d..1a9f8c7428 100644
--- a/code/modules/mining/aux_base.dm
+++ b/code/modules/mining/aux_base.dm
@@ -253,8 +253,8 @@ obj/docking_port/stationary/public_mining_dock/onShuttleMove()
/obj/structure/mining_shuttle_beacon
name = "mining shuttle beacon"
desc = "A bluespace beacon calibrated to mark a landing spot for the mining shuttle when deployed near the auxillary mining base."
- anchored = 0
- density = 0
+ anchored = FALSE
+ density = FALSE
var/shuttle_ID = "landing_zone_dock"
icon = 'icons/obj/objects.dmi'
icon_state = "miningbeacon"
@@ -343,7 +343,7 @@ obj/docking_port/stationary/public_mining_dock/onShuttleMove()
aux_base_console.set_mining_mode() //Lets the colony park the shuttle there, now that it has a dock.
to_chat(user, "Mining shuttle calibration successful! Shuttle interface available at base console.")
- anchored = 1 //Locks in place to mark the landing zone.
+ anchored = TRUE //Locks in place to mark the landing zone.
playsound(loc, 'sound/machines/ping.ogg', 50, 0)
/obj/structure/mining_shuttle_beacon/proc/clear_cooldown()
diff --git a/code/modules/mining/equipment/kinetic_crusher.dm b/code/modules/mining/equipment/kinetic_crusher.dm
index 1791c01447..cd600d64fb 100644
--- a/code/modules/mining/equipment/kinetic_crusher.dm
+++ b/code/modules/mining/equipment/kinetic_crusher.dm
@@ -129,7 +129,7 @@
hammer_synced = null
return ..()
-/obj/item/projectile/destabilizer/on_hit(atom/target, blocked = 0)
+/obj/item/projectile/destabilizer/on_hit(atom/target, blocked = FALSE)
if(isliving(target))
var/mob/living/L = target
var/had_effect = (L.has_status_effect(STATUS_EFFECT_CRUSHERMARK)) //used as a boolean
diff --git a/code/modules/mining/fulton.dm b/code/modules/mining/fulton.dm
index 1a34985544..ebbc5f5b93 100644
--- a/code/modules/mining/fulton.dm
+++ b/code/modules/mining/fulton.dm
@@ -77,8 +77,8 @@ GLOBAL_LIST_EMPTY(total_extraction_beacons)
M.Knockdown(320) // Keep them from moving during the duration of the extraction
M.buckled = 0 // Unbuckle them to prevent anchoring problems
else
- A.anchored = 1
- A.density = 0
+ A.anchored = TRUE
+ A.density = FALSE
var/obj/effect/extraction_holder/holder_obj = new(A.loc)
holder_obj.appearance = A.appearance
A.loc = holder_obj
@@ -128,7 +128,7 @@ GLOBAL_LIST_EMPTY(total_extraction_beacons)
holder_obj.add_overlay(balloon3)
sleep(4)
holder_obj.cut_overlay(balloon3)
- A.anchored = 0 // An item has to be unanchored to be extracted in the first place.
+ A.anchored = FALSE // An item has to be unanchored to be extracted in the first place.
A.density = initial(A.density)
animate(holder_obj, pixel_z = 0, time = 5)
sleep(5)
@@ -154,8 +154,8 @@ GLOBAL_LIST_EMPTY(total_extraction_beacons)
desc = "A beacon for the fulton recovery system. Activate a pack in your hand to link it to a beacon."
icon = 'icons/obj/fulton.dmi'
icon_state = "extraction_point"
- anchored = 1
- density = 0
+ anchored = TRUE
+ density = FALSE
var/beacon_network = "station"
/obj/structure/extraction_point/Initialize()
diff --git a/code/modules/mining/laborcamp/laborstacker.dm b/code/modules/mining/laborcamp/laborstacker.dm
index 2984a24cdc..d4e8496e1c 100644
--- a/code/modules/mining/laborcamp/laborstacker.dm
+++ b/code/modules/mining/laborcamp/laborstacker.dm
@@ -5,8 +5,8 @@
desc = "A stacking console with an electromagnetic writer, used to track ore mined by prisoners."
icon = 'icons/obj/machines/mining_machines.dmi'
icon_state = "console"
- density = 0
- anchored = 1
+ density = FALSE
+ anchored = TRUE
var/obj/machinery/mineral/stacking_machine/laborstacker/stacking_machine = null
var/machinedir = SOUTH
var/obj/item/weapon/card/id/prisoner/inserted_id
@@ -34,7 +34,7 @@
to_chat(user, "There's an ID inserted already.")
return ..()
-/obj/machinery/mineral/labor_claim_console/ui_interact(mob/user, ui_key = "main", datum/tgui/ui = null, force_open = 0, \
+/obj/machinery/mineral/labor_claim_console/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)
ui = SStgui.try_update_ui(user, src, ui_key, ui, force_open)
if(!ui)
@@ -122,7 +122,7 @@
/obj/machinery/mineral/labor_claim_console/emag_act(mob/user)
if(!emagged)
- emagged = 1
+ emagged = TRUE
to_chat(user, "PZZTTPFFFT")
@@ -148,8 +148,8 @@
desc = "A console used by prisoners to check the progress on their quotas. Simply swipe a prisoner ID."
icon = 'icons/obj/machines/mining_machines.dmi'
icon_state = "console"
- density = 0
- anchored = 1
+ density = FALSE
+ anchored = TRUE
/obj/machinery/mineral/labor_points_checker/attack_hand(mob/user)
user.examinate(src)
diff --git a/code/modules/mining/lavaland/ruins/gym.dm b/code/modules/mining/lavaland/ruins/gym.dm
index 8ca16b8dfb..2eb30dc711 100644
--- a/code/modules/mining/lavaland/ruins/gym.dm
+++ b/code/modules/mining/lavaland/ruins/gym.dm
@@ -3,7 +3,7 @@
desc = "A punching bag. Can you get to speed level 4???"
icon = 'goon/icons/obj/fitness.dmi'
icon_state = "punchingbag"
- anchored = 1
+ anchored = TRUE
layer = WALL_OBJ_LAYER
var/list/hit_sounds = list('sound/weapons/genhit1.ogg', 'sound/weapons/genhit2.ogg', 'sound/weapons/genhit3.ogg',\
'sound/weapons/punch1.ogg', 'sound/weapons/punch2.ogg', 'sound/weapons/punch3.ogg', 'sound/weapons/punch4.ogg')
@@ -17,8 +17,8 @@
desc = "Just looking at this thing makes you feel tired."
icon = 'goon/icons/obj/fitness.dmi'
icon_state = "fitnesslifter"
- density = 1
- anchored = 1
+ density = TRUE
+ anchored = TRUE
/obj/structure/stacklifter/attack_hand(mob/living/user)
if(in_use)
@@ -55,8 +55,8 @@
desc = "Just looking at this thing makes you feel tired."
icon = 'goon/icons/obj/fitness.dmi'
icon_state = "fitnessweight"
- density = 1
- anchored = 1
+ density = TRUE
+ anchored = TRUE
/obj/structure/weightlifter/attack_hand(mob/living/user)
if(in_use)
diff --git a/code/modules/mining/machine_input_output_plates.dm b/code/modules/mining/machine_input_output_plates.dm
index 12d0d5cd82..79a514bcc2 100644
--- a/code/modules/mining/machine_input_output_plates.dm
+++ b/code/modules/mining/machine_input_output_plates.dm
@@ -4,8 +4,8 @@
icon = 'icons/mob/screen_gen.dmi'
icon_state = "x2"
name = "Input area"
- density = 0
- anchored = 1
+ density = FALSE
+ anchored = TRUE
/obj/machinery/mineral/input/New()
icon_state = "blank"
@@ -14,8 +14,8 @@
icon = 'icons/mob/screen_gen.dmi'
icon_state = "x"
name = "Output area"
- density = 0
- anchored = 1
+ density = FALSE
+ anchored = TRUE
/obj/machinery/mineral/output/New()
icon_state = "blank"
diff --git a/code/modules/mining/machine_processing.dm b/code/modules/mining/machine_processing.dm
index 32eb964de8..2e1ac21687 100644
--- a/code/modules/mining/machine_processing.dm
+++ b/code/modules/mining/machine_processing.dm
@@ -6,8 +6,8 @@
name = "production machine console"
icon = 'icons/obj/machines/mining_machines.dmi'
icon_state = "console"
- density = 1
- anchored = 1
+ density = TRUE
+ anchored = TRUE
var/obj/machinery/mineral/processing_unit/machine = null
var/machinedir = EAST
speed_process = 1
@@ -63,8 +63,8 @@
name = "furnace"
icon = 'icons/obj/machines/mining_machines.dmi'
icon_state = "furnace"
- density = 1
- anchored = 1
+ density = TRUE
+ anchored = TRUE
var/obj/machinery/mineral/CONSOLE = null
var/datum/material_container/materials
var/on = FALSE
@@ -153,7 +153,7 @@
ore_diamond -= 1
generate_mineral(/obj/item/stack/sheet/mineral/adamantine)
else
- on = 0
+ on = FALSE
continue
if (selected_glass == 0 && selected_gold == 0 && selected_silver == 1 && selected_diamond == 0 && selected_plasma == 1 && selected_uranium == 0 && selected_iron == 0 && selected_clown == 0)
if (ore_silver >= 1 && ore_plasma >= 3)
@@ -161,7 +161,7 @@
ore_plasma -= 3
generate_mineral(/obj/item/stack/sheet/mineral/mythril)
else
- on = 0
+ on = FALSE
continue*/
/obj/machinery/mineral/processing_unit/proc/smelt_ore()
diff --git a/code/modules/mining/machine_redemption.dm b/code/modules/mining/machine_redemption.dm
index 6647ebfca9..0087687688 100644
--- a/code/modules/mining/machine_redemption.dm
+++ b/code/modules/mining/machine_redemption.dm
@@ -6,8 +6,8 @@
desc = "A machine that accepts ore and instantly transforms it into workable material sheets. Points for ore are generated based on type and can be redeemed at a mining equipment vendor."
icon = 'icons/obj/machines/mining_machines.dmi'
icon_state = "ore_redemption"
- density = 1
- anchored = 1
+ density = TRUE
+ anchored = TRUE
input_dir = NORTH
output_dir = SOUTH
req_access = list(GLOB.access_mineral_storeroom)
@@ -211,7 +211,7 @@
return
interact(user)
-/obj/machinery/mineral/ore_redemption/ui_interact(mob/user, ui_key = "main", datum/tgui/ui = null, force_open = 0, datum/tgui/master_ui = null, datum/ui_state/state = GLOB.default_state)
+/obj/machinery/mineral/ore_redemption/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)
ui = SStgui.try_update_ui(user, src, ui_key, ui, force_open)
if(!ui)
ui = new(user, src, ui_key, "ore_redemption_machine", "Ore Redemption Machine", 440, 550, master_ui, state)
diff --git a/code/modules/mining/machine_stacking.dm b/code/modules/mining/machine_stacking.dm
index f5565f305c..96589fb575 100644
--- a/code/modules/mining/machine_stacking.dm
+++ b/code/modules/mining/machine_stacking.dm
@@ -4,8 +4,8 @@
name = "stacking machine console"
icon = 'icons/obj/machines/mining_machines.dmi'
icon_state = "console"
- density = 0
- anchored = 1
+ density = FALSE
+ anchored = TRUE
var/obj/machinery/mineral/stacking_machine/machine = null
var/machinedir = SOUTHEAST
speed_process = 1
@@ -60,8 +60,8 @@
name = "stacking machine"
icon = 'icons/obj/machines/mining_machines.dmi'
icon_state = "stacker"
- density = 1
- anchored = 1
+ density = TRUE
+ anchored = TRUE
var/obj/machinery/mineral/stacking_unit_console/CONSOLE
var/stk_types = list()
var/stk_amt = list()
diff --git a/code/modules/mining/machine_unloading.dm b/code/modules/mining/machine_unloading.dm
index c7aedc7a2d..db5934f8e5 100644
--- a/code/modules/mining/machine_unloading.dm
+++ b/code/modules/mining/machine_unloading.dm
@@ -5,8 +5,8 @@
name = "unloading machine"
icon = 'icons/obj/machines/mining_machines.dmi'
icon_state = "unloader"
- density = 1
- anchored = 1
+ density = TRUE
+ anchored = TRUE
input_dir = WEST
output_dir = EAST
speed_process = 1
diff --git a/code/modules/mining/machine_vending.dm b/code/modules/mining/machine_vending.dm
index fad653438c..8607dfc865 100644
--- a/code/modules/mining/machine_vending.dm
+++ b/code/modules/mining/machine_vending.dm
@@ -5,8 +5,8 @@
desc = "An equipment vendor for miners, points collected at an ore redemption machine can be spent here."
icon = 'icons/obj/machines/mining_machines.dmi'
icon_state = "mining"
- density = 1
- anchored = 1
+ density = TRUE
+ anchored = TRUE
var/obj/item/weapon/card/id/inserted_id
var/list/prize_list = list( //if you add something to this, please, for the love of god, use tabs and not spaces.
new /datum/data/mining_equipment("1 Marker Beacon", /obj/item/stack/marker_beacon, 10),
diff --git a/code/modules/mining/mine_items.dm b/code/modules/mining/mine_items.dm
index 0bab3e7601..a97f9ad4a7 100644
--- a/code/modules/mining/mine_items.dm
+++ b/code/modules/mining/mine_items.dm
@@ -3,7 +3,7 @@
//this item is intended to give the effect of entering the mine, so that light gradually fades
/obj/effect/light_emitter
name = "Light emitter"
- anchored = 1
+ anchored = TRUE
invisibility = 101
var/set_luminosity = 8
var/set_cap = 0
diff --git a/code/modules/mining/mint.dm b/code/modules/mining/mint.dm
index d40928fe4c..9a4eae0a41 100644
--- a/code/modules/mining/mint.dm
+++ b/code/modules/mining/mint.dm
@@ -5,11 +5,11 @@
name = "coin press"
icon = 'icons/obj/economy.dmi'
icon_state = "coinpress0"
- density = 1
- anchored = 1
+ density = TRUE
+ anchored = TRUE
var/datum/material_container/materials
var/newCoins = 0 //how many coins the machine made in it's last load
- var/processing = 0
+ var/processing = FALSE
var/chosen = MAT_METAL //which material will be used to make coins
var/coinsToProduce = 10
speed_process = 1
@@ -77,7 +77,7 @@
coinsToProduce = Clamp(coinsToProduce + text2num(href_list["chooseAmt"]), 0, 1000)
if(href_list["makeCoins"])
var/temp_coins = coinsToProduce
- processing = 1
+ processing = TRUE
icon_state = "coinpress1"
var/coin_mat = MINERAL_MATERIAL_AMOUNT * 0.2
var/datum/material/M = materials.materials[chosen]
@@ -93,7 +93,7 @@
sleep(5)
icon_state = "coinpress0"
- processing = 0
+ processing = FALSE
coinsToProduce = temp_coins
src.updateUsrDialog()
return
diff --git a/code/modules/mining/satchel_ore_boxdm.dm b/code/modules/mining/satchel_ore_boxdm.dm
index cb08c9d3f4..6f247fc97b 100644
--- a/code/modules/mining/satchel_ore_boxdm.dm
+++ b/code/modules/mining/satchel_ore_boxdm.dm
@@ -6,7 +6,7 @@
icon_state = "orebox"
name = "ore box"
desc = "A heavy wooden box, which can be filled with a lot of ores."
- density = 1
+ density = TRUE
pressure_resistance = 5*ONE_ATMOSPHERE
/obj/structure/ore_box/attackby(obj/item/weapon/W, mob/user, params)
diff --git a/code/modules/mob/camera/camera.dm b/code/modules/mob/camera/camera.dm
index ff2f60e7c0..be0daebbd9 100644
--- a/code/modules/mob/camera/camera.dm
+++ b/code/modules/mob/camera/camera.dm
@@ -2,8 +2,8 @@
/mob/camera
name = "camera mob"
- density = 0
- anchored = 1
+ density = FALSE
+ anchored = TRUE
status_flags = GODMODE // You can't damage it.
mouse_opacity = 0
see_in_dark = 7
diff --git a/code/modules/mob/dead/new_player/new_player.dm b/code/modules/mob/dead/new_player/new_player.dm
index 74e9e40dde..d9e41d7916 100644
--- a/code/modules/mob/dead/new_player/new_player.dm
+++ b/code/modules/mob/dead/new_player/new_player.dm
@@ -8,11 +8,11 @@
invisibility = INVISIBILITY_ABSTRACT
- density = 0
+ density = FALSE
stat = DEAD
canmove = 0
- anchored = 1 // don't get pushed around
+ anchored = TRUE // don't get pushed around
var/mob/living/new_character //for instant transfer once the round is set up
/mob/dead/new_player/Initialize()
diff --git a/code/modules/mob/dead/new_player/sprite_accessories.dm b/code/modules/mob/dead/new_player/sprite_accessories.dm
index c38c1c2d3d..ec5a034f19 100644
--- a/code/modules/mob/dead/new_player/sprite_accessories.dm
+++ b/code/modules/mob/dead/new_player/sprite_accessories.dm
@@ -56,7 +56,7 @@
var/gender_specific //Something that can be worn by either gender, but looks different on each
var/color_src = MUTCOLORS //Currently only used by mutantparts so don't worry about hair and stuff. This is the source that this accessory will get its color from. Default is MUTCOLOR, but can also be HAIR, FACEHAIR, EYECOLOR and 0 if none.
var/hasinner //Decides if this sprite has an "inner" part, such as the fleshy parts on ears.
- var/locked = 0 //Is this part locked from roundstart selection? Used for parts that apply effects
+ var/locked = FALSE //Is this part locked from roundstart selection? Used for parts that apply effects
var/dimension_x = 32
var/dimension_y = 32
var/center = FALSE //Should we center the sprite?
diff --git a/code/modules/mob/dead/observer/observer.dm b/code/modules/mob/dead/observer/observer.dm
index befbcae7e4..7156eb38fb 100644
--- a/code/modules/mob/dead/observer/observer.dm
+++ b/code/modules/mob/dead/observer/observer.dm
@@ -10,9 +10,9 @@ GLOBAL_VAR_INIT(observer_default_invisibility, INVISIBILITY_OBSERVER)
icon_state = "ghost"
layer = GHOST_LAYER
stat = DEAD
- density = 0
+ density = FALSE
canmove = 0
- anchored = 1 // don't get pushed around
+ anchored = TRUE // don't get pushed around
sight = SEE_TURFS | SEE_MOBS | SEE_OBJS | SEE_SELF
see_invisible = SEE_INVISIBLE_OBSERVER
see_in_dark = 100
diff --git a/code/modules/mob/living/bloodcrawl.dm b/code/modules/mob/living/bloodcrawl.dm
index c79e167c10..0b882e0195 100644
--- a/code/modules/mob/living/bloodcrawl.dm
+++ b/code/modules/mob/living/bloodcrawl.dm
@@ -3,8 +3,8 @@
icon = 'icons/effects/effects.dmi'
icon_state = "nothing"
var/canmove = 1
- density = 0
- anchored = 1
+ density = FALSE
+ anchored = TRUE
invisibility = 60
resistance_flags = LAVA_PROOF | FIRE_PROOF | UNACIDABLE | ACID_PROOF
diff --git a/code/modules/mob/living/carbon/alien/alien_defense.dm b/code/modules/mob/living/carbon/alien/alien_defense.dm
index 30f776da2d..b0f76df80d 100644
--- a/code/modules/mob/living/carbon/alien/alien_defense.dm
+++ b/code/modules/mob/living/carbon/alien/alien_defense.dm
@@ -6,7 +6,7 @@
return 2 //no ears
/mob/living/carbon/alien/hitby(atom/movable/AM, skipcatch, hitpush)
- ..(AM, skipcatch = 1, hitpush = 0)
+ ..(AM, skipcatch = TRUE, hitpush = FALSE)
/*Code for aliens attacking aliens. Because aliens act on a hivemind, I don't see them as very aggressive with each other.
diff --git a/code/modules/mob/living/carbon/alien/humanoid/caste/hunter.dm b/code/modules/mob/living/carbon/alien/humanoid/caste/hunter.dm
index 0af56498fd..2957124ac6 100644
--- a/code/modules/mob/living/carbon/alien/humanoid/caste/hunter.dm
+++ b/code/modules/mob/living/carbon/alien/humanoid/caste/hunter.dm
@@ -69,11 +69,11 @@
if(A)
if(isliving(A))
var/mob/living/L = A
- var/blocked = 0
+ var/blocked = FALSE
if(ishuman(A))
var/mob/living/carbon/human/H = A
if(H.check_shields(0, "the [name]", src, attack_type = LEAP_ATTACK))
- blocked = 1
+ blocked = TRUE
if(!blocked)
L.visible_message("[src] pounces on [L]!", "[src] pounces on you!")
L.Knockdown(100)
diff --git a/code/modules/mob/living/carbon/alien/larva/larva.dm b/code/modules/mob/living/carbon/alien/larva/larva.dm
index 6e87d896bd..61c78c87a8 100644
--- a/code/modules/mob/living/carbon/alien/larva/larva.dm
+++ b/code/modules/mob/living/carbon/alien/larva/larva.dm
@@ -4,7 +4,7 @@
icon_state = "larva0"
pass_flags = PASSTABLE | PASSMOB
mob_size = MOB_SIZE_SMALL
- density = 0
+ density = FALSE
maxHealth = 25
health = 25
diff --git a/code/modules/mob/living/carbon/carbon_defense.dm b/code/modules/mob/living/carbon/carbon_defense.dm
index 6641c8f58d..780fabe64d 100644
--- a/code/modules/mob/living/carbon/carbon_defense.dm
+++ b/code/modules/mob/living/carbon/carbon_defense.dm
@@ -52,7 +52,7 @@
if(affecting && affecting.dismemberable && affecting.get_damage() >= (affecting.max_damage - P.dismemberment))
affecting.dismember(P.damtype)
-/mob/living/carbon/hitby(atom/movable/AM, skipcatch, hitpush = 1, blocked = 0)
+/mob/living/carbon/hitby(atom/movable/AM, skipcatch, hitpush = TRUE, blocked = FALSE)
if(!skipcatch) //ugly, but easy
if(in_throw_mode && !get_active_held_item()) //empty active hand and we're in throw mode
if(canmove && !restrained())
diff --git a/code/modules/mob/living/carbon/damage_procs.dm b/code/modules/mob/living/carbon/damage_procs.dm
index abe997fd83..f980ed149c 100644
--- a/code/modules/mob/living/carbon/damage_procs.dm
+++ b/code/modules/mob/living/carbon/damage_procs.dm
@@ -1,6 +1,6 @@
-/mob/living/carbon/apply_damage(damage, damagetype = BRUTE, def_zone = null, blocked = 0)
+/mob/living/carbon/apply_damage(damage, damagetype = BRUTE, def_zone = null, blocked = FALSE)
var/hit_percent = (100-blocked)/100
if(!damage || hit_percent <= 0)
return 0
diff --git a/code/modules/mob/living/carbon/human/damage_procs.dm b/code/modules/mob/living/carbon/human/damage_procs.dm
index aa49718753..7641408529 100644
--- a/code/modules/mob/living/carbon/human/damage_procs.dm
+++ b/code/modules/mob/living/carbon/human/damage_procs.dm
@@ -1,5 +1,5 @@
-/mob/living/carbon/human/apply_damage(damage = 0,damagetype = BRUTE, def_zone = null, blocked = 0)
+/mob/living/carbon/human/apply_damage(damage = 0,damagetype = BRUTE, def_zone = null, blocked = FALSE)
// depending on the species, it will run the corresponding apply_damage code there
return dna.species.apply_damage(damage, damagetype, def_zone, blocked, src)
diff --git a/code/modules/mob/living/carbon/human/human_defense.dm b/code/modules/mob/living/carbon/human/human_defense.dm
index 8c88f0d4c0..e534598e25 100644
--- a/code/modules/mob/living/carbon/human/human_defense.dm
+++ b/code/modules/mob/living/carbon/human/human_defense.dm
@@ -109,7 +109,7 @@
return TRUE
return FALSE
-/mob/living/carbon/human/hitby(atom/movable/AM, skipcatch = 0, hitpush = 1, blocked = 0)
+/mob/living/carbon/human/hitby(atom/movable/AM, skipcatch = FALSE, hitpush = TRUE, blocked = FALSE)
var/spec_return = dna.species.spec_hitby(AM, src)
if(spec_return)
return spec_return
@@ -121,9 +121,9 @@
if(I.thrownby == src) //No throwing stuff at yourself to trigger hit reactions
return ..()
if(check_shields(AM, throwpower, "\the [AM.name]", THROWN_PROJECTILE_ATTACK))
- hitpush = 0
- skipcatch = 1
- blocked = 1
+ hitpush = FALSE
+ skipcatch = TRUE
+ blocked = TRUE
else if(I)
if(I.throw_speed >= EMBED_THROWSPEED_THRESHOLD)
if(can_embed(I))
@@ -135,8 +135,8 @@
I.loc = src
L.receive_damage(I.w_class*I.embedded_impact_pain_multiplier)
visible_message("[I] embeds itself in [src]'s [L.name]!","[I] embeds itself in your [L.name]!")
- hitpush = 0
- skipcatch = 1 //can't catch the now embedded item
+ hitpush = FALSE
+ skipcatch = TRUE //can't catch the now embedded item
return ..()
@@ -457,12 +457,12 @@
/mob/living/carbon/human/emp_act(severity)
- var/informed = 0
+ var/informed = FALSE
for(var/obj/item/bodypart/L in src.bodyparts)
if(L.status == BODYPART_ROBOTIC)
if(!informed)
to_chat(src, "You feel a sharp pain as your robotic limbs overload.")
- informed = 1
+ informed = TRUE
switch(severity)
if(1)
L.receive_damage(0,10)
diff --git a/code/modules/mob/living/carbon/human/interactive.dm b/code/modules/mob/living/carbon/human/interactive.dm
index 72eedbff9f..59676238e7 100644
--- a/code/modules/mob/living/carbon/human/interactive.dm
+++ b/code/modules/mob/living/carbon/human/interactive.dm
@@ -554,7 +554,7 @@
var/obj/machinery/door/airlock/AL = D
if(!AL.CanAStarPass(RPID)) // only crack open doors we can't get through
inactivity_period = 20
- AL.panel_open = 1
+ AL.panel_open = TRUE
AL.update_icon()
AL.shock(src,(100 - smartness)/2)
sleep(5)
@@ -570,7 +570,7 @@
sleep(5)
if(QDELETED(AL))
return
- AL.panel_open = 0
+ AL.panel_open = FALSE
AL.update_icon()
D.open(2) //crowbar force
else
diff --git a/code/modules/mob/living/carbon/human/species_types/jellypeople.dm b/code/modules/mob/living/carbon/human/species_types/jellypeople.dm
index ffd8544da6..a06943e1cd 100644
--- a/code/modules/mob/living/carbon/human/species_types/jellypeople.dm
+++ b/code/modules/mob/living/carbon/human/species_types/jellypeople.dm
@@ -227,7 +227,7 @@
else
ui_interact(owner)
-/datum/action/innate/swap_body/ui_interact(mob/user, ui_key = "main", datum/tgui/ui = null, force_open = 0, datum/tgui/master_ui = null, datum/ui_state/state = GLOB.conscious_state)
+/datum/action/innate/swap_body/ui_interact(mob/user, ui_key = "main", datum/tgui/ui = null, force_open = FALSE, datum/tgui/master_ui = null, datum/ui_state/state = GLOB.conscious_state)
ui = SStgui.try_update_ui(user, src, ui_key, ui, force_open)
if(!ui)
diff --git a/code/modules/mob/living/carbon/monkey/combat.dm b/code/modules/mob/living/carbon/monkey/combat.dm
index 619885c3c3..c38c624ebb 100644
--- a/code/modules/mob/living/carbon/monkey/combat.dm
+++ b/code/modules/mob/living/carbon/monkey/combat.dm
@@ -447,7 +447,7 @@
retaliate(Proj.firer)
..()
-/mob/living/carbon/monkey/hitby(atom/movable/AM, skipcatch = 0, hitpush = 1, blocked = 0)
+/mob/living/carbon/monkey/hitby(atom/movable/AM, skipcatch = FALSE, hitpush = TRUE, blocked = FALSE)
if(istype(AM, /obj/item))
var/obj/item/I = AM
if(I.throwforce < src.health && I.thrownby && ishuman(I.thrownby))
diff --git a/code/modules/mob/living/damage_procs.dm b/code/modules/mob/living/damage_procs.dm
index 6753b8a370..922febe423 100644
--- a/code/modules/mob/living/damage_procs.dm
+++ b/code/modules/mob/living/damage_procs.dm
@@ -8,7 +8,7 @@
Returns
standard 0 if fail
*/
-/mob/living/proc/apply_damage(damage = 0,damagetype = BRUTE, def_zone = null, blocked = 0)
+/mob/living/proc/apply_damage(damage = 0,damagetype = BRUTE, def_zone = null, blocked = FALSE)
var/hit_percent = (100-blocked)/100
if(!damage || (hit_percent <= 0))
return 0
@@ -89,7 +89,7 @@
-/mob/living/proc/apply_effect(effect = 0,effecttype = STUN, blocked = 0)
+/mob/living/proc/apply_effect(effect = 0,effecttype = STUN, blocked = FALSE)
var/hit_percent = (100-blocked)/100
if(!effect || (hit_percent <= 0))
return 0
@@ -117,7 +117,7 @@
return 1
-/mob/living/proc/apply_effects(stun = 0, knockdown = 0, unconscious = 0, irradiate = 0, slur = 0, stutter = 0, eyeblur = 0, drowsy = 0, blocked = 0, stamina = 0, jitter = 0)
+/mob/living/proc/apply_effects(stun = 0, knockdown = 0, unconscious = 0, irradiate = 0, slur = 0, stutter = 0, eyeblur = 0, drowsy = 0, blocked = FALSE, stamina = 0, jitter = 0)
if(blocked >= 100)
return 0
if(stun)
diff --git a/code/modules/mob/living/damage_procs.dm.rej b/code/modules/mob/living/damage_procs.dm.rej
new file mode 100644
index 0000000000..c0ff02a8dd
--- /dev/null
+++ b/code/modules/mob/living/damage_procs.dm.rej
@@ -0,0 +1,10 @@
+diff a/code/modules/mob/living/damage_procs.dm b/code/modules/mob/living/damage_procs.dm (rejected hunks)
+@@ -58,7 +58,7 @@
+ return getStaminaLoss()
+
+
+-/mob/living/proc/apply_damages(brute = 0, burn = 0, tox = 0, oxy = 0, clone = 0, def_zone = null, blocked = 0, stamina = 0)
++/mob/living/proc/apply_damages(brute = 0, burn = 0, tox = 0, oxy = 0, clone = 0, def_zone = null, blocked = FALSE, stamina = 0)
+ if(blocked >= 100)
+ return 0
+ if(brute)
diff --git a/code/modules/mob/living/living_defense.dm b/code/modules/mob/living/living_defense.dm
index d136fbe967..ebb9ee074f 100644
--- a/code/modules/mob/living/living_defense.dm
+++ b/code/modules/mob/living/living_defense.dm
@@ -61,7 +61,7 @@
else
return 0
-/mob/living/hitby(atom/movable/AM, skipcatch, hitpush = 1, blocked = 0)
+/mob/living/hitby(atom/movable/AM, skipcatch, hitpush = TRUE, blocked = FALSE)
if(istype(AM, /obj/item))
var/obj/item/I = AM
var/zone = ran_zone("chest", 65)//Hits a random part of the body, geared towards the chest
diff --git a/code/modules/mob/living/silicon/ai/ai.dm b/code/modules/mob/living/silicon/ai/ai.dm
index ce6feeaacf..97bd12b996 100644
--- a/code/modules/mob/living/silicon/ai/ai.dm
+++ b/code/modules/mob/living/silicon/ai/ai.dm
@@ -16,8 +16,8 @@
name = "AI"
icon = 'icons/mob/ai.dmi'
icon_state = "ai"
- anchored = 1
- density = 1
+ anchored = TRUE
+ density = TRUE
canmove = 0
status_flags = CANSTUN|CANPUSH
a_intent = INTENT_HARM //so we always get pushed instead of trying to swap
diff --git a/code/modules/mob/living/silicon/ai/death.dm b/code/modules/mob/living/silicon/ai/death.dm
index 1b6c67ecc6..a2ba046b13 100644
--- a/code/modules/mob/living/silicon/ai/death.dm
+++ b/code/modules/mob/living/silicon/ai/death.dm
@@ -11,7 +11,7 @@
cameraFollow = null
- anchored = 0 //unbolt floorbolts
+ anchored = FALSE //unbolt floorbolts
update_canmove()
if(eyeobj)
eyeobj.setLoc(get_turf(src))
diff --git a/code/modules/mob/living/silicon/ai/freelook/chunk.dm b/code/modules/mob/living/silicon/ai/freelook/chunk.dm
index 24197e88e4..519118744c 100644
--- a/code/modules/mob/living/silicon/ai/freelook/chunk.dm
+++ b/code/modules/mob/living/silicon/ai/freelook/chunk.dm
@@ -12,7 +12,7 @@
var/list/cameras = list()
var/list/turfs = list()
var/list/seenby = list()
- var/visible = 0
+ var/visible = FALSE
var/changed = 0
var/updating = 0
var/x = 0
diff --git a/code/modules/mob/living/silicon/damage_procs.dm b/code/modules/mob/living/silicon/damage_procs.dm
index 7b7e368984..07e6994db5 100644
--- a/code/modules/mob/living/silicon/damage_procs.dm
+++ b/code/modules/mob/living/silicon/damage_procs.dm
@@ -1,5 +1,5 @@
-/mob/living/silicon/apply_damage(damage = 0,damagetype = BRUTE, def_zone = null, blocked = 0)
+/mob/living/silicon/apply_damage(damage = 0,damagetype = BRUTE, def_zone = null, blocked = FALSE)
var/hit_percent = (100-blocked)/100
if(!damage || (hit_percent <= 0))
return 0
@@ -14,7 +14,7 @@
return 1
-/mob/living/silicon/apply_effect(effect = 0,effecttype = STUN, blocked = 0)
+/mob/living/silicon/apply_effect(effect = 0,effecttype = STUN, blocked = FALSE)
return 0 //The only effect that can hit them atm is flashes and they still directly edit so this works for now
/mob/living/silicon/adjustToxLoss(amount, updating_health = TRUE, forced = FALSE) //immune to tox damage
diff --git a/code/modules/mob/living/silicon/pai/pai.dm b/code/modules/mob/living/silicon/pai/pai.dm
index 6a44db9a8d..e1aab0d1be 100644
--- a/code/modules/mob/living/silicon/pai/pai.dm
+++ b/code/modules/mob/living/silicon/pai/pai.dm
@@ -5,7 +5,7 @@
icon = 'icons/mob/pai.dmi'
icon_state = "repairbot"
mouse_opacity = 2
- density = 0
+ density = FALSE
luminosity = 0
pass_flags = PASSTABLE | PASSMOB
mob_size = MOB_SIZE_TINY
diff --git a/code/modules/mob/living/silicon/robot/death.dm b/code/modules/mob/living/silicon/robot/death.dm
index 246ea1e060..c8c57dc602 100644
--- a/code/modules/mob/living/silicon/robot/death.dm
+++ b/code/modules/mob/living/silicon/robot/death.dm
@@ -19,7 +19,7 @@
. = ..()
- locked = 0 //unlock cover
+ locked = FALSE //unlock cover
update_canmove()
if(camera && camera.status)
diff --git a/code/modules/mob/living/silicon/robot/robot.dm b/code/modules/mob/living/silicon/robot/robot.dm
index fbefc33d9c..be66f58d6d 100644
--- a/code/modules/mob/living/silicon/robot/robot.dm
+++ b/code/modules/mob/living/silicon/robot/robot.dm
@@ -45,12 +45,12 @@
var/obj/machinery/camera/camera = null
var/opened = 0
- var/emagged = 0
+ var/emagged = FALSE
var/emag_cooldown = 0
var/wiresexposed = 0
var/ident = 0
- var/locked = 1
+ var/locked = TRUE
var/list/req_access = list(GLOB.access_robotics)
var/alarms = list("Motion"=list(), "Fire"=list(), "Atmosphere"=list(), "Power"=list(), "Camera"=list(), "Burglar"=list())
@@ -550,7 +550,7 @@
if(locked)
switch(alert("You cannot lock your cover again, are you sure?\n (You can still ask for a human to lock it)", "Unlock Own Cover", "Yes", "No"))
if("Yes")
- locked = 0
+ locked = FALSE
update_icons()
to_chat(usr, "You unlock your cover.")
@@ -983,7 +983,7 @@
camera.toggle_cam(src,0)
update_headlamp()
if(admin_revive)
- locked = 1
+ locked = TRUE
notify_ai(NEW_BORG)
. = 1
diff --git a/code/modules/mob/living/silicon/robot/robot_defense.dm b/code/modules/mob/living/silicon/robot/robot_defense.dm
index 5ae8d68deb..0bafce60d3 100644
--- a/code/modules/mob/living/silicon/robot/robot_defense.dm
+++ b/code/modules/mob/living/silicon/robot/robot_defense.dm
@@ -92,7 +92,7 @@
if(!opened)//Cover is closed
if(locked)
to_chat(user, "You emag the cover lock.")
- locked = 0
+ locked = FALSE
if(shell) //A warning to Traitors who may not know that emagging AI shells does not slave them.
to_chat(user, "[src] seems to be controlled remotely! Emagging the interface may not work as expected.")
else
diff --git a/code/modules/mob/living/simple_animal/bot/bot.dm b/code/modules/mob/living/simple_animal/bot/bot.dm
index da57ddcade..d5526cac99 100644
--- a/code/modules/mob/living/simple_animal/bot/bot.dm
+++ b/code/modules/mob/living/simple_animal/bot/bot.dm
@@ -37,12 +37,12 @@
var/bot_name
var/list/player_access = list() //Additonal access the bots gets when player controlled
- var/emagged = 0
+ var/emagged = FALSE
var/list/prev_access = list()
- var/on = 1
- var/open = 0//Maint panel
- var/locked = 1
- var/hacked = 0 //Used to differentiate between being hacked by silicons and emagged by humans.
+ var/on = TRUE
+ var/open = FALSE//Maint panel
+ var/locked = TRUE
+ var/hacked = FALSE //Used to differentiate between being hacked by silicons and emagged by humans.
var/text_hack = "" //Custom text returned to a silicon upon hacking a bot.
var/text_dehack = "" //Text shown when resetting a bots hacked status to normal.
var/text_dehack_fail = "" //Shown when a silicon tries to reset a bot emagged with the emag item, which cannot be reset.
@@ -103,14 +103,14 @@
/mob/living/simple_animal/bot/proc/turn_on()
if(stat)
return 0
- on = 1
+ on = TRUE
set_light(initial(light_range))
update_icon()
diag_hud_set_botstat()
return 1
/mob/living/simple_animal/bot/proc/turn_off()
- on = 0
+ on = FALSE
set_light(0)
bot_reset() //Resets an AI's call, should it exist.
update_icon()
@@ -168,14 +168,14 @@
/mob/living/simple_animal/bot/emag_act(mob/user)
if(locked) //First emag application unlocks the bot's interface. Apply a screwdriver to use the emag again.
- locked = 0
- emagged = 1
+ locked = FALSE
+ emagged = TRUE
to_chat(user, "You bypass [src]'s controls.")
return
if(!locked && open) //Bot panel is unlocked by ID or emag, and the panel is screwed open. Ready for emagging.
emagged = 2
remote_disabled = 1 //Manually emagging the bot locks out the AI built in panel.
- locked = 1 //Access denied forever!
+ locked = TRUE //Access denied forever!
bot_reset()
turn_on() //The bot automatically turns on when emagged, unless recently hit with EMP.
to_chat(src, "(#$*#$^^( OVERRIDE DETECTED")
@@ -771,15 +771,15 @@ Pass a positive integer as an argument to override a bot's default speed.
if("hack")
if(emagged != 2)
emagged = 2
- hacked = 1
- locked = 1
+ hacked = TRUE
+ locked = TRUE
to_chat(usr, "[text_hack]")
bot_reset()
else if(!hacked)
to_chat(usr, "[text_dehack_fail]")
else
- emagged = 0
- hacked = 0
+ emagged = FALSE
+ hacked = FALSE
to_chat(usr, "[text_dehack]")
bot_reset()
if("ejectpai")
diff --git a/code/modules/mob/living/simple_animal/bot/cleanbot.dm b/code/modules/mob/living/simple_animal/bot/cleanbot.dm
index 190a581d48..e733ecdcb8 100644
--- a/code/modules/mob/living/simple_animal/bot/cleanbot.dm
+++ b/code/modules/mob/living/simple_animal/bot/cleanbot.dm
@@ -4,8 +4,8 @@
desc = "A little cleaning robot, he looks so excited!"
icon = 'icons/mob/aibots.dmi'
icon_state = "cleanbot0"
- density = 0
- anchored = 0
+ density = FALSE
+ anchored = FALSE
health = 25
maxHealth = 25
radio_key = /obj/item/device/encryptionkey/headset_service
@@ -197,7 +197,7 @@
/mob/living/simple_animal/bot/cleanbot/UnarmedAttack(atom/A)
if(istype(A, /obj/effect/decal/cleanable))
- anchored = 1
+ anchored = TRUE
icon_state = "cleanbot-c"
visible_message("[src] begins to clean up [A].")
mode = BOT_CLEANING
@@ -208,7 +208,7 @@
if(istype(AM, /obj/effect/decal/cleanable))
qdel(AM)
- anchored = 0
+ anchored = FALSE
target = null
mode = BOT_IDLE
icon_state = "cleanbot[on]"
@@ -250,7 +250,7 @@
..()
/mob/living/simple_animal/bot/cleanbot/explode()
- on = 0
+ on = FALSE
visible_message("[src] blows apart!")
var/turf/Tsec = get_turf(src)
diff --git a/code/modules/mob/living/simple_animal/bot/ed209bot.dm b/code/modules/mob/living/simple_animal/bot/ed209bot.dm
index 2bbea8974a..82f49e7de2 100644
--- a/code/modules/mob/living/simple_animal/bot/ed209bot.dm
+++ b/code/modules/mob/living/simple_animal/bot/ed209bot.dm
@@ -3,8 +3,8 @@
desc = "A security robot. He looks less than thrilled."
icon = 'icons/mob/aibots.dmi'
icon_state = "ed2090"
- density = 1
- anchored = 0
+ density = TRUE
+ anchored = FALSE
health = 100
maxHealth = 100
damage_coeff = list(BRUTE = 0.5, BURN = 0.7, TOX = 0, CLONE = 0, STAMINA = 0, OXY = 0)
@@ -83,7 +83,7 @@
..()
target = null
oldtarget_name = null
- anchored = 0
+ anchored = FALSE
walk_to(src,0)
last_found = world.time
set_weapon()
@@ -254,7 +254,7 @@ Auto Patrol[]"},
stun_attack(target)
mode = BOT_PREP_ARREST
- anchored = 1
+ anchored = TRUE
target_lastloc = target.loc
return
@@ -288,7 +288,7 @@ Auto Patrol[]"},
if(BOT_ARREST)
if(!target)
- anchored = 0
+ anchored = FALSE
mode = BOT_IDLE
last_found = world.time
frustration = 0
@@ -303,7 +303,7 @@ Auto Patrol[]"},
return
else
mode = BOT_PREP_ARREST
- anchored = 0
+ anchored = FALSE
if(BOT_START_PATROL)
look_for_perp()
@@ -317,7 +317,7 @@ Auto Patrol[]"},
return
/mob/living/simple_animal/bot/ed209/proc/back_to_idle()
- anchored = 0
+ anchored = FALSE
mode = BOT_IDLE
target = null
last_found = world.time
@@ -325,7 +325,7 @@ Auto Patrol[]"},
INVOKE_ASYNC(src, .proc/handle_automated_action) //ensure bot quickly responds
/mob/living/simple_animal/bot/ed209/proc/back_to_hunt()
- anchored = 0
+ anchored = FALSE
frustration = 0
mode = BOT_HUNT
INVOKE_ASYNC(src, .proc/handle_automated_action) //ensure bot quickly responds
@@ -335,7 +335,7 @@ Auto Patrol[]"},
/mob/living/simple_animal/bot/ed209/proc/look_for_perp()
if(disabled)
return
- anchored = 0
+ anchored = FALSE
threatlevel = 0
var/judgement_criteria = judgement_criteria()
for (var/mob/living/carbon/C in view(7,src)) //Let's find us a criminal
@@ -476,7 +476,7 @@ Auto Patrol[]"},
emagged = 2
set_weapon()
shootAt(toshoot)
- emagged = 0
+ emagged = FALSE
set_weapon()
else
shootAt(toshoot)
diff --git a/code/modules/mob/living/simple_animal/bot/floorbot.dm b/code/modules/mob/living/simple_animal/bot/floorbot.dm
index fe2b08e777..e7830f2c23 100644
--- a/code/modules/mob/living/simple_animal/bot/floorbot.dm
+++ b/code/modules/mob/living/simple_animal/bot/floorbot.dm
@@ -4,8 +4,8 @@
desc = "A little floor repairing robot, he looks so excited!"
icon = 'icons/mob/aibots.dmi'
icon_state = "floorbot0"
- density = 0
- anchored = 0
+ density = FALSE
+ anchored = FALSE
health = 25
maxHealth = 25
@@ -61,7 +61,7 @@
target = null
oldloc = null
ignore_list = list()
- anchored = 0
+ anchored = FALSE
update_icon()
/mob/living/simple_animal/bot/floorbot/set_custom_texts()
@@ -252,12 +252,12 @@
repair(target)
else if(emagged == 2 && isfloorturf(target))
var/turf/open/floor/F = target
- anchored = 1
+ anchored = TRUE
mode = BOT_REPAIRING
F.ReplaceWithLattice()
audible_message("[src] makes an excited booping sound.")
spawn(5)
- anchored = 0
+ anchored = FALSE
mode = BOT_IDLE
target = null
path = list()
@@ -280,11 +280,11 @@
if(HULL_BREACH) //The most common job, patching breaches in the station's hull.
if(is_hull_breach(scan_target)) //Ensure that the targeted space turf is actually part of the station, and not random space.
result = scan_target
- anchored = 1 //Prevent the floorbot being blown off-course while trying to reach a hull breach.
+ anchored = TRUE //Prevent the floorbot being blown off-course while trying to reach a hull breach.
if(LINE_SPACE_MODE) //Space turfs in our chosen direction are considered.
if(get_dir(src, scan_target) == targetdirection)
result = scan_target
- anchored = 1
+ anchored = TRUE
if(PLACE_TILE)
F = scan_target
if(istype(F, /turf/open/floor/plating)) //The floor must not already have a tile.
@@ -315,7 +315,7 @@
else if(!isfloorturf(target_turf))
return
if(isspaceturf(target_turf)) //If we are fixing an area not part of pure space, it is
- anchored = 1
+ anchored = TRUE
icon_state = "floorbot-c"
visible_message("[targetdirection ? "[src] begins installing a bridge plating." : "[src] begins to repair the hole."] ")
mode = BOT_REPAIRING
@@ -330,7 +330,7 @@
var/turf/open/floor/F = target_turf
if(F.type != initial(tiletype.turf_type) && (F.broken || F.burnt || istype(F, /turf/open/floor/plating)) || F.type == (initial(tiletype.turf_type) && (F.broken || F.burnt)))
- anchored = 1
+ anchored = TRUE
icon_state = "floorbot-c"
mode = BOT_REPAIRING
visible_message("[src] begins repairing the floor.")
@@ -341,7 +341,7 @@
F.ChangeTurf(/turf/open/floor/plasteel)
if(replacetiles && F.type != initial(tiletype.turf_type) && specialtiles && !istype(F, /turf/open/floor/plating))
- anchored = 1
+ anchored = TRUE
icon_state = "floorbot-c"
mode = BOT_REPAIRING
visible_message("[src] begins replacing the floor tiles.")
@@ -355,7 +355,7 @@
speak("Requesting refill of custom floortiles to continue replacing.")
mode = BOT_IDLE
update_icon()
- anchored = 0
+ anchored = FALSE
target = null
/mob/living/simple_animal/bot/floorbot/update_icon()
@@ -363,7 +363,7 @@
/mob/living/simple_animal/bot/floorbot/explode()
- on = 0
+ on = FALSE
visible_message("[src] blows apart!")
var/turf/Tsec = get_turf(src)
diff --git a/code/modules/mob/living/simple_animal/bot/medbot.dm b/code/modules/mob/living/simple_animal/bot/medbot.dm
index e4ddb91ecc..a0399d2b2c 100644
--- a/code/modules/mob/living/simple_animal/bot/medbot.dm
+++ b/code/modules/mob/living/simple_animal/bot/medbot.dm
@@ -8,8 +8,8 @@
desc = "A little medical robot. He looks somewhat underwhelmed."
icon = 'icons/mob/aibots.dmi'
icon_state = "medibot0"
- density = 0
- anchored = 0
+ density = FALSE
+ anchored = FALSE
health = 20
maxHealth = 20
pass_flags = PASSMOB
@@ -507,7 +507,7 @@
return 0
/mob/living/simple_animal/bot/medbot/explode()
- on = 0
+ on = FALSE
visible_message("[src] blows apart!")
var/turf/Tsec = get_turf(src)
diff --git a/code/modules/mob/living/simple_animal/bot/mulebot.dm b/code/modules/mob/living/simple_animal/bot/mulebot.dm
index e62f8a85b5..7a0b5de697 100644
--- a/code/modules/mob/living/simple_animal/bot/mulebot.dm
+++ b/code/modules/mob/living/simple_animal/bot/mulebot.dm
@@ -12,8 +12,8 @@
name = "\improper MULEbot"
desc = "A Multiple Utility Load Effector bot."
icon_state = "mulebot0"
- density = 1
- anchored = 1
+ density = TRUE
+ anchored = TRUE
animate_movement=1
health = 50
maxHealth = 50
@@ -114,7 +114,7 @@
/mob/living/simple_animal/bot/mulebot/emag_act(mob/user)
if(emagged < 1)
- emagged = 1
+ emagged = TRUE
if(!open)
locked = !locked
to_chat(user, "You [locked ? "lock" : "unlock"] the [src]'s controls!")
@@ -162,7 +162,7 @@
return
ui_interact(user)
-/mob/living/simple_animal/bot/mulebot/ui_interact(mob/user, ui_key = "main", datum/tgui/ui = null, force_open = 0, \
+/mob/living/simple_animal/bot/mulebot/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)
ui = SStgui.try_update_ui(user, src, ui_key, ui, force_open)
if(!ui)
@@ -428,7 +428,7 @@
/mob/living/simple_animal/bot/mulebot/handle_automated_action()
if(!has_power())
- on = 0
+ on = FALSE
return
if(on)
var/speed = (wires.is_cut(WIRE_MOTOR1) ? 0 : 1) + (wires.is_cut(WIRE_MOTOR2) ? 0 : 2)
diff --git a/code/modules/mob/living/simple_animal/bot/secbot.dm b/code/modules/mob/living/simple_animal/bot/secbot.dm
index 22544a9037..01f34953b9 100644
--- a/code/modules/mob/living/simple_animal/bot/secbot.dm
+++ b/code/modules/mob/living/simple_animal/bot/secbot.dm
@@ -3,8 +3,8 @@
desc = "A little security robot. He looks less than thrilled."
icon = 'icons/mob/aibots.dmi'
icon_state = "secbot0"
- density = 0
- anchored = 0
+ density = FALSE
+ anchored = FALSE
health = 25
maxHealth = 25
damage_coeff = list(BRUTE = 0.5, BURN = 0.7, TOX = 0, CLONE = 0, STAMINA = 0, OXY = 0)
@@ -86,7 +86,7 @@
..()
target = null
oldtarget_name = null
- anchored = 0
+ anchored = FALSE
walk_to(src,0)
last_found = world.time
@@ -211,7 +211,7 @@ Auto Patrol: []"},
..()
-/mob/living/simple_animal/bot/secbot/hitby(atom/movable/AM, skipcatch = 0, hitpush = 1, blocked = 0)
+/mob/living/simple_animal/bot/secbot/hitby(atom/movable/AM, skipcatch = FALSE, hitpush = TRUE, blocked = FALSE)
if(istype(AM, /obj/item))
var/obj/item/I = AM
if(I.throwforce < src.health && I.thrownby && ishuman(I.thrownby))
@@ -284,7 +284,7 @@ Auto Patrol: []"},
stun_attack(target)
mode = BOT_PREP_ARREST
- anchored = 1
+ anchored = TRUE
target_lastloc = target.loc
return
@@ -318,7 +318,7 @@ Auto Patrol: []"},
if(BOT_ARREST)
if(!target)
- anchored = 0
+ anchored = FALSE
mode = BOT_IDLE
last_found = world.time
frustration = 0
@@ -333,7 +333,7 @@ Auto Patrol: []"},
return
else //Try arresting again if the target escapes.
mode = BOT_PREP_ARREST
- anchored = 0
+ anchored = FALSE
if(BOT_START_PATROL)
look_for_perp()
@@ -347,7 +347,7 @@ Auto Patrol: []"},
return
/mob/living/simple_animal/bot/secbot/proc/back_to_idle()
- anchored = 0
+ anchored = FALSE
mode = BOT_IDLE
target = null
last_found = world.time
@@ -356,7 +356,7 @@ Auto Patrol: []"},
handle_automated_action() //ensure bot quickly responds
/mob/living/simple_animal/bot/secbot/proc/back_to_hunt()
- anchored = 0
+ anchored = FALSE
frustration = 0
mode = BOT_HUNT
spawn(0)
@@ -364,7 +364,7 @@ Auto Patrol: []"},
// look for a criminal in view of the bot
/mob/living/simple_animal/bot/secbot/proc/look_for_perp()
- anchored = 0
+ anchored = FALSE
var/judgement_criteria = judgement_criteria()
for (var/mob/living/carbon/C in view(7,src)) //Let's find us a criminal
if((C.stat) || (C.handcuffed))
diff --git a/code/modules/mob/living/simple_animal/friendly/butterfly.dm b/code/modules/mob/living/simple_animal/friendly/butterfly.dm
index 0b0b46c259..0c153d37e2 100644
--- a/code/modules/mob/living/simple_animal/friendly/butterfly.dm
+++ b/code/modules/mob/living/simple_animal/friendly/butterfly.dm
@@ -13,7 +13,7 @@
health = 2
harm_intent_damage = 1
friendly = "nudges"
- density = 0
+ density = FALSE
movement_type = FLYING
pass_flags = PASSTABLE | PASSGRILLE | PASSMOB
ventcrawler = VENTCRAWLER_ALWAYS
diff --git a/code/modules/mob/living/simple_animal/friendly/cat.dm b/code/modules/mob/living/simple_animal/friendly/cat.dm
index 9edcfd24bf..ef0b35cdc3 100644
--- a/code/modules/mob/living/simple_animal/friendly/cat.dm
+++ b/code/modules/mob/living/simple_animal/friendly/cat.dm
@@ -68,7 +68,7 @@
icon_state = "kitten"
icon_living = "kitten"
icon_dead = "kitten_dead"
- density = 0
+ density = FALSE
pass_flags = PASSMOB
mob_size = MOB_SIZE_SMALL
diff --git a/code/modules/mob/living/simple_animal/friendly/cockroach.dm b/code/modules/mob/living/simple_animal/friendly/cockroach.dm
index 2e1f9747dc..2ab1adee23 100644
--- a/code/modules/mob/living/simple_animal/friendly/cockroach.dm
+++ b/code/modules/mob/living/simple_animal/friendly/cockroach.dm
@@ -16,7 +16,7 @@
response_disarm = "shoos"
response_harm = "splats"
speak_emote = list("chitters")
- density = 0
+ density = FALSE
ventcrawler = VENTCRAWLER_ALWAYS
gold_core_spawnable = 2
verb_say = "chitters"
diff --git a/code/modules/mob/living/simple_animal/friendly/dog.dm b/code/modules/mob/living/simple_animal/friendly/dog.dm
index 61c7c7df4d..0c80c24b15 100644
--- a/code/modules/mob/living/simple_animal/friendly/dog.dm
+++ b/code/modules/mob/living/simple_animal/friendly/dog.dm
@@ -474,7 +474,7 @@
icon_state = "puppy"
icon_living = "puppy"
icon_dead = "puppy_dead"
- density = 0
+ density = FALSE
pass_flags = PASSMOB
mob_size = MOB_SIZE_SMALL
diff --git a/code/modules/mob/living/simple_animal/friendly/drone/_drone.dm b/code/modules/mob/living/simple_animal/friendly/drone/_drone.dm
index 5d9bc54be0..db347cc203 100644
--- a/code/modules/mob/living/simple_animal/friendly/drone/_drone.dm
+++ b/code/modules/mob/living/simple_animal/friendly/drone/_drone.dm
@@ -30,7 +30,7 @@
speed = 0
ventcrawler = VENTCRAWLER_ALWAYS
healable = 0
- density = 0
+ density = FALSE
pass_flags = PASSTABLE | PASSMOB
sight = (SEE_TURFS | SEE_OBJS)
status_flags = (CANPUSH | CANSTUN | CANKNOCKDOWN)
@@ -66,7 +66,7 @@
var/obj/item/default_hatmask //If this exists, it will spawn in the hat/mask slot if it can fit
var/seeStatic = 1 //Whether we see static instead of mobs
var/visualAppearence = MAINTDRONE //What we appear as
- var/hacked = 0 //If we have laws to destroy the station
+ var/hacked = FALSE //If we have laws to destroy the station
var/can_be_held = TRUE //if assholes can pick us up
var/flavortext = \
"\nDO NOT INTERFERE WITH THE ROUND AS A DRONE OR YOU WILL BE DRONE BANNED\n"+\
diff --git a/code/modules/mob/living/simple_animal/friendly/drone/interaction.dm b/code/modules/mob/living/simple_animal/friendly/drone/interaction.dm
index fd4b609b76..aaad3176e2 100644
--- a/code/modules/mob/living/simple_animal/friendly/drone/interaction.dm
+++ b/code/modules/mob/living/simple_animal/friendly/drone/interaction.dm
@@ -136,7 +136,7 @@
"3. Your goals are to destroy, sabotage, hinder, break, and depower to the best of your abilities, You must never actively work against these goals."
to_chat(src, laws)
to_chat(src, "Your onboard antivirus has initiated lockdown. Motor servos are impaired, ventilation access is denied, and your display reports that you are hacked to all nearby.")
- hacked = 1
+ hacked = TRUE
mind.special_role = "hacked drone"
seeStatic = 0 //I MUST SEE THEIR TERRIFIED FACES
ventcrawler = VENTCRAWLER_NONE //Again, balance
@@ -152,7 +152,7 @@
laws = initial(laws)
to_chat(src, laws)
to_chat(src, "Having been restored, your onboard antivirus reports the all-clear and you are able to perform all actions again.")
- hacked = 0
+ hacked = FALSE
mind.special_role = null
seeStatic = initial(seeStatic)
ventcrawler = initial(ventcrawler)
diff --git a/code/modules/mob/living/simple_animal/friendly/farm_animals.dm b/code/modules/mob/living/simple_animal/friendly/farm_animals.dm
index e2669bdef8..f3143de27c 100644
--- a/code/modules/mob/living/simple_animal/friendly/farm_animals.dm
+++ b/code/modules/mob/living/simple_animal/friendly/farm_animals.dm
@@ -179,7 +179,7 @@
speak_emote = list("cheeps")
emote_hear = list("cheeps.")
emote_see = list("pecks at the ground.","flaps its tiny wings.")
- density = 0
+ density = FALSE
speak_chance = 2
turns_per_move = 2
butcher_results = list(/obj/item/weapon/reagent_containers/food/snacks/meat/slab = 1)
@@ -226,7 +226,7 @@
speak_emote = list("clucks","croons")
emote_hear = list("clucks.")
emote_see = list("pecks at the ground.","flaps its wings viciously.")
- density = 0
+ density = FALSE
speak_chance = 2
turns_per_move = 3
butcher_results = list(/obj/item/weapon/reagent_containers/food/snacks/meat/slab = 2)
diff --git a/code/modules/mob/living/simple_animal/friendly/lizard.dm b/code/modules/mob/living/simple_animal/friendly/lizard.dm
index 7c8551b639..3741d8cf58 100644
--- a/code/modules/mob/living/simple_animal/friendly/lizard.dm
+++ b/code/modules/mob/living/simple_animal/friendly/lizard.dm
@@ -15,7 +15,7 @@
response_disarm = "shoos"
response_harm = "stomps on"
ventcrawler = VENTCRAWLER_ALWAYS
- density = 0
+ density = FALSE
pass_flags = PASSTABLE | PASSMOB
mob_size = MOB_SIZE_SMALL
gold_core_spawnable = 2
diff --git a/code/modules/mob/living/simple_animal/friendly/mouse.dm b/code/modules/mob/living/simple_animal/friendly/mouse.dm
index 638e176d02..207bda2c2c 100644
--- a/code/modules/mob/living/simple_animal/friendly/mouse.dm
+++ b/code/modules/mob/living/simple_animal/friendly/mouse.dm
@@ -17,7 +17,7 @@
response_help = "pets"
response_disarm = "gently pushes aside"
response_harm = "splats"
- density = 0
+ density = FALSE
ventcrawler = VENTCRAWLER_ALWAYS
pass_flags = PASSTABLE | PASSGRILLE | PASSMOB
mob_size = MOB_SIZE_TINY
diff --git a/code/modules/mob/living/simple_animal/guardian/types/charger.dm b/code/modules/mob/living/simple_animal/guardian/types/charger.dm
index 9de906bccb..479dc3f1c9 100644
--- a/code/modules/mob/living/simple_animal/guardian/types/charger.dm
+++ b/code/modules/mob/living/simple_animal/guardian/types/charger.dm
@@ -54,13 +54,13 @@
else if(A)
if(isliving(A) && A != summoner)
var/mob/living/L = A
- var/blocked = 0
+ var/blocked = FALSE
if(hasmatchingsummoner(A)) //if the summoner matches don't hurt them
- blocked = 1
+ blocked = TRUE
if(ishuman(A))
var/mob/living/carbon/human/H = A
if(H.check_shields(src, 90, "[name]", attack_type = THROWN_PROJECTILE_ATTACK))
- blocked = 1
+ blocked = TRUE
if(!blocked)
L.drop_all_held_items()
L.visible_message("[src] slams into [L]!", "[src] slams into you!")
diff --git a/code/modules/mob/living/simple_animal/hostile/giant_spider.dm b/code/modules/mob/living/simple_animal/hostile/giant_spider.dm
index 1caea2e7ea..cf4f027065 100644
--- a/code/modules/mob/living/simple_animal/hostile/giant_spider.dm
+++ b/code/modules/mob/living/simple_animal/hostile/giant_spider.dm
@@ -146,7 +146,7 @@
if(busy == MOVING_TO_TARGET)
if(cocoon_target == C && get_dist(src,cocoon_target) > 1)
cocoon_target = null
- busy = 0
+ busy = FALSE
stop_automated_movement = 0
/mob/living/simple_animal/hostile/poison/giant_spider/nurse/handle_automated_action()
diff --git a/code/modules/mob/living/simple_animal/hostile/jungle_mobs.dm b/code/modules/mob/living/simple_animal/hostile/jungle_mobs.dm
index 27f622cfa8..2e39ab9b82 100644
--- a/code/modules/mob/living/simple_animal/hostile/jungle_mobs.dm
+++ b/code/modules/mob/living/simple_animal/hostile/jungle_mobs.dm
@@ -71,7 +71,7 @@
damage = 0
icon_state = "tentacle_end"
-/obj/item/projectile/mega_arachnid/on_hit(atom/target, blocked = 0)
+/obj/item/projectile/mega_arachnid/on_hit(atom/target, blocked = FALSE)
if(iscarbon(target) && blocked < 100)
var/obj/item/weapon/restraints/legcuffs/beartrap/mega_arachnid/B = new /obj/item/weapon/restraints/legcuffs/beartrap/mega_arachnid(get_turf(target))
B.Crossed(target)
@@ -133,7 +133,7 @@
nondirectional_sprite = TRUE
impact_effect_type = /obj/effect/temp_visual/leaper_projectile_impact
-/obj/item/projectile/leaper/on_hit(atom/target, blocked = 0)
+/obj/item/projectile/leaper/on_hit(atom/target, blocked = FALSE)
..()
if(iscarbon(target))
var/mob/living/carbon/C = target
diff --git a/code/modules/mob/living/simple_animal/hostile/megafauna/bubblegum.dm b/code/modules/mob/living/simple_animal/hostile/megafauna/bubblegum.dm
index 96f0fefbb8..715da142be 100644
--- a/code/modules/mob/living/simple_animal/hostile/megafauna/bubblegum.dm
+++ b/code/modules/mob/living/simple_animal/hostile/megafauna/bubblegum.dm
@@ -393,7 +393,7 @@ Difficulty: Hard
icon_aggro = "bloodbrood"
attacktext = "pierces"
color = "#C80000"
- density = 0
+ density = FALSE
faction = list("mining", "boss")
weather_immunities = list("lava","ash")
diff --git a/code/modules/mob/living/simple_animal/hostile/megafauna/colossus.dm b/code/modules/mob/living/simple_animal/hostile/megafauna/colossus.dm
index 5aaceace61..179949ed98 100644
--- a/code/modules/mob/living/simple_animal/hostile/megafauna/colossus.dm
+++ b/code/modules/mob/living/simple_animal/hostile/megafauna/colossus.dm
@@ -251,7 +251,7 @@ Difficulty: Very Hard
damage_type = BRUTE
pass_flags = PASSTABLE
-/obj/item/projectile/colossus/on_hit(atom/target, blocked = 0)
+/obj/item/projectile/colossus/on_hit(atom/target, blocked = FALSE)
. = ..()
if(isturf(target) || isobj(target))
target.ex_act(2)
@@ -381,7 +381,7 @@ Difficulty: Very Hard
light_range = 8
resistance_flags = INDESTRUCTIBLE | LAVA_PROOF | FIRE_PROOF | ACID_PROOF
use_power = NO_POWER_USE
- density = 1
+ density = TRUE
flags = HEAR
var/activation_method
var/list/possible_methods = list(ACTIVATE_TOUCH, ACTIVATE_SPEECH, ACTIVATE_HEAT, ACTIVATE_BULLET, ACTIVATE_ENERGY, ACTIVATE_BOMB, ACTIVATE_MOB_BUMP, ACTIVATE_WEAPON, ACTIVATE_MAGIC)
@@ -633,7 +633,7 @@ Difficulty: Very Hard
health = 2
harm_intent_damage = 1
friendly = "mends"
- density = 0
+ density = FALSE
movement_type = FLYING
pass_flags = PASSTABLE | PASSGRILLE | PASSMOB
ventcrawler = VENTCRAWLER_ALWAYS
@@ -728,8 +728,8 @@ Difficulty: Very Hard
name = "quantum entanglement stasis warp field"
desc = "You can hardly comprehend this thing... which is why you can't see it."
icon_state = null //This shouldn't even be visible, so if it DOES show up, at least nobody will notice
- density = 1
- anchored = 1
+ density = TRUE
+ anchored = TRUE
resistance_flags = FIRE_PROOF | ACID_PROOF | INDESTRUCTIBLE
var/mob/living/simple_animal/holder_animal
diff --git a/code/modules/mob/living/simple_animal/hostile/mimic.dm b/code/modules/mob/living/simple_animal/hostile/mimic.dm
index ef41fa1b1f..36a2074e29 100644
--- a/code/modules/mob/living/simple_animal/hostile/mimic.dm
+++ b/code/modules/mob/living/simple_animal/hostile/mimic.dm
@@ -36,7 +36,7 @@
speak_emote = list("clatters")
stop_automated_movement = 1
wander = 0
- var/attempt_open = 0
+ var/attempt_open = FALSE
// Pickup loot
/mob/living/simple_animal/hostile/mimic/crate/Initialize(mapload)
@@ -75,7 +75,7 @@
/mob/living/simple_animal/hostile/mimic/crate/proc/trigger()
if(!attempt_open)
visible_message("[src] starts to move!")
- attempt_open = 1
+ attempt_open = TRUE
/mob/living/simple_animal/hostile/mimic/crate/adjustHealth(amount, updating_health = TRUE, forced = FALSE)
trigger()
diff --git a/code/modules/mob/living/simple_animal/hostile/mining_mobs/goliath.dm b/code/modules/mob/living/simple_animal/hostile/mining_mobs/goliath.dm
index 2edbe7e7e0..cf2dd5c1f9 100644
--- a/code/modules/mob/living/simple_animal/hostile/mining_mobs/goliath.dm
+++ b/code/modules/mob/living/simple_animal/hostile/mining_mobs/goliath.dm
@@ -49,7 +49,7 @@
. = 1
/mob/living/simple_animal/hostile/asteroid/goliath/death(gibbed)
- anchored = 0
+ anchored = FALSE
..(gibbed)
/mob/living/simple_animal/hostile/asteroid/goliath/OpenFire()
diff --git a/code/modules/mob/living/simple_animal/hostile/mining_mobs/gutlunch.dm b/code/modules/mob/living/simple_animal/hostile/mining_mobs/gutlunch.dm
index b5bea10cd3..b5f7de3490 100644
--- a/code/modules/mob/living/simple_animal/hostile/mining_mobs/gutlunch.dm
+++ b/code/modules/mob/living/simple_animal/hostile/mining_mobs/gutlunch.dm
@@ -11,7 +11,7 @@
emote_see = list("sniffs.", "burps.")
weather_immunities = list("lava","ash")
faction = list("mining", "ashwalker")
- density = 0
+ density = FALSE
speak_chance = 1
turns_per_move = 8
obj_damage = 0
diff --git a/code/modules/mob/living/simple_animal/hostile/retaliate/frog.dm b/code/modules/mob/living/simple_animal/hostile/retaliate/frog.dm
index 54e1169a11..b11019ca1b 100644
--- a/code/modules/mob/living/simple_animal/hostile/retaliate/frog.dm
+++ b/code/modules/mob/living/simple_animal/hostile/retaliate/frog.dm
@@ -16,7 +16,7 @@
response_help = "pets"
response_disarm = "pokes"
response_harm = "splats"
- density = 0
+ density = FALSE
ventcrawler = VENTCRAWLER_ALWAYS
faction = list("hostile")
attack_sound = 'sound/effects/reee.ogg'
diff --git a/code/modules/mob/living/simple_animal/hostile/statue.dm b/code/modules/mob/living/simple_animal/hostile/statue.dm
index a810d3fd67..1235d81bbe 100644
--- a/code/modules/mob/living/simple_animal/hostile/statue.dm
+++ b/code/modules/mob/living/simple_animal/hostile/statue.dm
@@ -43,7 +43,7 @@
search_objects = 1 // So that it can see through walls
sight = SEE_SELF|SEE_MOBS|SEE_OBJS|SEE_TURFS
- anchored = 1
+ anchored = TRUE
gold_core_spawnable = 1
diff --git a/code/modules/mob/living/simple_animal/parrot.dm b/code/modules/mob/living/simple_animal/parrot.dm
index 5430ff2678..ce2967319a 100644
--- a/code/modules/mob/living/simple_animal/parrot.dm
+++ b/code/modules/mob/living/simple_animal/parrot.dm
@@ -33,7 +33,7 @@
icon_state = "parrot_fly"
icon_living = "parrot_fly"
icon_dead = "parrot_dead"
- density = 0
+ density = FALSE
health = 80
maxHealth = 80
pass_flags = PASSTABLE | PASSMOB
diff --git a/code/modules/mob/living/simple_animal/simple_animal.dm b/code/modules/mob/living/simple_animal/simple_animal.dm
index ff21125929..424495a8d0 100644
--- a/code/modules/mob/living/simple_animal/simple_animal.dm
+++ b/code/modules/mob/living/simple_animal/simple_animal.dm
@@ -302,7 +302,7 @@
else
health = 0
icon_state = icon_dead
- density = 0
+ density = FALSE
lying = 1
..()
diff --git a/code/modules/mob/living/simple_animal/spawner.dm b/code/modules/mob/living/simple_animal/spawner.dm
index 94cc061103..a8ff6be4ba 100644
--- a/code/modules/mob/living/simple_animal/spawner.dm
+++ b/code/modules/mob/living/simple_animal/spawner.dm
@@ -11,7 +11,7 @@
var/mob_type = /mob/living/simple_animal/hostile/carp
var/spawn_text = "emerges from"
status_flags = 0
- anchored = 1
+ anchored = TRUE
AIStatus = AI_OFF
a_intent = INTENT_HARM
stop_automated_movement = 1
diff --git a/code/modules/mob/mob.dm b/code/modules/mob/mob.dm
index 387f69bf4e..7681566854 100644
--- a/code/modules/mob/mob.dm
+++ b/code/modules/mob/mob.dm
@@ -753,7 +753,7 @@
var/turf/T = get_turf(src)
if(M.loc != T)
var/old_density = density
- density = 0
+ density = FALSE
var/can_step = step_towards(M, T)
density = old_density
if(!can_step)
diff --git a/code/modules/mob/mob_defines.dm b/code/modules/mob/mob_defines.dm
index f3872c2a64..53293fcf5e 100644
--- a/code/modules/mob/mob_defines.dm
+++ b/code/modules/mob/mob_defines.dm
@@ -1,5 +1,5 @@
/mob
- density = 1
+ density = TRUE
layer = MOB_LAYER
animate_movement = 2
flags = HEAR
diff --git a/code/modules/modular_computers/NTNet/NTNet.dm b/code/modules/modular_computers/NTNet/NTNet.dm
index 126f5edb11..5bccf74d5a 100644
--- a/code/modules/modular_computers/NTNet/NTNet.dm
+++ b/code/modules/modular_computers/NTNet/NTNet.dm
@@ -55,13 +55,13 @@ GLOBAL_DATUM_INIT(ntnet_global, /datum/ntnet, new)
if(!relays || !relays.len) // No relays found. NTNet is down
return FALSE
- var/operating = 0
+ var/operating = FALSE
// Check all relays. If we have at least one working relay, network is up.
for(var/M in relays)
var/obj/machinery/ntnet_relay/R = M
if(R.is_operational())
- operating = 1
+ operating = TRUE
break
if(setting_disabled)
diff --git a/code/modules/modular_computers/NTNet/NTNet_relay.dm b/code/modules/modular_computers/NTNet/NTNet_relay.dm
index 52bcb76c19..18b96d033e 100644
--- a/code/modules/modular_computers/NTNet/NTNet_relay.dm
+++ b/code/modules/modular_computers/NTNet/NTNet_relay.dm
@@ -7,8 +7,8 @@
idle_power_usage = 100
icon = 'icons/obj/machines/telecomms.dmi'
icon_state = "bus"
- anchored = 1
- density = 1
+ anchored = TRUE
+ density = TRUE
var/datum/ntnet/NTNet = null // This is mostly for backwards reference and to allow varedit modifications from ingame.
var/enabled = 1 // Set to 0 if the relay was turned off
var/dos_failure = 0 // Set to 1 if the relay failed due to (D)DoS attack
@@ -59,7 +59,7 @@
GLOB.ntnet_global.add_log("Quantum relay switched from overload recovery mode to normal operation mode.")
..()
-/obj/machinery/ntnet_relay/ui_interact(mob/user, ui_key = "main", datum/tgui/ui = null, force_open = 0, datum/tgui/master_ui = null, datum/ui_state/state = GLOB.default_state)
+/obj/machinery/ntnet_relay/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)
ui = SStgui.try_update_ui(user, src, ui_key, ui, force_open)
diff --git a/code/modules/modular_computers/computers/item/computer.dm b/code/modules/modular_computers/computers/item/computer.dm
index 0b487d9601..f0e55bb060 100644
--- a/code/modules/modular_computers/computers/item/computer.dm
+++ b/code/modules/modular_computers/computers/item/computer.dm
@@ -13,7 +13,7 @@
var/last_battery_percent = 0 // Used for deciding if battery percentage has chandged
var/last_world_time = "00:00"
var/list/last_header_icons
- var/emagged = 0 // Whether the computer is emagged.
+ var/emagged = FALSE // Whether the computer is emagged.
var/base_active_power_usage = 50 // Power usage when the computer is open (screen is active) and can be interacted with. Remember hardware can use power too.
var/base_idle_power_usage = 5 // Power usage when the computer is idle and screen is off (currently only applies to laptops)
@@ -180,7 +180,7 @@
to_chat(user, "\The [src] was already emagged.")
return 0
else
- emagged = 1
+ emagged = TRUE
to_chat(user, "You emag \the [src]. It's screen briefly shows a \"OVERRIDE ACCEPTED: New software downloads available.\" message.")
return 1
diff --git a/code/modules/modular_computers/computers/item/computer_ui.dm b/code/modules/modular_computers/computers/item/computer_ui.dm
index ec36bc6484..21065199f9 100644
--- a/code/modules/modular_computers/computers/item/computer_ui.dm
+++ b/code/modules/modular_computers/computers/item/computer_ui.dm
@@ -1,5 +1,5 @@
// Operates TGUI
-/obj/item/device/modular_computer/ui_interact(mob/user, ui_key = "main", datum/tgui/ui = null, force_open = 0, datum/tgui/master_ui = null, datum/ui_state/state = GLOB.default_state)
+/obj/item/device/modular_computer/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(!enabled)
if(ui)
ui.close()
diff --git a/code/modules/modular_computers/computers/item/laptop.dm b/code/modules/modular_computers/computers/item/laptop.dm
index e1d20c3ecc..af6d089f35 100644
--- a/code/modules/modular_computers/computers/item/laptop.dm
+++ b/code/modules/modular_computers/computers/item/laptop.dm
@@ -13,10 +13,10 @@
w_class = WEIGHT_CLASS_NORMAL
screen_on = 0 // Starts closed
- var/start_open = 1 // unless this var is set to 1
+ var/start_open = TRUE // unless this var is set to 1
var/icon_state_closed = "laptop-closed"
var/w_class_open = WEIGHT_CLASS_BULKY
- var/slowdown_open = 1
+ var/slowdown_open = TRUE
/obj/item/device/modular_computer/laptop/Initialize()
. = ..()
@@ -100,4 +100,4 @@
// Laptop frame, starts empty and closed.
/obj/item/device/modular_computer/laptop/buildable
- start_open = 0
+ start_open = FALSE
diff --git a/code/modules/modular_computers/computers/machinery/modular_console.dm b/code/modules/modular_computers/computers/machinery/modular_console.dm
index 98d844b2f4..d4fe603510 100644
--- a/code/modules/modular_computers/computers/machinery/modular_console.dm
+++ b/code/modules/modular_computers/computers/machinery/modular_console.dm
@@ -9,8 +9,8 @@
screen_icon_state_menu = "menu"
hardware_flag = PROGRAM_CONSOLE
var/console_department = "" // Used in New() to set network tag according to our area.
- anchored = 1
- density = 1
+ anchored = TRUE
+ density = TRUE
base_idle_power_usage = 100
base_active_power_usage = 500
max_hardware_size = 4
diff --git a/code/modules/modular_computers/file_system/program.dm b/code/modules/modular_computers/file_system/program.dm
index 4e5e0c24bb..4bb672649a 100644
--- a/code/modules/modular_computers/file_system/program.dm
+++ b/code/modules/modular_computers/file_system/program.dm
@@ -147,7 +147,7 @@
return 1
-/datum/computer_file/program/ui_interact(mob/user, ui_key = "main", datum/tgui/ui = null, force_open = 0, datum/tgui/master_ui = null, datum/ui_state/state = GLOB.default_state)
+/datum/computer_file/program/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)
ui = SStgui.try_update_ui(user, src, ui_key, ui, force_open)
if(!ui && tgui_id)
var/datum/asset/assets = get_asset_datum(/datum/asset/simple/headers)
diff --git a/code/modules/modular_computers/file_system/programs/card.dm b/code/modules/modular_computers/file_system/programs/card.dm
index 5eab5f5c43..56ebabf79d 100644
--- a/code/modules/modular_computers/file_system/programs/card.dm
+++ b/code/modules/modular_computers/file_system/programs/card.dm
@@ -419,7 +419,7 @@
return data
-/datum/computer_file/program/card_mod/proc/build_manage(datum/job,open = 0)
+/datum/computer_file/program/card_mod/proc/build_manage(datum/job,open = FALSE)
var/out = "Denied"
var/can_change= 0
if(open)
diff --git a/code/modules/modular_computers/laptop_vendor.dm b/code/modules/modular_computers/laptop_vendor.dm
index cd8219e044..e30d37b510 100644
--- a/code/modules/modular_computers/laptop_vendor.dm
+++ b/code/modules/modular_computers/laptop_vendor.dm
@@ -6,8 +6,8 @@
icon = 'icons/obj/vending.dmi'
icon_state = "robotics"
layer = 2.9
- anchored = 1
- density = 1
+ anchored = TRUE
+ density = TRUE
// The actual laptop/tablet
var/obj/item/device/modular_computer/laptop/fabricated_laptop = null
@@ -225,7 +225,7 @@
/obj/machinery/lapvend/attack_hand(mob/user)
ui_interact(user)
-/obj/machinery/lapvend/ui_interact(mob/user, ui_key = "main", datum/tgui/ui = null, force_open = 0, datum/tgui/master_ui = null, datum/ui_state/state = GLOB.default_state)
+/obj/machinery/lapvend/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 | NOPOWER | MAINT))
if(ui)
ui.close()
diff --git a/code/modules/ninja/suit/n_suit_verbs/energy_net_nets.dm b/code/modules/ninja/suit/n_suit_verbs/energy_net_nets.dm
index 8d58df885b..49dedd0cd3 100644
--- a/code/modules/ninja/suit/n_suit_verbs/energy_net_nets.dm
+++ b/code/modules/ninja/suit/n_suit_verbs/energy_net_nets.dm
@@ -9,10 +9,10 @@ It is possible to destroy the net by the occupant or someone else.
icon = 'icons/effects/effects.dmi'
icon_state = "energynet"
- density = 1//Can't pass through.
+ density = TRUE//Can't pass through.
opacity = 0//Can see through.
mouse_opacity = 1//So you can hit it with stuff.
- anchored = 1//Can't drag/grab the trapped mob.
+ anchored = TRUE//Can't drag/grab the trapped mob.
layer = ABOVE_ALL_MOB_LAYER
max_integrity = 25 //How much health it has.
var/mob/living/affecting = null//Who it is currently affecting, if anyone.
@@ -30,7 +30,7 @@ It is possible to destroy the net by the occupant or someone else.
/obj/structure/energy_net/Destroy()
if(affecting)
var/mob/living/carbon/M = affecting
- M.anchored = 0
+ M.anchored = FALSE
for(var/mob/O in viewers(src, 3))
O.show_message("[M.name] was recovered from the energy net!", 1, "You hear a grunt.", 2)
if(master)//As long as they still exist.
@@ -58,7 +58,7 @@ It is possible to destroy the net by the occupant or someone else.
if(!isnull(src))//As long as both net and person exist.
//No need to check for countdown here since while() broke, it's implicit that it finished.
- density = 0//Make the net pass-through.
+ density = FALSE//Make the net pass-through.
invisibility = INVISIBILITY_ABSTRACT//Make the net invisible so all the animations can play out.
resistance_flags |= INDESTRUCTIBLE //Make the net invincible so that an explosion/something else won't kill it while, spawn() is running.
for(var/obj/item/W in M)
diff --git a/code/modules/ninja/suit/ninjaDrainAct.dm b/code/modules/ninja/suit/ninjaDrainAct.dm
index c75dd1032d..2577f84a98 100644
--- a/code/modules/ninja/suit/ninjaDrainAct.dm
+++ b/code/modules/ninja/suit/ninjaDrainAct.dm
@@ -52,8 +52,8 @@ They *could* go in their appropriate files, but this is supposed to be modular
if(!emagged)
flick("apc-spark", G)
- emagged = 1
- locked = 0
+ emagged = TRUE
+ locked = FALSE
update_icon()
diff --git a/code/modules/ninja/suit/suit.dm b/code/modules/ninja/suit/suit.dm
index 102b6bc804..8c298a3c9a 100644
--- a/code/modules/ninja/suit/suit.dm
+++ b/code/modules/ninja/suit/suit.dm
@@ -50,7 +50,7 @@ Contents:
//Support function variables.
var/spideros = 0//Mode of SpiderOS. This can change so I won't bother listing the modes here (0 is hub). Check ninja_equipment.dm for how it all works.
var/s_active = 0//Stealth off.
- var/s_busy = 0//Is the suit busy with a process? Like AI hacking. Used for safety functions.
+ var/s_busy = FALSE//Is the suit busy with a process? Like AI hacking. Used for safety functions.
//Ability function variables.
var/s_bombs = 10//Number of starting ninja smoke bombs.
diff --git a/code/modules/paperwork/filingcabinet.dm b/code/modules/paperwork/filingcabinet.dm
index dadb1ddd60..468a044bc0 100644
--- a/code/modules/paperwork/filingcabinet.dm
+++ b/code/modules/paperwork/filingcabinet.dm
@@ -15,8 +15,8 @@
desc = "A large cabinet with drawers."
icon = 'icons/obj/bureaucracy.dmi'
icon_state = "filingcabinet"
- density = 1
- anchored = 1
+ density = TRUE
+ anchored = TRUE
/obj/structure/filingcabinet/chestdrawer
name = "chest drawer"
@@ -25,7 +25,7 @@
/obj/structure/filingcabinet/chestdrawer/wheeled
name = "rolling chest drawer"
desc = "A small cabinet with drawers. This one has wheels!"
- anchored = 0
+ anchored = FALSE
/obj/structure/filingcabinet/filingcabinet //not changing the path to avoid unecessary map issues, but please don't name stuff like this in the future -Pete
icon_state = "tallcabinet"
diff --git a/code/modules/paperwork/pen.dm b/code/modules/paperwork/pen.dm
index 5f5a8b32d5..fe3f7f3b0f 100644
--- a/code/modules/paperwork/pen.dm
+++ b/code/modules/paperwork/pen.dm
@@ -194,11 +194,11 @@
/obj/item/weapon/pen/edagger
origin_tech = "combat=3;syndicate=1"
attack_verb = list("slashed", "stabbed", "sliced", "torn", "ripped", "diced", "cut") //these wont show up if the pen is off
- var/on = 0
+ var/on = FALSE
/obj/item/weapon/pen/edagger/attack_self(mob/living/user)
if(on)
- on = 0
+ on = FALSE
force = initial(force)
w_class = initial(w_class)
name = initial(name)
@@ -208,7 +208,7 @@
playsound(user, 'sound/weapons/saberoff.ogg', 5, 1)
to_chat(user, "[src] can now be concealed.")
else
- on = 1
+ on = TRUE
force = 18
w_class = WEIGHT_CLASS_NORMAL
name = "energy dagger"
diff --git a/code/modules/paperwork/photocopier.dm b/code/modules/paperwork/photocopier.dm
index 0499ab19e8..bd2437aa15 100644
--- a/code/modules/paperwork/photocopier.dm
+++ b/code/modules/paperwork/photocopier.dm
@@ -12,8 +12,8 @@
desc = "Used to copy important documents and anatomy studies."
icon = 'icons/obj/library.dmi'
icon_state = "photocopier"
- anchored = 1
- density = 1
+ anchored = TRUE
+ density = TRUE
use_power = IDLE_POWER_USE
idle_power_usage = 30
active_power_usage = 200
@@ -28,7 +28,7 @@
var/maxcopies = 10 //how many copies can be copied at once- idea shamelessly stolen from bs12's copier!
var/greytoggle = "Greyscale"
var/mob/living/ass //i can't believe i didn't write a stupid-ass comment about this var when i first coded asscopy.
- var/busy = 0
+ var/busy = FALSE
/obj/machinery/photocopier/attack_ai(mob/user)
return attack_hand(user)
@@ -93,9 +93,9 @@
c.stamped = copy.stamped.Copy()
c.copy_overlays(copy, TRUE)
toner--
- busy = 1
+ busy = TRUE
sleep(15)
- busy = 0
+ busy = FALSE
else
break
updateUsrDialog()
@@ -126,9 +126,9 @@
p.pixel_x = rand(-10, 10)
p.pixel_y = rand(-10, 10)
p.blueprints = photocopy.blueprints //a copy of a picture is still good enough for the syndicate
- busy = 1
+ busy = TRUE
sleep(15)
- busy = 0
+ busy = FALSE
else
break
else if(doccopy)
@@ -136,9 +136,9 @@
if(toner > 5 && !busy && doccopy)
new /obj/item/documents/photocopy(loc, doccopy)
toner-= 6 // the sprite shows 6 papers, yes I checked
- busy = 1
+ busy = TRUE
sleep(15)
- busy = 0
+ busy = FALSE
else
break
updateUsrDialog()
@@ -173,9 +173,9 @@
ic.Blend(small_img,ICON_OVERLAY, 13, 13)
p.icon = ic
toner -= 5
- busy = 1
+ busy = TRUE
sleep(15)
- busy = 0
+ busy = FALSE
else
break
updateUsrDialog()
@@ -228,9 +228,9 @@
p.pixel_x = rand(-10, 10)
p.pixel_y = rand(-10, 10)
toner -= 5 //AI prints color pictures only, thus they can do it more efficiently
- busy = 1
+ busy = TRUE
sleep(15)
- busy = 0
+ busy = FALSE
updateUsrDialog()
else if(href_list["colortoggle"])
if(greytoggle == "Greyscale")
diff --git a/code/modules/paperwork/photography.dm b/code/modules/paperwork/photography.dm
index 1ca13f726e..c66d551ec4 100644
--- a/code/modules/paperwork/photography.dm
+++ b/code/modules/paperwork/photography.dm
@@ -112,7 +112,7 @@
materials = list(MAT_METAL=2000)
var/pictures_max = 10
var/pictures_left = 10
- var/on = 1
+ var/on = TRUE
var/blueprints = 0 //are blueprints visible in the current photo being created?
var/list/aipictures = list() //Allows for storage of pictures taken by AI, in a similar manner the datacore stores info. Keeping this here allows us to share some procs w/ regualar camera
var/see_ghosts = 0 //for the spoop of it
@@ -435,10 +435,10 @@
pictures_left--
to_chat(user, "[pictures_left] photos left.")
icon_state = "camera_off"
- on = 0
+ on = FALSE
spawn(64)
icon_state = "camera"
- on = 1
+ on = TRUE
/obj/item/device/camera/siliconcam/proc/toggle_camera_mode()
if(in_camera_mode)
diff --git a/code/modules/power/antimatter/containment_jar.dm b/code/modules/power/antimatter/containment_jar.dm
index decc6ab549..2cfbceb999 100644
--- a/code/modules/power/antimatter/containment_jar.dm
+++ b/code/modules/power/antimatter/containment_jar.dm
@@ -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
diff --git a/code/modules/power/antimatter/control.dm b/code/modules/power/antimatter/control.dm
index d4e1869688..3fcec8b3bf 100644
--- a/code/modules/power/antimatter/control.dm
+++ b/code/modules/power/antimatter/control.dm
@@ -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.", \
"You secure the anchor bolts to the floor.", \
"You hear a ratchet.")
- 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].", \
"You remove the anchor bolts.", \
"You hear a ratchet.")
- src.anchored = 0
+ src.anchored = FALSE
disconnect_from_network()
else
to_chat(user, "Once bolted and linked to a shielding unit it the [src.name] is unable to be moved!")
diff --git a/code/modules/power/antimatter/shielding.dm b/code/modules/power/antimatter/shielding.dm
index bf40c2788e..c8da6ab8b3 100644
--- a/code/modules/power/antimatter/shielding.dm
+++ b/code/modules/power/antimatter/shielding.dm
@@ -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)
diff --git a/code/modules/power/apc.dm b/code/modules/power/apc.dm
index afd786c6f3..a6ba729eed 100644
--- a/code/modules/power/apc.dm
+++ b/code/modules/power/apc.dm
@@ -43,7 +43,7 @@
desc = "A control terminal for the area electrical systems."
icon_state = "apc0"
- anchored = 1
+ anchored = TRUE
use_power = NO_POWER_USE
req_access = null
max_integrity = 200
@@ -61,12 +61,12 @@
var/lighting = 3
var/equipment = 3
var/environ = 3
- var/operating = 1
+ var/operating = TRUE
var/charging = 0
var/chargemode = 1
var/chargecount = 0
- var/locked = 1
- var/coverlocked = 1
+ var/locked = TRUE
+ var/coverlocked = TRUE
var/aidisabled = 0
var/tdir = null
var/obj/machinery/power/terminal/terminal = null
@@ -125,7 +125,7 @@
if (building)
area = get_area(src)
opened = 1
- operating = 0
+ operating = FALSE
name = "[area.name] APC"
stat |= MAINT
src.update_icon()
@@ -136,9 +136,9 @@
if(malfai && operating)
malfai.malf_picker.processing_time = Clamp(malfai.malf_picker.processing_time - 10,0,1000)
- area.power_light = 0
- area.power_equip = 0
- area.power_environ = 0
+ area.power_light = FALSE
+ area.power_equip = FALSE
+ area.power_environ = FALSE
area.power_change()
if(occupier)
malfvacate(1)
@@ -372,7 +372,7 @@
return
//SSticker.mode:apcs-- //XSI said no and I agreed. -rastaf0
else if (emagged) // We emag board, not APC's frame
- emagged = 0
+ emagged = FALSE
user.visible_message(\
"[user.name] has discarded emaged power control board from [src.name]!",\
"You discarded shorten board.")
@@ -392,7 +392,7 @@
return
else if (opened!=2) //cover isn't removed
opened = 0
- coverlocked = 1 //closing cover relocks it
+ coverlocked = TRUE //closing cover relocks it
update_icon()
return
else if (!(stat & BROKEN)) // b) on closed and not broken APC
@@ -524,7 +524,7 @@
if(do_after(user, 10, target = src))
if(has_electronics==0)
has_electronics = 1
- locked = 1 //We placed new, locked board in
+ locked = TRUE //We placed new, locked board in
to_chat(user, "You place the power control board inside the frame.")
qdel(W)
@@ -612,8 +612,8 @@
to_chat(user, "Nothing happens!")
else
flick("apc-spark", src)
- emagged = 1
- locked = 0
+ emagged = TRUE
+ locked = FALSE
to_chat(user, "You emag the APC interface.")
update_icon()
@@ -635,7 +635,7 @@
return
..()
-/obj/machinery/power/apc/ui_interact(mob/user, ui_key = "main", datum/tgui/ui = null, force_open = 0, \
+/obj/machinery/power/apc/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)
ui = SStgui.try_update_ui(user, src, ui_key, ui, force_open)
@@ -718,9 +718,9 @@
area.power_equip = (equipment > 1)
area.power_environ = (environ > 1)
else
- area.power_light = 0
- area.power_equip = 0
- area.power_environ = 0
+ area.power_light = FALSE
+ area.power_equip = FALSE
+ area.power_environ = FALSE
area.power_change()
/obj/machinery/power/apc/proc/can_use(mob/user, loud = 0) //used by attack_hand() and Topic()
@@ -1155,7 +1155,7 @@
if(malfai && operating)
malfai.malf_picker.processing_time = Clamp(malfai.malf_picker.processing_time - 10,0,1000)
stat |= BROKEN
- operating = 0
+ operating = FALSE
if(occupier)
malfvacate(1)
update_icon()
diff --git a/code/modules/power/generator.dm b/code/modules/power/generator.dm
index e32441622b..1e43380f2f 100644
--- a/code/modules/power/generator.dm
+++ b/code/modules/power/generator.dm
@@ -11,8 +11,8 @@
name = "thermoelectric generator"
desc = "It's a high efficiency thermoelectric generator."
icon_state = "teg"
- anchored = 1
- density = 1
+ anchored = TRUE
+ density = TRUE
use_power = NO_POWER_USE
var/obj/machinery/atmospherics/components/binary/circulator/cold_circ
diff --git a/code/modules/power/gravitygenerator.dm b/code/modules/power/gravitygenerator.dm
index fa9d2424cd..36804b6121 100644
--- a/code/modules/power/gravitygenerator.dm
+++ b/code/modules/power/gravitygenerator.dm
@@ -22,8 +22,8 @@ GLOBAL_LIST_EMPTY(gravity_generators) // We will keep track of this by adding ne
name = "gravitational generator"
desc = "A device which produces a graviton field when set up."
icon = 'icons/obj/machines/gravity_generator.dmi'
- anchored = 1
- density = 1
+ anchored = TRUE
+ density = TRUE
use_power = NO_POWER_USE
resistance_flags = INDESTRUCTIBLE | LAVA_PROOF | FIRE_PROOF | UNACIDABLE | ACID_PROOF
var/sprite_number = 0
@@ -121,7 +121,7 @@ GLOBAL_LIST_EMPTY(gravity_generators) // We will keep track of this by adding ne
sprite_number = 8
use_power = IDLE_POWER_USE
interact_offline = 1
- var/on = 1
+ var/on = TRUE
var/breaker = 1
var/list/parts = list()
var/obj/middle = null
@@ -132,7 +132,7 @@ GLOBAL_LIST_EMPTY(gravity_generators) // We will keep track of this by adding ne
/obj/machinery/gravity_generator/main/Destroy() // If we somehow get deleted, remove all of our other parts.
investigate_log("was destroyed!", INVESTIGATE_GRAVITY)
- on = 0
+ on = FALSE
update_list()
for(var/obj/machinery/gravity_generator/part/O in parts)
O.main_part = null
@@ -153,7 +153,7 @@ GLOBAL_LIST_EMPTY(gravity_generators) // We will keep track of this by adding ne
if(count == 5) // Middle
middle = part
if(count <= 3) // Their sprite is the top part of the generator
- part.density = 0
+ part.density = FALSE
part.layer = WALL_OBJ_LAYER
part.sprite_number = count
part.main_part = src
@@ -302,7 +302,7 @@ GLOBAL_LIST_EMPTY(gravity_generators) // We will keep track of this by adding ne
on = new_state
use_power = on ? ACTIVE_POWER_USE : IDLE_POWER_USE
// Sound the alert if gravity was just enabled or disabled.
- var/alert = 0
+ var/alert = FALSE
var/area/A = get_area(src)
if(SSticker.IsRoundInProgress())
if(on) // If we turned on and the game is live.
diff --git a/code/modules/power/lighting.dm b/code/modules/power/lighting.dm
index 944052a77b..2da8a197ba 100644
--- a/code/modules/power/lighting.dm
+++ b/code/modules/power/lighting.dm
@@ -40,7 +40,7 @@
desc = "A light fixture under construction."
icon = 'icons/obj/lighting.dmi'
icon_state = "tube-construct-stage1"
- anchored = 1
+ anchored = TRUE
layer = WALL_OBJ_LAYER
max_integrity = 200
armor = list(melee = 50, bullet = 10, laser = 10, energy = 0, bomb = 0, bio = 0, rad = 0, fire = 80, acid = 50)
@@ -153,14 +153,14 @@
var/base_state = "tube" // base description and icon_state
icon_state = "tube1"
desc = "A lighting fixture."
- anchored = 1
+ anchored = TRUE
layer = WALL_OBJ_LAYER
max_integrity = 100
use_power = ACTIVE_POWER_USE
idle_power_usage = 2
active_power_usage = 20
power_channel = LIGHT //Lights are calc'd via area so they dont need to be in the machine list
- var/on = 0 // 1 if on, 0 if off
+ var/on = FALSE // 1 if on, 0 if off
var/on_gs = 0
var/static_power_used = 0
var/brightness = 8 // luminosity when on, also used in power calculation
@@ -220,7 +220,7 @@
/obj/machinery/light/Destroy()
var/area/A = get_area(src)
if(A)
- on = 0
+ on = FALSE
// A.update_lights()
return ..()
@@ -231,13 +231,13 @@
icon_state = "[base_state][on]"
if(LIGHT_EMPTY)
icon_state = "[base_state]-empty"
- on = 0
+ on = FALSE
if(LIGHT_BURNED)
icon_state = "[base_state]-burned"
- on = 0
+ on = FALSE
if(LIGHT_BROKEN)
icon_state = "[base_state]-broken"
- on = 0
+ on = FALSE
return
// update the icon_state and luminosity of the light depending on its state
@@ -274,7 +274,7 @@
if(status == LIGHT_OK)
status = LIGHT_BURNED
icon_state = "[base_state]-burned"
- on = 0
+ on = FALSE
set_light(0)
// attempt to set the light's on/off status
@@ -528,7 +528,7 @@
return
status = LIGHT_OK
brightness = initial(brightness)
- on = 1
+ on = TRUE
update()
/obj/machinery/light/tesla_act(power, explosive = FALSE)
diff --git a/code/modules/power/monitor.dm b/code/modules/power/monitor.dm
index 6c24f0281b..8437738586 100644
--- a/code/modules/power/monitor.dm
+++ b/code/modules/power/monitor.dm
@@ -50,7 +50,7 @@
if(demand.len > record_size)
demand.Cut(1, 2)
-/obj/machinery/computer/monitor/ui_interact(mob/user, ui_key = "main", datum/tgui/ui = null, force_open = 0, \
+/obj/machinery/computer/monitor/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)
ui = SStgui.try_update_ui(user, src, ui_key, ui, force_open)
if(!ui)
diff --git a/code/modules/power/port_gen.dm b/code/modules/power/port_gen.dm
index 6828c16bdb..900ad51de9 100644
--- a/code/modules/power/port_gen.dm
+++ b/code/modules/power/port_gen.dm
@@ -5,8 +5,8 @@
desc = "A portable generator for emergency backup power."
icon = 'icons/obj/power.dmi'
icon_state = "portgen0_0"
- density = 1
- anchored = 0
+ density = TRUE
+ anchored = FALSE
use_power = NO_POWER_USE
var/active = 0
@@ -125,7 +125,7 @@
/obj/machinery/power/port_gen/pacman/DropFuel()
if(sheets)
- var/fail_safe = 0
+ var/fail_safe = FALSE
while(sheets > 0 && fail_safe < 100)
fail_safe += 1
var/obj/item/stack/sheet/S = new sheet_path(loc)
@@ -195,11 +195,11 @@
if(!anchored && !isinspace())
connect_to_network()
to_chat(user, "You secure the generator to the floor.")
- anchored = 1
+ anchored = TRUE
else if(anchored)
disconnect_from_network()
to_chat(user, "You unsecure the generator from the floor.")
- anchored = 0
+ anchored = FALSE
playsound(src.loc, 'sound/items/deconstruct.ogg', 50, 1)
return
@@ -217,7 +217,7 @@
/obj/machinery/power/port_gen/pacman/emag_act(mob/user)
if(!emagged)
- emagged = 1
+ emagged = TRUE
emp_act(1)
/obj/machinery/power/port_gen/pacman/attack_hand(mob/user)
diff --git a/code/modules/power/power.dm b/code/modules/power/power.dm
index bfec64a5c1..f2cfd807ce 100644
--- a/code/modules/power/power.dm
+++ b/code/modules/power/power.dm
@@ -9,7 +9,7 @@
/obj/machinery/power
name = null
icon = 'icons/obj/power.dmi'
- anchored = 1
+ anchored = TRUE
on_blueprints = TRUE
var/datum/powernet/powernet = null
use_power = NO_POWER_USE
diff --git a/code/modules/power/rtg.dm b/code/modules/power/rtg.dm
index 9beae9bb6b..9ec0e46da1 100644
--- a/code/modules/power/rtg.dm
+++ b/code/modules/power/rtg.dm
@@ -6,8 +6,8 @@
desc = "A simple nuclear power generator, used in small outposts to reliably provide power for decades."
icon = 'icons/obj/power.dmi'
icon_state = "rtg"
- density = 1
- anchored = 1
+ density = TRUE
+ anchored = TRUE
use_power = NO_POWER_USE
// You can buckle someone to RTG, then open its panel. Fun stuff.
diff --git a/code/modules/power/singularity/collector.dm b/code/modules/power/singularity/collector.dm
index ebe1d14d90..aca8be54c9 100644
--- a/code/modules/power/singularity/collector.dm
+++ b/code/modules/power/singularity/collector.dm
@@ -6,8 +6,8 @@ GLOBAL_LIST_EMPTY(rad_collectors)
desc = "A device which uses Hawking Radiation and plasma to produce power."
icon = 'icons/obj/singularity.dmi'
icon_state = "ca"
- anchored = 0
- density = 1
+ anchored = FALSE
+ density = TRUE
req_access = list(GLOB.access_engine_equip)
// use_power = NO_POWER_USE
max_integrity = 350
@@ -15,7 +15,7 @@ GLOBAL_LIST_EMPTY(rad_collectors)
var/obj/item/weapon/tank/internals/plasma/loaded_tank = null
var/last_power = 0
var/active = 0
- var/locked = 0
+ var/locked = FALSE
var/drainratio = 1
/obj/machinery/power/rad_collector/New()
@@ -122,7 +122,7 @@ GLOBAL_LIST_EMPTY(rad_collectors)
stat |= BROKEN
/obj/machinery/power/rad_collector/proc/eject()
- locked = 0
+ locked = FALSE
var/obj/item/weapon/tank/internals/plasma/Z = src.loaded_tank
if (!Z)
return
diff --git a/code/modules/power/singularity/containment_field.dm b/code/modules/power/singularity/containment_field.dm
index b6a5f9dedc..e12cc37d3c 100644
--- a/code/modules/power/singularity/containment_field.dm
+++ b/code/modules/power/singularity/containment_field.dm
@@ -5,8 +5,8 @@
desc = "An energy field."
icon = 'icons/obj/singularity.dmi'
icon_state = "Contain_F"
- anchored = 1
- density = 0
+ anchored = TRUE
+ density = FALSE
resistance_flags = INDESTRUCTIBLE | LAVA_PROOF | FIRE_PROOF | UNACIDABLE | ACID_PROOF
use_power = NO_POWER_USE
luminosity = 4
@@ -21,14 +21,14 @@
/obj/machinery/field/containment/attack_hand(mob/user)
if(get_dist(src, user) > 1)
- return 0
+ return FALSE
else
shock(user)
- return 1
+ return TRUE
/obj/machinery/field/containment/attackby(obj/item/W, mob/user, params)
shock(user)
- return 1
+ return TRUE
/obj/machinery/field/containment/play_attack_sound(damage_amount, damage_type = BRUTE, damage_flag = 0)
switch(damage_type)
@@ -38,10 +38,10 @@
playsound(loc, 'sound/effects/empulse.ogg', 75, 1)
/obj/machinery/field/containment/blob_act(obj/structure/blob/B)
- return 0
+ return FALSE
/obj/machinery/field/containment/ex_act(severity, target)
- return 0
+ return FALSE
/obj/machinery/field/containment/attack_animal(mob/living/simple_animal/M)
if(!FG1 || !FG2)
@@ -64,15 +64,15 @@
/obj/machinery/field/containment/proc/set_master(master1,master2)
if(!master1 || !master2)
- return 0
+ return FALSE
FG1 = master1
FG2 = master2
- return 1
+ return TRUE
/obj/machinery/field/containment/shock(mob/living/user)
if(!FG1 || !FG2)
qdel(src)
- return 0
+ return FALSE
..()
/obj/machinery/field/containment/Move()
@@ -84,17 +84,17 @@
// Used for overriding certain procs
/obj/machinery/field
- var/hasShocked = 0 //Used to add a delay between shocks. In some cases this used to crash servers by spawning hundreds of sparks every second.
+ var/hasShocked = FALSE //Used to add a delay between shocks. In some cases this used to crash servers by spawning hundreds of sparks every second.
/obj/machinery/field/CanPass(atom/movable/mover, turf/target, height=0)
if(hasShocked)
- return 0
+ return FALSE
if(isliving(mover)) // Don't let mobs through
shock(mover)
- return 0
+ return FALSE
if(istype(mover, /obj/machinery) || istype(mover, /obj/structure) || istype(mover, /obj/mecha))
bump_field(mover)
- return 0
+ return FALSE
return ..()
/obj/machinery/field/proc/shock(mob/living/user)
@@ -116,12 +116,12 @@
bump_field(user)
/obj/machinery/field/proc/clear_shock()
- hasShocked = 0
+ hasShocked = FALSE
/obj/machinery/field/proc/bump_field(atom/movable/AM as mob|obj)
if(hasShocked)
- return 0
- hasShocked = 1
+ return FALSE
+ hasShocked = TRUE
do_sparks(5, TRUE, AM.loc)
var/atom/target = get_edge_target_turf(AM, get_dir(src, get_step_away(AM, src)))
AM.throw_at(target, 200, 4)
diff --git a/code/modules/power/singularity/emitter.dm b/code/modules/power/singularity/emitter.dm
index 7b1241eaf2..152989dc15 100644
--- a/code/modules/power/singularity/emitter.dm
+++ b/code/modules/power/singularity/emitter.dm
@@ -4,8 +4,8 @@
icon = 'icons/obj/singularity.dmi'
icon_state = "emitter"
var/icon_state_on = "emitter_+a"
- anchored = 0
- density = 1
+ anchored = FALSE
+ density = TRUE
req_access = list(GLOB.access_engine_equip)
// The following 3 vars are mostly for the prototype
@@ -25,7 +25,7 @@
var/last_shot = 0
var/shot_number = 0
var/state = 0
- var/locked = 0
+ var/locked = FALSE
var/projectile_type = /obj/item/projectile/beam/emitter
@@ -343,8 +343,8 @@
/obj/machinery/power/emitter/emag_act(mob/user)
if(!emagged)
- locked = 0
- emagged = 1
+ locked = FALSE
+ emagged = TRUE
if(user)
user.visible_message("[user.name] emags the [src.name].","You short out the lock.")
diff --git a/code/modules/power/singularity/field_generator.dm b/code/modules/power/singularity/field_generator.dm
index e1284fe3d6..af62860218 100644
--- a/code/modules/power/singularity/field_generator.dm
+++ b/code/modules/power/singularity/field_generator.dm
@@ -23,8 +23,8 @@ field_generator power level display
desc = "A large thermal battery that projects a high amount of energy when powered."
icon = 'icons/obj/machines/field_generator.dmi'
icon_state = "Field_Gen"
- anchored = 0
- density = 1
+ anchored = FALSE
+ density = TRUE
use_power = NO_POWER_USE
max_integrity = 500
//100% immune to lasers and energy projectiles since it absorbs their energy.
@@ -202,7 +202,7 @@ field_generator power level display
return 0
//This could likely be better, it tends to start loopin if you have a complex generator loop setup. Still works well enough to run the engine fields will likely recode the field gens and fields sometime -Mport
-/obj/machinery/field/generator/proc/draw_power(draw = 0, failsafe = 0, obj/machinery/field/generator/G = null, obj/machinery/field/generator/last = null)
+/obj/machinery/field/generator/proc/draw_power(draw = 0, failsafe = FALSE, obj/machinery/field/generator/G = null, obj/machinery/field/generator/last = null)
if((G && (G == src)) || (failsafe >= 8))//Loopin, set fail
return 0
else
diff --git a/code/modules/power/singularity/generator.dm b/code/modules/power/singularity/generator.dm
index 49dd6403e0..01600399a1 100644
--- a/code/modules/power/singularity/generator.dm
+++ b/code/modules/power/singularity/generator.dm
@@ -4,8 +4,8 @@
desc = "An odd device which produces a Gravitational Singularity when set up."
icon = 'icons/obj/singularity.dmi'
icon_state = "TheSingGen"
- anchored = 0
- density = 1
+ anchored = FALSE
+ density = TRUE
use_power = NO_POWER_USE
resistance_flags = FIRE_PROOF
diff --git a/code/modules/power/singularity/narsie.dm b/code/modules/power/singularity/narsie.dm
index 4fed74d0b1..8040c67dd1 100644
--- a/code/modules/power/singularity/narsie.dm
+++ b/code/modules/power/singularity/narsie.dm
@@ -4,7 +4,7 @@
icon = 'icons/obj/magic_terror.dmi'
pixel_x = -89
pixel_y = -85
- density = 0
+ density = FALSE
current_size = 9 //It moves/eats like a max-size singulo, aside from range. --NEO
contained = 0 //Are we going to move around?
dissipate = 0 //Do we lose energy over time?
diff --git a/code/modules/power/singularity/particle_accelerator/particle.dm b/code/modules/power/singularity/particle_accelerator/particle.dm
index c872fec9e3..bced82775b 100644
--- a/code/modules/power/singularity/particle_accelerator/particle.dm
+++ b/code/modules/power/singularity/particle_accelerator/particle.dm
@@ -3,8 +3,8 @@
desc = "Small things moving very fast."
icon = 'icons/obj/machines/particle_accelerator.dmi'
icon_state = "particle"
- anchored = 1
- density = 0
+ anchored = TRUE
+ density = FALSE
var/movement_range = 10
var/energy = 10
var/speed = 1
diff --git a/code/modules/power/singularity/particle_accelerator/particle_accelerator.dm b/code/modules/power/singularity/particle_accelerator/particle_accelerator.dm
index 3f01c77436..ea86474895 100644
--- a/code/modules/power/singularity/particle_accelerator/particle_accelerator.dm
+++ b/code/modules/power/singularity/particle_accelerator/particle_accelerator.dm
@@ -24,8 +24,8 @@
desc = "Part of a Particle Accelerator."
icon = 'icons/obj/machines/particle_accelerator.dmi'
icon_state = "none"
- anchored = 0
- density = 1
+ anchored = FALSE
+ density = TRUE
max_integrity = 500
armor = list(melee = 30, bullet = 20, laser = 20, energy = 0, bomb = 0, bio = 0, rad = 0, fire = 90, acid = 80)
@@ -99,7 +99,7 @@
if(PA_CONSTRUCTION_UNSECURED)
if(istype(W, /obj/item/weapon/wrench) && !isinspace())
playsound(loc, W.usesound, 75, 1)
- anchored = 1
+ anchored = TRUE
user.visible_message("[user.name] secures the [name] to the floor.", \
"You secure the external bolts.")
construction_state = PA_CONSTRUCTION_UNWIRED
@@ -107,7 +107,7 @@
if(PA_CONSTRUCTION_UNWIRED)
if(istype(W, /obj/item/weapon/wrench))
playsound(loc, W.usesound, 75, 1)
- anchored = 0
+ anchored = FALSE
user.visible_message("[user.name] detaches the [name] from the floor.", \
"You remove the external bolts.")
construction_state = PA_CONSTRUCTION_UNSECURED
diff --git a/code/modules/power/singularity/particle_accelerator/particle_control.dm b/code/modules/power/singularity/particle_accelerator/particle_control.dm
index 1c836145ad..370e2e6a06 100644
--- a/code/modules/power/singularity/particle_accelerator/particle_control.dm
+++ b/code/modules/power/singularity/particle_accelerator/particle_control.dm
@@ -3,8 +3,8 @@
desc = "This controls the density of the particles."
icon = 'icons/obj/machines/particle_accelerator.dmi'
icon_state = "control_box"
- anchored = 0
- density = 1
+ anchored = FALSE
+ density = TRUE
use_power = NO_POWER_USE
idle_power_usage = 500
active_power_usage = 10000
@@ -272,7 +272,7 @@
if(PA_CONSTRUCTION_UNSECURED)
if(istype(W, /obj/item/weapon/wrench) && !isinspace())
playsound(loc, W.usesound, 75, 1)
- anchored = 1
+ anchored = TRUE
user.visible_message("[user.name] secures the [name] to the floor.", \
"You secure the external bolts.")
construction_state = PA_CONSTRUCTION_UNWIRED
@@ -280,7 +280,7 @@
if(PA_CONSTRUCTION_UNWIRED)
if(istype(W, /obj/item/weapon/wrench))
playsound(loc, W.usesound, 75, 1)
- anchored = 0
+ anchored = FALSE
user.visible_message("[user.name] detaches the [name] from the floor.", \
"You remove the external bolts.")
construction_state = PA_CONSTRUCTION_UNSECURED
diff --git a/code/modules/power/singularity/singularity.dm b/code/modules/power/singularity/singularity.dm
index bcd7d66a45..057fa55ca1 100644
--- a/code/modules/power/singularity/singularity.dm
+++ b/code/modules/power/singularity/singularity.dm
@@ -5,8 +5,8 @@
desc = "A gravitational singularity."
icon = 'icons/obj/singularity.dmi'
icon_state = "singularity_s1"
- anchored = 1
- density = 1
+ anchored = TRUE
+ density = TRUE
layer = MASSIVE_OBJ_LAYER
luminosity = 6
appearance_flags = 0
diff --git a/code/modules/power/smes.dm b/code/modules/power/smes.dm
index 8f3edd82d9..2a8d3f8a60 100644
--- a/code/modules/power/smes.dm
+++ b/code/modules/power/smes.dm
@@ -18,8 +18,8 @@
name = "power storage unit"
desc = "A high-capacity superconducting magnetic energy storage (SMES) unit."
icon_state = "smes"
- density = 1
- anchored = 1
+ density = TRUE
+ anchored = TRUE
use_power = NO_POWER_USE
var/capacity = 5e6 // maximum charge
var/charge = 0 // actual charge
@@ -333,7 +333,7 @@
if(terminal && terminal.powernet)
terminal.powernet.load += amount
-/obj/machinery/power/smes/ui_interact(mob/user, ui_key = "main", datum/tgui/ui = null, force_open = 0, \
+/obj/machinery/power/smes/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)
ui = SStgui.try_update_ui(user, src, ui_key, ui, force_open)
if(!ui)
diff --git a/code/modules/power/solar.dm b/code/modules/power/solar.dm
index bb486c712e..0da3841bd7 100644
--- a/code/modules/power/solar.dm
+++ b/code/modules/power/solar.dm
@@ -6,8 +6,8 @@
desc = "A solar panel. Generates electricity when in contact with sunlight."
icon = 'icons/obj/power.dmi'
icon_state = "sp_base"
- anchored = 1
- density = 1
+ anchored = TRUE
+ density = TRUE
use_power = NO_POWER_USE
idle_power_usage = 0
active_power_usage = 0
@@ -48,7 +48,7 @@
if(!S)
S = new /obj/item/solar_assembly(src)
S.glass_type = /obj/item/stack/sheet/glass
- S.anchored = 1
+ S.anchored = TRUE
else
S.forceMove(src)
if(S.glass_type == /obj/item/stack/sheet/rglass) //if the panel is in reinforced glass
@@ -185,7 +185,7 @@
icon_state = "sp_base"
item_state = "electropack"
w_class = WEIGHT_CLASS_BULKY // Pretty big!
- anchored = 0
+ anchored = FALSE
var/tracker = 0
var/glass_type = null
@@ -261,8 +261,8 @@
desc = "A controller for solar panel arrays."
icon = 'icons/obj/computer.dmi'
icon_state = "computer"
- anchored = 1
- density = 1
+ anchored = TRUE
+ density = TRUE
use_power = IDLE_POWER_USE
idle_power_usage = 250
max_integrity = 200
@@ -347,7 +347,7 @@
setDir(angle2dir(currentdir))
add_overlay(mutable_appearance(icon, "solcon-o", FLY_LAYER))
-/obj/machinery/power/solar_control/ui_interact(mob/user, ui_key = "main", datum/tgui/ui = null, force_open = 0, \
+/obj/machinery/power/solar_control/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)
ui = SStgui.try_update_ui(user, src, ui_key, ui, force_open)
if(!ui)
@@ -421,7 +421,7 @@
A.circuit = M
A.state = 3
A.icon_state = "3"
- A.anchored = 1
+ A.anchored = TRUE
qdel(src)
else
to_chat(user, "You disconnect the monitor.")
@@ -432,7 +432,7 @@
A.circuit = M
A.state = 4
A.icon_state = "4"
- A.anchored = 1
+ A.anchored = TRUE
qdel(src)
else if(user.a_intent != INTENT_HARM && !(I.flags & NOBLUDGEON))
src.attack_hand(user)
diff --git a/code/modules/power/supermatter/supermatter.dm b/code/modules/power/supermatter/supermatter.dm
index 6dfd2cb276..ab91e9bfc2 100644
--- a/code/modules/power/supermatter/supermatter.dm
+++ b/code/modules/power/supermatter/supermatter.dm
@@ -400,7 +400,7 @@
if(!has_reached_emergency)
investigate_log("has reached the emergency point for the first time.", INVESTIGATE_SUPERMATTER)
message_admins("[src] has reached the emergency point [ADMIN_JMP(src)].")
- has_reached_emergency = 1
+ has_reached_emergency = TRUE
else if(damage >= damage_archived) // The damage is still going up
radio.talk_into(src, "[warning_alert] Integrity: [get_integrity()]%", engineering_channel, get_spans(), get_default_language())
lastwarning = REALTIMEOFDAY - (WARNING_DELAY * 5)
diff --git a/code/modules/power/switch.dm b/code/modules/power/switch.dm
index 9bac6c4715..1dca58eb6f 100644
--- a/code/modules/power/switch.dm
+++ b/code/modules/power/switch.dm
@@ -10,10 +10,10 @@
icon_state = "switch-dbl-up"
var/icon_state_on = "switch-dbl-down"
var/icon_state_off = "switch-dbl-up"
- density = 0
- anchored = 1
- var/on = 0 //up is off, down is on
- var/busy = 0 //set to 1 when you start pulling
+ density = FALSE
+ anchored = TRUE
+ var/on = FALSE //up is off, down is on
+ var/busy = FALSE //set to 1 when you start pulling
/obj/structure/powerswitch/simple
icon_state = "switch-up"
@@ -40,7 +40,7 @@
..()
- busy = 1
+ busy = TRUE
for(var/mob/O in viewers(user))
O.show_message(text("\red [user] started pulling the [src]."), 1)
@@ -48,7 +48,7 @@
set_state(!on)
for(var/mob/O in viewers(user))
O.show_message(text("\red [user] flipped the [src] into the [on ? "on": "off"] position."), 1)
- busy = 0
+ busy = FALSE
/obj/structure/powerswitch/proc/set_state(var/state)
on = state
diff --git a/code/modules/power/terminal.dm b/code/modules/power/terminal.dm
index 349510dbaf..b00bcb0c28 100644
--- a/code/modules/power/terminal.dm
+++ b/code/modules/power/terminal.dm
@@ -9,7 +9,7 @@
desc = "It's an underfloor wiring terminal for power equipment."
level = 1
var/obj/machinery/power/master = null
- anchored = 1
+ anchored = TRUE
layer = WIRE_TERMINAL_LAYER //a bit above wires
diff --git a/code/modules/power/tesla/coil.dm b/code/modules/power/tesla/coil.dm
index 3d24a9e503..ee135b13b5 100644
--- a/code/modules/power/tesla/coil.dm
+++ b/code/modules/power/tesla/coil.dm
@@ -3,8 +3,8 @@
desc = "For the union!"
icon = 'icons/obj/tesla_engine/tesla_coil.dmi'
icon_state = "coil0"
- anchored = 0
- density = 1
+ anchored = FALSE
+ density = TRUE
// Executing a traitor caught releasing tesla was never this fun!
can_buckle = TRUE
@@ -74,7 +74,7 @@
/obj/machinery/power/tesla_coil/tesla_act(var/power)
if(anchored && !panel_open)
- being_shocked = 1
+ being_shocked = TRUE
//don't lose arc power when it's not connected to anything
//please place tesla coils all around the station to maximize effectiveness
var/power_produced = powernet ? power / power_loss : power
@@ -102,8 +102,8 @@
desc = "Keep an area from being fried from Edison's Bane."
icon = 'icons/obj/tesla_engine/tesla_coil.dmi'
icon_state = "grounding_rod0"
- anchored = 0
- density = 1
+ anchored = FALSE
+ density = TRUE
can_buckle = TRUE
buckle_lying = FALSE
diff --git a/code/modules/power/tesla/energy_ball.dm b/code/modules/power/tesla/energy_ball.dm
index df08899140..21aea66e1c 100644
--- a/code/modules/power/tesla/energy_ball.dm
+++ b/code/modules/power/tesla/energy_ball.dm
@@ -30,7 +30,7 @@ GLOBAL_LIST_INIT(blacklisted_tesla_types, typecacheof(list(/obj/machinery/atmosp
move_self = 1
grav_pull = 0
contained = 0
- density = 1
+ density = TRUE
energy = 0
dissipate = 1
dissipate_delay = 5
diff --git a/code/modules/power/tracker.dm b/code/modules/power/tracker.dm
index 6bee413da4..a7e304e364 100644
--- a/code/modules/power/tracker.dm
+++ b/code/modules/power/tracker.dm
@@ -8,8 +8,8 @@
desc = "A solar directional tracker."
icon = 'icons/obj/power.dmi'
icon_state = "tracker"
- anchored = 1
- density = 1
+ anchored = TRUE
+ density = TRUE
use_power = NO_POWER_USE
max_integrity = 250
integrity_failure = 50
@@ -46,7 +46,7 @@
S = new /obj/item/solar_assembly(src)
S.glass_type = /obj/item/stack/sheet/glass
S.tracker = 1
- S.anchored = 1
+ S.anchored = TRUE
S.loc = src
update_icon()
diff --git a/code/modules/power/turbine.dm b/code/modules/power/turbine.dm
index 120dd0b46c..4650f9652f 100644
--- a/code/modules/power/turbine.dm
+++ b/code/modules/power/turbine.dm
@@ -27,8 +27,8 @@
desc = "The compressor stage of a gas turbine generator."
icon = 'icons/obj/atmospherics/pipes/simple.dmi'
icon_state = "compressor"
- anchored = 1
- density = 1
+ anchored = TRUE
+ density = TRUE
resistance_flags = FIRE_PROOF
CanAtmosPass = ATMOS_PASS_DENSITY
var/obj/machinery/power/turbine/turbine
@@ -47,8 +47,8 @@
desc = "A gas turbine used for backup power generation."
icon = 'icons/obj/atmospherics/pipes/simple.dmi'
icon_state = "turbine"
- anchored = 1
- density = 1
+ anchored = TRUE
+ density = TRUE
resistance_flags = FIRE_PROOF
CanAtmosPass = ATMOS_PASS_DENSITY
var/opened = 0
diff --git a/code/modules/projectiles/guns/ballistic/automatic.dm b/code/modules/projectiles/guns/ballistic/automatic.dm
index 4a6f7c88d8..e5edf19e0c 100644
--- a/code/modules/projectiles/guns/ballistic/automatic.dm
+++ b/code/modules/projectiles/guns/ballistic/automatic.dm
@@ -285,7 +285,7 @@
mag_type = /obj/item/ammo_box/magazine/mm195x129
weapon_weight = WEAPON_HEAVY
fire_sound = 'sound/weapons/gunshot_smg.ogg'
- var/cover_open = 0
+ var/cover_open = FALSE
can_suppress = 0
burst_size = 3
fire_delay = 1
diff --git a/code/modules/projectiles/guns/ballistic/shotgun.dm b/code/modules/projectiles/guns/ballistic/shotgun.dm
index 6fc3fd3687..76c60dd130 100644
--- a/code/modules/projectiles/guns/ballistic/shotgun.dm
+++ b/code/modules/projectiles/guns/ballistic/shotgun.dm
@@ -105,7 +105,7 @@
item_state = "moistnugget"
slot_flags = 0 //no SLOT_BACK sprite, alas
mag_type = /obj/item/ammo_box/magazine/internal/boltaction
- var/bolt_open = 0
+ var/bolt_open = FALSE
/obj/item/weapon/gun/ballistic/shotgun/boltaction/pump(mob/M)
playsound(M, 'sound/weapons/shotgunpump.ogg', 60, 1)
@@ -149,7 +149,7 @@
/obj/item/weapon/gun/ballistic/shotgun/boltaction/enchanted/Initialize()
. = ..()
- bolt_open = 1
+ bolt_open = TRUE
pump()
gun_type = type
@@ -210,7 +210,7 @@
origin_tech = "combat=4;materials=2"
mag_type = /obj/item/ammo_box/magazine/internal/shot/tube
w_class = WEIGHT_CLASS_HUGE
- var/toggled = 0
+ var/toggled = FALSE
var/obj/item/ammo_box/magazine/internal/shot/alternate_magazine
/obj/item/weapon/gun/ballistic/shotgun/automatic/dual_tube/Initialize()
diff --git a/code/modules/projectiles/guns/beam_rifle.dm b/code/modules/projectiles/guns/beam_rifle.dm
index b7a6eda883..40493244d0 100644
--- a/code/modules/projectiles/guns/beam_rifle.dm
+++ b/code/modules/projectiles/guns/beam_rifle.dm
@@ -403,7 +403,7 @@
cached = get_turf(target)
. = ..()
-/obj/item/projectile/beam/beam_rifle/on_hit(atom/target, blocked = 0)
+/obj/item/projectile/beam/beam_rifle/on_hit(atom/target, blocked = FALSE)
if(!QDELETED(target))
cached = get_turf(target)
handle_hit(target)
@@ -507,7 +507,7 @@
/obj/effect/temp_visual/projectile_beam
icon = 'icons/obj/projectiles.dmi'
layer = ABOVE_MOB_LAYER
- anchored = 1
+ anchored = TRUE
duration = 5
randomdir = FALSE
light_power = 1
diff --git a/code/modules/projectiles/pins.dm b/code/modules/projectiles/pins.dm
index 2347cc3c7c..2e46b50f31 100644
--- a/code/modules/projectiles/pins.dm
+++ b/code/modules/projectiles/pins.dm
@@ -8,7 +8,7 @@
flags = CONDUCT
w_class = WEIGHT_CLASS_TINY
attack_verb = list("poked")
- var/emagged = 0
+ var/emagged = FALSE
var/fail_message = "INVALID USER."
var/selfdestruct = 0 // Explode when user check is failed.
var/force_replace = 0 // Can forcefully replace other pins.
@@ -40,7 +40,7 @@
/obj/item/device/firing_pin/emag_act(mob/user)
if(!emagged)
- emagged = 1
+ emagged = TRUE
to_chat(user, "You override the authentication mechanism.")
/obj/item/device/firing_pin/proc/gun_insert(mob/living/user, obj/item/weapon/gun/G)
diff --git a/code/modules/projectiles/projectile.dm b/code/modules/projectiles/projectile.dm
index c28c2458f7..ab6ffe36f4 100644
--- a/code/modules/projectiles/projectile.dm
+++ b/code/modules/projectiles/projectile.dm
@@ -2,8 +2,8 @@
name = "projectile"
icon = 'icons/obj/projectiles.dmi'
icon_state = "bullet"
- density = 0
- anchored = 1
+ density = FALSE
+ anchored = TRUE
flags = ABSTRACT
pass_flags = PASSTABLE
mouse_opacity = 0
@@ -83,7 +83,7 @@
/obj/item/projectile/proc/prehit(atom/target)
return TRUE
-/obj/item/projectile/proc/on_hit(atom/target, blocked = 0)
+/obj/item/projectile/proc/on_hit(atom/target, blocked = FALSE)
var/turf/target_loca = get_turf(target)
if(!isliving(target))
if(impact_effect_type)
diff --git a/code/modules/projectiles/projectile/beams.dm b/code/modules/projectiles/projectile/beams.dm
index 574f713e3f..39bcbb3bac 100644
--- a/code/modules/projectiles/projectile/beams.dm
+++ b/code/modules/projectiles/projectile/beams.dm
@@ -22,7 +22,7 @@
icon_state = "heavylaser"
damage = 40
-/obj/item/projectile/beam/laser/on_hit(atom/target, blocked = 0)
+/obj/item/projectile/beam/laser/on_hit(atom/target, blocked = FALSE)
. = ..()
if(iscarbon(target))
var/mob/living/carbon/M = target
@@ -72,7 +72,7 @@
impact_effect_type = /obj/effect/temp_visual/impact_effect/blue_laser
light_color = LIGHT_COLOR_BLUE
-/obj/item/projectile/beam/pulse/on_hit(atom/target, blocked = 0)
+/obj/item/projectile/beam/pulse/on_hit(atom/target, blocked = FALSE)
. = ..()
if(isturf(target) || istype(target,/obj/structure/))
target.ex_act(2)
@@ -85,7 +85,7 @@
icon_state = "pulse1_bl"
var/life = 20
-/obj/item/projectile/beam/pulse/heavy/on_hit(atom/target, blocked = 0)
+/obj/item/projectile/beam/pulse/heavy/on_hit(atom/target, blocked = FALSE)
life -= 10
if(life > 0)
. = -1
@@ -114,7 +114,7 @@
impact_effect_type = /obj/effect/temp_visual/impact_effect/blue_laser
light_color = LIGHT_COLOR_BLUE
-/obj/item/projectile/beam/lasertag/on_hit(atom/target, blocked = 0)
+/obj/item/projectile/beam/lasertag/on_hit(atom/target, blocked = FALSE)
. = ..()
if(ishuman(target))
var/mob/living/carbon/human/M = target
diff --git a/code/modules/projectiles/projectile/bullets.dm b/code/modules/projectiles/projectile/bullets.dm
index 9b116c1731..54e0ed7e12 100644
--- a/code/modules/projectiles/projectile/bullets.dm
+++ b/code/modules/projectiles/projectile/bullets.dm
@@ -59,7 +59,7 @@
range = rand(1, 10)
..()
-/obj/item/projectile/bullet/pellet/overload/on_hit(atom/target, blocked = 0)
+/obj/item/projectile/bullet/pellet/overload/on_hit(atom/target, blocked = FALSE)
..()
explosion(target, 0, 0, 2)
@@ -87,7 +87,7 @@
damage = 27
armour_penetration = 40
-/obj/item/projectile/bullet/midbullet3/fire/on_hit(atom/target, blocked = 0)
+/obj/item/projectile/bullet/midbullet3/fire/on_hit(atom/target, blocked = FALSE)
if(..(target, blocked))
var/mob/living/M = target
M.adjust_fire_stacks(1)
@@ -110,7 +110,7 @@
icon_state = "spark"
color = "#FFFF00"
-/obj/item/projectile/bullet/incendiary/on_hit(atom/target, blocked = 0)
+/obj/item/projectile/bullet/incendiary/on_hit(atom/target, blocked = FALSE)
. = ..()
if(iscarbon(target))
var/mob/living/carbon/M = target
@@ -160,7 +160,7 @@
..()
SpinAnimation()
-/obj/item/projectile/bullet/meteorshot/on_hit(atom/target, blocked = 0)
+/obj/item/projectile/bullet/meteorshot/on_hit(atom/target, blocked = FALSE)
. = ..()
if(ismovableatom(target))
var/atom/movable/M = target
@@ -175,7 +175,7 @@
/obj/item/projectile/bullet/mime
damage = 20
-/obj/item/projectile/bullet/mime/on_hit(atom/target, blocked = 0)
+/obj/item/projectile/bullet/mime/on_hit(atom/target, blocked = FALSE)
. = ..()
if(iscarbon(target))
var/mob/living/carbon/M = target
@@ -193,7 +193,7 @@
create_reagents(50)
reagents.set_reacting(FALSE)
-/obj/item/projectile/bullet/dart/on_hit(atom/target, blocked = 0)
+/obj/item/projectile/bullet/dart/on_hit(atom/target, blocked = FALSE)
if(iscarbon(target))
var/mob/living/carbon/M = target
if(blocked != 100) // not completely blocked
@@ -230,7 +230,7 @@
damage_type = TOX
knockdown = 100
-/obj/item/projectile/bullet/neurotoxin/on_hit(atom/target, blocked = 0)
+/obj/item/projectile/bullet/neurotoxin/on_hit(atom/target, blocked = FALSE)
if(isalien(target))
knockdown = 0
nodamage = 1
@@ -243,7 +243,7 @@
damage = 5
hitsound_wall = "shatter"
-/obj/item/projectile/bullet/dnainjector/on_hit(atom/target, blocked = 0)
+/obj/item/projectile/bullet/dnainjector/on_hit(atom/target, blocked = FALSE)
if(iscarbon(target))
var/mob/living/carbon/M = target
if(blocked != 100)
@@ -271,7 +271,7 @@
armour_penetration = 50
var/breakthings = TRUE
-/obj/item/projectile/bullet/sniper/on_hit(atom/target, blocked = 0)
+/obj/item/projectile/bullet/sniper/on_hit(atom/target, blocked = FALSE)
if((blocked != 100) && (!ismob(target) && breakthings))
target.ex_act(rand(1,2))
return ..()
@@ -288,7 +288,7 @@
dismemberment = 0
breakthings = FALSE
-/obj/item/projectile/bullet/sniper/gang/sleeper/on_hit(atom/target, blocked = 0)
+/obj/item/projectile/bullet/sniper/gang/sleeper/on_hit(atom/target, blocked = FALSE)
if((blocked != 100) && isliving(target))
var/mob/living/L = target
L.blur_eyes(8)
@@ -305,7 +305,7 @@
knockdown = 0
breakthings = FALSE
-/obj/item/projectile/bullet/sniper/soporific/on_hit(atom/target, blocked = 0)
+/obj/item/projectile/bullet/sniper/soporific/on_hit(atom/target, blocked = FALSE)
if((blocked != 100) && isliving(target))
var/mob/living/L = target
L.Sleeping(400)
@@ -319,7 +319,7 @@
knockdown = 0
breakthings = FALSE
-/obj/item/projectile/bullet/sniper/haemorrhage/on_hit(atom/target, blocked = 0)
+/obj/item/projectile/bullet/sniper/haemorrhage/on_hit(atom/target, blocked = FALSE)
if((blocked != 100) && iscarbon(target))
var/mob/living/carbon/C = target
C.bleed(100)
@@ -348,7 +348,7 @@
damage = 20
armour_penetration = 0
-/obj/item/projectile/bullet/saw/bleeding/on_hit(atom/target, blocked = 0)
+/obj/item/projectile/bullet/saw/bleeding/on_hit(atom/target, blocked = FALSE)
. = ..()
if((blocked != 100) && iscarbon(target))
var/mob/living/carbon/C = target
@@ -373,7 +373,7 @@
new /obj/effect/hotspot(location)
location.hotspot_expose(700, 50, 1)
-/obj/item/projectile/bullet/saw/incen/on_hit(atom/target, blocked = 0)
+/obj/item/projectile/bullet/saw/incen/on_hit(atom/target, blocked = FALSE)
. = ..()
if(iscarbon(target))
var/mob/living/carbon/M = target
diff --git a/code/modules/projectiles/projectile/energy.dm b/code/modules/projectiles/projectile/energy.dm
index 57a73633cd..c96d50f0ce 100644
--- a/code/modules/projectiles/projectile/energy.dm
+++ b/code/modules/projectiles/projectile/energy.dm
@@ -20,7 +20,7 @@
hitsound = 'sound/weapons/taserhit.ogg'
range = 7
-/obj/item/projectile/energy/electrode/on_hit(atom/target, blocked = 0)
+/obj/item/projectile/energy/electrode/on_hit(atom/target, blocked = FALSE)
. = ..()
if(!ismob(target) || blocked >= 100) //Fully blocked by mob or collided with dense object - burst into sparks!
do_sparks(1, TRUE, src)
@@ -47,7 +47,7 @@
. = ..()
SpinAnimation()
-/obj/item/projectile/energy/net/on_hit(atom/target, blocked = 0)
+/obj/item/projectile/energy/net/on_hit(atom/target, blocked = FALSE)
if(isliving(target))
var/turf/Tloc = get_turf(target)
if(!locate(/obj/effect/nettingportal) in Tloc)
@@ -64,7 +64,7 @@
icon = 'icons/effects/effects.dmi'
icon_state = "dragnetfield"
light_range = 3
- anchored = 1
+ anchored = TRUE
/obj/effect/nettingportal/Initialize()
. = ..()
@@ -95,7 +95,7 @@
hitsound = 'sound/weapons/taserhit.ogg'
range = 4
-/obj/item/projectile/energy/trap/on_hit(atom/target, blocked = 0)
+/obj/item/projectile/energy/trap/on_hit(atom/target, blocked = FALSE)
if(!ismob(target) || blocked >= 100) //Fully blocked by mob or collided with dense object - drop a trap
new/obj/item/weapon/restraints/legcuffs/beartrap/energy(get_turf(loc))
else if(iscarbon(target))
@@ -115,7 +115,7 @@
hitsound = 'sound/weapons/taserhit.ogg'
range = 10
-/obj/item/projectile/energy/trap/cyborg/on_hit(atom/target, blocked = 0)
+/obj/item/projectile/energy/trap/cyborg/on_hit(atom/target, blocked = FALSE)
if(!ismob(target) || blocked >= 100)
do_sparks(1, TRUE, src)
qdel(src)
diff --git a/code/modules/projectiles/projectile/magic.dm b/code/modules/projectiles/projectile/magic.dm
index 769dbaad1f..733cbc2235 100644
--- a/code/modules/projectiles/projectile/magic.dm
+++ b/code/modules/projectiles/projectile/magic.dm
@@ -91,7 +91,7 @@
/obj/item/projectile/magic/door/proc/OpenDoor(var/obj/machinery/door/D)
if(istype(D,/obj/machinery/door/airlock))
var/obj/machinery/door/airlock/A = D
- A.locked = 0
+ A.locked = FALSE
D.open()
/obj/item/projectile/magic/change
@@ -289,7 +289,7 @@
damage_type = BURN
nodamage = 1
-/obj/item/projectile/magic/animate/on_hit(atom/target, blocked = 0)
+/obj/item/projectile/magic/animate/on_hit(atom/target, blocked = FALSE)
target.animate_atom_living(firer)
..()
diff --git a/code/modules/projectiles/projectile/reusable.dm b/code/modules/projectiles/projectile/reusable.dm
index 9bcad0db7b..5d03806d39 100644
--- a/code/modules/projectiles/projectile/reusable.dm
+++ b/code/modules/projectiles/projectile/reusable.dm
@@ -5,7 +5,7 @@
var/dropped = 0
impact_effect_type = null
-/obj/item/projectile/bullet/reusable/on_hit(atom/target, blocked = 0)
+/obj/item/projectile/bullet/reusable/on_hit(atom/target, blocked = FALSE)
. = ..()
handle_drop()
diff --git a/code/modules/projectiles/projectile/special.dm b/code/modules/projectiles/projectile/special.dm
index 8d69d8a0b0..04a6fb466f 100644
--- a/code/modules/projectiles/projectile/special.dm
+++ b/code/modules/projectiles/projectile/special.dm
@@ -8,7 +8,7 @@
impact_effect_type = /obj/effect/temp_visual/impact_effect/ion
-/obj/item/projectile/ion/on_hit(atom/target, blocked = 0)
+/obj/item/projectile/ion/on_hit(atom/target, blocked = FALSE)
..()
empulse(target, 1, 1)
return 1
@@ -16,7 +16,7 @@
/obj/item/projectile/ion/weak
-/obj/item/projectile/ion/weak/on_hit(atom/target, blocked = 0)
+/obj/item/projectile/ion/weak/on_hit(atom/target, blocked = FALSE)
..()
empulse(target, 0, 0)
return 1
@@ -27,7 +27,7 @@
icon_state= "bolter"
damage = 50
-/obj/item/projectile/bullet/gyro/on_hit(atom/target, blocked = 0)
+/obj/item/projectile/bullet/gyro/on_hit(atom/target, blocked = FALSE)
..()
explosion(target, -1, 0, 2)
return 1
@@ -38,7 +38,7 @@
icon_state= "bolter"
damage = 60
-/obj/item/projectile/bullet/a40mm/on_hit(atom/target, blocked = 0)
+/obj/item/projectile/bullet/a40mm/on_hit(atom/target, blocked = FALSE)
..()
explosion(target, -1, 0, 2, 1, 0, flame_range = 3)
return 1
@@ -52,7 +52,7 @@
armour_penetration = 100
dismemberment = 100
-/obj/item/projectile/bullet/a84mm/on_hit(atom/target, blocked = 0)
+/obj/item/projectile/bullet/a84mm/on_hit(atom/target, blocked = FALSE)
..()
explosion(target, -1, 1, 3, 1, 0, flame_range = 4)
@@ -88,7 +88,7 @@
var/temperature = 100
-/obj/item/projectile/temp/on_hit(atom/target, blocked = 0)//These two could likely check temp protection on the mob
+/obj/item/projectile/temp/on_hit(atom/target, blocked = FALSE)//These two could likely check temp protection on the mob
..()
if(isliving(target))
var/mob/M = target
@@ -129,7 +129,7 @@
nodamage = 1
flag = "energy"
-/obj/item/projectile/energy/floramut/on_hit(atom/target, blocked = 0)
+/obj/item/projectile/energy/floramut/on_hit(atom/target, blocked = FALSE)
. = ..()
if(iscarbon(target))
var/mob/living/carbon/C = target
@@ -150,7 +150,7 @@
/obj/item/projectile/beam/mindflayer
name = "flayer ray"
-/obj/item/projectile/beam/mindflayer/on_hit(atom/target, blocked = 0)
+/obj/item/projectile/beam/mindflayer/on_hit(atom/target, blocked = FALSE)
. = ..()
if(ishuman(target))
var/mob/living/carbon/human/M = target
@@ -190,7 +190,7 @@
damage = 25
knockdown = 50
-/obj/item/projectile/bullet/frag12/on_hit(atom/target, blocked = 0)
+/obj/item/projectile/bullet/frag12/on_hit(atom/target, blocked = FALSE)
..()
explosion(target, -1, 0, 1)
return 1
diff --git a/code/modules/reagents/chemistry/machinery/chem_dispenser.dm b/code/modules/reagents/chemistry/machinery/chem_dispenser.dm
index 244b7e2c59..27cad406fa 100644
--- a/code/modules/reagents/chemistry/machinery/chem_dispenser.dm
+++ b/code/modules/reagents/chemistry/machinery/chem_dispenser.dm
@@ -1,8 +1,8 @@
/obj/machinery/chem_dispenser
name = "chem dispenser"
desc = "Creates and dispenses chemicals."
- density = 1
- anchored = 1
+ density = TRUE
+ anchored = TRUE
icon = 'icons/obj/chemical.dmi'
icon_state = "dispenser"
use_power = IDLE_POWER_USE
@@ -79,7 +79,7 @@
return
to_chat(user, "You short out \the [src]'s safeties.")
dispensable_reagents |= emagged_reagents//add the emagged reagents to the dispensable ones
- emagged = 1
+ emagged = TRUE
/obj/machinery/chem_dispenser/ex_act(severity, target)
if(severity < 3)
@@ -96,7 +96,7 @@
beaker = null
cut_overlays()
-/obj/machinery/chem_dispenser/ui_interact(mob/user, ui_key = "main", datum/tgui/ui = null, force_open = 0, \
+/obj/machinery/chem_dispenser/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)
ui = SStgui.try_update_ui(user, src, ui_key, ui, force_open)
if(!ui)
@@ -315,7 +315,7 @@
/obj/machinery/chem_dispenser/drinks
name = "soda dispenser"
desc = "Contains a large reservoir of soft drinks."
- anchored = 1
+ anchored = TRUE
icon = 'icons/obj/chemical.dmi'
icon_state = "soda_dispenser"
amount = 10
@@ -353,7 +353,7 @@
/obj/machinery/chem_dispenser/drinks/beer
name = "booze dispenser"
desc = "Contains a large reservoir of the good stuff."
- anchored = 1
+ anchored = TRUE
icon = 'icons/obj/chemical.dmi'
icon_state = "booze_dispenser"
dispensable_reagents = list(
diff --git a/code/modules/reagents/chemistry/machinery/chem_heater.dm b/code/modules/reagents/chemistry/machinery/chem_heater.dm
index d4270f6f6b..3d1c2b4a9c 100644
--- a/code/modules/reagents/chemistry/machinery/chem_heater.dm
+++ b/code/modules/reagents/chemistry/machinery/chem_heater.dm
@@ -1,7 +1,7 @@
/obj/machinery/chem_heater
name = "chemical heater"
- density = 1
- anchored = 1
+ density = TRUE
+ anchored = TRUE
icon = 'icons/obj/chemical.dmi'
icon_state = "mixer0b"
use_power = IDLE_POWER_USE
@@ -72,7 +72,7 @@
/obj/machinery/chem_heater/on_deconstruction()
eject_beaker()
-/obj/machinery/chem_heater/ui_interact(mob/user, ui_key = "main", datum/tgui/ui = null, force_open = 0, \
+/obj/machinery/chem_heater/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)
ui = SStgui.try_update_ui(user, src, ui_key, ui, force_open)
if(!ui)
diff --git a/code/modules/reagents/chemistry/machinery/chem_master.dm b/code/modules/reagents/chemistry/machinery/chem_master.dm
index c8c074b938..57d374e3d9 100644
--- a/code/modules/reagents/chemistry/machinery/chem_master.dm
+++ b/code/modules/reagents/chemistry/machinery/chem_master.dm
@@ -1,8 +1,8 @@
/obj/machinery/chem_master
name = "ChemMaster 3000"
desc = "Used to seperate chemicals and distribute them in a variety of forms."
- density = 1
- anchored = 1
+ density = TRUE
+ anchored = TRUE
icon = 'icons/obj/chemical.dmi'
icon_state = "mixer0"
use_power = IDLE_POWER_USE
@@ -136,7 +136,7 @@
return ..()
-/obj/machinery/chem_master/ui_interact(mob/user, ui_key = "main", datum/tgui/ui = null, force_open = 0, \
+/obj/machinery/chem_master/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)
ui = SStgui.try_update_ui(user, src, ui_key, ui, force_open)
if(!ui)
diff --git a/code/modules/reagents/chemistry/machinery/reagentgrinder.dm b/code/modules/reagents/chemistry/machinery/reagentgrinder.dm
index 863a0994a2..5bf7db5c6d 100644
--- a/code/modules/reagents/chemistry/machinery/reagentgrinder.dm
+++ b/code/modules/reagents/chemistry/machinery/reagentgrinder.dm
@@ -4,7 +4,7 @@
icon = 'icons/obj/kitchen.dmi'
icon_state = "juicer1"
layer = BELOW_OBJ_LAYER
- anchored = 1
+ anchored = TRUE
use_power = IDLE_POWER_USE
idle_power_usage = 5
active_power_usage = 100
diff --git a/code/modules/reagents/reagent_containers/syringes.dm b/code/modules/reagents/reagent_containers/syringes.dm
index 25b236b0a5..4a0faea722 100644
--- a/code/modules/reagents/reagent_containers/syringes.dm
+++ b/code/modules/reagents/reagent_containers/syringes.dm
@@ -11,7 +11,7 @@
possible_transfer_amounts = list()
volume = 15
var/mode = SYRINGE_DRAW
- var/busy = 0 // needed for delayed drawing of blood
+ var/busy = FALSE // needed for delayed drawing of blood
var/proj_piercing = 0 //does it pierce through thick clothes when shot with syringe gun
materials = list(MAT_METAL=10, MAT_GLASS=20)
container_type = TRANSPARENT
@@ -79,13 +79,13 @@
if(target != user)
target.visible_message("[user] is trying to take a blood sample from [target]!", \
"[user] is trying to take a blood sample from [target]!")
- busy = 1
+ busy = TRUE
if(!do_mob(user, target, extra_checks=CALLBACK(L, /mob/living/proc/can_inject,user,1)))
- busy = 0
+ busy = FALSE
return
if(reagents.total_volume >= reagents.maximum_volume)
return
- busy = 0
+ busy = FALSE
if(L.transfer_blood_to(src, drawn_amount))
user.visible_message("[user] takes a blood sample from [L].")
else
diff --git a/code/modules/reagents/reagent_dispenser.dm b/code/modules/reagents/reagent_dispenser.dm
index 59ac102b2e..7a8d442d7b 100644
--- a/code/modules/reagents/reagent_dispenser.dm
+++ b/code/modules/reagents/reagent_dispenser.dm
@@ -3,8 +3,8 @@
desc = "..."
icon = 'icons/obj/objects.dmi'
icon_state = "water"
- density = 1
- anchored = 0
+ density = TRUE
+ anchored = FALSE
container_type = DRAWABLE
pressure_resistance = 2*ONE_ATMOSPHERE
max_integrity = 300
@@ -125,8 +125,8 @@
name = "pepper spray refiller"
desc = "Contains condensed capsaicin for use in law \"enforcement.\""
icon_state = "pepper"
- anchored = 1
- density = 0
+ anchored = TRUE
+ density = FALSE
reagent_id = "condensedcapsaicin"
/obj/structure/reagent_dispensers/peppertank/Initialize()
@@ -140,7 +140,7 @@
desc = "A machine that dispenses liquid to drink."
icon = 'icons/obj/vending.dmi'
icon_state = "water_cooler"
- anchored = 1
+ anchored = TRUE
tank_volume = 500
var/paper_cups = 25 //Paper cups left from the cooler
@@ -174,5 +174,5 @@
name = "virus food dispenser"
desc = "A dispenser of low-potency virus mutagenic."
icon_state = "virus_food"
- anchored = 1
+ anchored = TRUE
reagent_id = "virusfood"
\ No newline at end of file
diff --git a/code/modules/recycling/conveyor2.dm b/code/modules/recycling/conveyor2.dm
index 9506c89dbc..ddc1c56657 100644
--- a/code/modules/recycling/conveyor2.dm
+++ b/code/modules/recycling/conveyor2.dm
@@ -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
diff --git a/code/modules/recycling/disposal-construction.dm b/code/modules/recycling/disposal-construction.dm
index 555c36245b..975b9e1408 100644
--- a/code/modules/recycling/disposal-construction.dm
+++ b/code/modules/recycling/disposal-construction.dm
@@ -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, "You detach the [nicetype] from the underfloor.")
else
if(!is_pipe()) // Disposal or outlet
@@ -218,10 +218,10 @@
if(pdir & dpdir)
to_chat(user, "There is already a [nicetype] at that location!")
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, "You attach the [nicetype] to the underfloor.")
playsound(loc, I.usesound, 100, 1)
update_icon()
diff --git a/code/modules/recycling/disposal-structures.dm b/code/modules/recycling/disposal-structures.dm
index 21f4b0f939..af31bd9760 100644
--- a/code/modules/recycling/disposal-structures.dm
+++ b/code/modules/recycling/disposal-structures.dm
@@ -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 ..()
diff --git a/code/modules/recycling/disposal-unit.dm b/code/modules/recycling/disposal-unit.dm
index ab953cd4c5..f30dfa79e9 100644
--- a/code/modules/recycling/disposal-unit.dm
+++ b/code/modules/recycling/disposal-unit.dm
@@ -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
diff --git a/code/modules/recycling/sortingmachinery.dm b/code/modules/recycling/sortingmachinery.dm
index 75307d6cc7..9b366ad9f1 100644
--- a/code/modules/recycling/sortingmachinery.dm
+++ b/code/modules/recycling/sortingmachinery.dm
@@ -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
diff --git a/code/modules/research/experimentor.dm b/code/modules/research/experimentor.dm
index f0ad567729..9ad6d10d85 100644
--- a/code/modules/research/experimentor.dm
+++ b/code/modules/research/experimentor.dm
@@ -22,8 +22,8 @@
desc = "A \"replacement\" for the deconstructive analyzer with a slight tendency to catastrophically fail."
icon = 'icons/obj/machines/heavy_lathe.dmi'
icon_state = "h_lathe"
- density = 1
- anchored = 1
+ density = TRUE
+ anchored = TRUE
use_power = IDLE_POWER_USE
var/recentlyExperimented = 0
var/mob/trackedIan
diff --git a/code/modules/research/message_server.dm b/code/modules/research/message_server.dm
index cc4a77347b..650eebba1a 100644
--- a/code/modules/research/message_server.dm
+++ b/code/modules/research/message_server.dm
@@ -67,8 +67,8 @@ GLOBAL_LIST_INIT(message_servers, list())
icon = 'icons/obj/machines/research.dmi'
icon_state = "server"
name = "Messaging Server"
- density = 1
- anchored = 1
+ density = TRUE
+ anchored = TRUE
use_power = IDLE_POWER_USE
idle_power_usage = 10
active_power_usage = 100
@@ -133,8 +133,8 @@ GLOBAL_LIST_INIT(message_servers, list())
icon = 'icons/obj/stationobjs.dmi'
icon_state = "blackbox"
name = "Blackbox Recorder"
- density = 1
- anchored = 1
+ density = TRUE
+ anchored = TRUE
use_power = IDLE_POWER_USE
idle_power_usage = 10
active_power_usage = 100
diff --git a/code/modules/research/rdconsole.dm b/code/modules/research/rdconsole.dm
index 8f79e13556..4826ecaeb1 100644
--- a/code/modules/research/rdconsole.dm
+++ b/code/modules/research/rdconsole.dm
@@ -152,7 +152,7 @@ won't update every console in existence) but it's more of a hassle to do. Also,
/obj/machinery/computer/rdconsole/emag_act(mob/user)
if(!emagged)
playsound(src.loc, 'sound/effects/sparks4.ogg', 75, 1)
- emagged = 1
+ emagged = TRUE
to_chat(user, "You disable the security protocols")
/obj/machinery/computer/rdconsole/Topic(href, href_list)
@@ -295,13 +295,13 @@ won't update every console in existence) but it's more of a hassle to do. Also,
if(!cancontinue)
var/choice = input("This item does not raise tech levels. Proceed destroying loaded item anyway?") in list("Proceed", "Cancel")
if(choice == "Cancel" || !linked_destroy || !linked_destroy.loaded_item) return
- linked_destroy.busy = 1
+ linked_destroy.busy = TRUE
screen = 0.1
updateUsrDialog()
flick("d_analyzer_process", linked_destroy)
spawn(24)
if(linked_destroy)
- linked_destroy.busy = 0
+ linked_destroy.busy = FALSE
if(!linked_destroy.loaded_item)
screen = 1.0
return
@@ -412,7 +412,7 @@ won't update every console in existence) but it's more of a hassle to do. Also,
var/g2g = 1
var/enough_materials = 1
- linked_lathe.busy = 1
+ linked_lathe.busy = TRUE
flick("protolathe_n",linked_lathe)
use_power(power)
@@ -455,7 +455,7 @@ won't update every console in existence) but it's more of a hassle to do. Also,
SSblackbox.add_details("item_printed","[new_item.type]|[amount]")
already_logged = 1
screen = old_screen
- linked_lathe.busy = 0
+ linked_lathe.busy = FALSE
else
say("Protolathe connection failed. Production halted.")
screen = 1.0
@@ -488,7 +488,7 @@ won't update every console in existence) but it's more of a hassle to do. Also,
var/g2g = 1
var/enough_materials = 1
- linked_imprinter.busy = 1
+ linked_imprinter.busy = TRUE
flick("circuit_imprinter_ani", linked_imprinter)
use_power(power)
@@ -521,7 +521,7 @@ won't update every console in existence) but it's more of a hassle to do. Also,
new_item.materials = efficient_mats.Copy()
SSblackbox.add_details("circuit_printed","[new_item.type]")
screen = old_screen
- linked_imprinter.busy = 0
+ linked_imprinter.busy = FALSE
else
say("Circuit Imprinter connection failed. Production halted.")
screen = 1.0
diff --git a/code/modules/research/rdmachines.dm b/code/modules/research/rdmachines.dm
index f93637cfa0..5dc96be0a0 100644
--- a/code/modules/research/rdmachines.dm
+++ b/code/modules/research/rdmachines.dm
@@ -6,13 +6,13 @@
/obj/machinery/r_n_d
name = "R&D Device"
icon = 'icons/obj/machines/research.dmi'
- density = 1
- anchored = 1
+ density = TRUE
+ anchored = TRUE
use_power = IDLE_POWER_USE
- var/busy = 0
- var/hacked = 0
+ var/busy = FALSE
+ var/hacked = FALSE
var/disabled = 0
- var/shocked = 0
+ var/shocked = FALSE
var/obj/machinery/computer/rdconsole/linked_console
var/obj/item/loaded_item = null //the item loaded inside the machine (currently only used by experimentor and destructive analyzer)
diff --git a/code/modules/research/server.dm b/code/modules/research/server.dm
index 468185e615..67123a7575 100644
--- a/code/modules/research/server.dm
+++ b/code/modules/research/server.dm
@@ -318,7 +318,7 @@
/obj/machinery/computer/rdservercontrol/emag_act(mob/user)
if(!emagged)
playsound(src.loc, 'sound/effects/sparks4.ogg', 75, 1)
- emagged = 1
+ emagged = TRUE
to_chat(user, "You you disable the security protocols.")
/obj/machinery/r_n_d/server/robotics
diff --git a/code/modules/research/xenobiology/xenobiology.dm b/code/modules/research/xenobiology/xenobiology.dm
index ae08736efa..6c9337b02a 100644
--- a/code/modules/research/xenobiology/xenobiology.dm
+++ b/code/modules/research/xenobiology/xenobiology.dm
@@ -475,7 +475,7 @@
flags = ABSTRACT | NODROP
/obj/effect/golemrune
- anchored = 1
+ anchored = TRUE
desc = "a strange rune used to create golems. It glows when spirits are nearby."
name = "rune"
icon = 'icons/obj/rune.dmi'
@@ -546,7 +546,7 @@
/obj/effect/timestop
- anchored = 1
+ anchored = TRUE
name = "chronofield"
desc = "ZA WARUDO"
icon = 'icons/effects/160x160.dmi'
@@ -580,7 +580,7 @@
if(M in immune)
continue
M.Stun(200, 1, 1)
- M.anchored = 1
+ M.anchored = TRUE
if(ishostile(M))
var/mob/living/simple_animal/hostile/H = M
H.AIStatus = AI_OFF
@@ -610,7 +610,7 @@
/obj/effect/timestop/proc/unfreeze_mob(mob/living/M)
M.AdjustStun(-200, 1, 1)
- M.anchored = 0
+ M.anchored = FALSE
if(ishostile(M))
var/mob/living/simple_animal/hostile/H = M
H.AIStatus = initial(H.AIStatus)
diff --git a/code/modules/ruins/objects_and_mobs/sin_ruins.dm b/code/modules/ruins/objects_and_mobs/sin_ruins.dm
index 349d716d2d..0677a032df 100644
--- a/code/modules/ruins/objects_and_mobs/sin_ruins.dm
+++ b/code/modules/ruins/objects_and_mobs/sin_ruins.dm
@@ -5,8 +5,8 @@
desc = "High stakes, high rewards."
icon = 'icons/obj/economy.dmi'
icon_state = "slots1"
- anchored = 1
- density = 1
+ anchored = TRUE
+ density = TRUE
var/win_prob = 5
/obj/structure/cursed_slot_machine/attack_hand(mob/living/carbon/human/user)
@@ -70,8 +70,8 @@
/obj/effect/gluttony //Gluttony's wall: Used in the Gluttony ruin. Only lets the overweight through.
name = "gluttony's wall"
desc = "Only those who truly indulge may pass."
- anchored = 1
- density = 1
+ anchored = TRUE
+ density = TRUE
icon_state = "blob"
icon = 'icons/mob/blob.dmi'
color = rgb(145, 150, 0)
diff --git a/code/modules/security_levels/keycard_authentication.dm b/code/modules/security_levels/keycard_authentication.dm
index c90e89b291..288ff7ad74 100644
--- a/code/modules/security_levels/keycard_authentication.dm
+++ b/code/modules/security_levels/keycard_authentication.dm
@@ -5,7 +5,7 @@ GLOBAL_DATUM_INIT(keycard_events, /datum/events, new)
desc = "This device is used to trigger station functions, which require more than one ID card to authenticate."
icon = 'icons/obj/monitors.dmi'
icon_state = "auth_off"
- anchored = 1
+ anchored = TRUE
use_power = IDLE_POWER_USE
idle_power_usage = 2
active_power_usage = 6
@@ -27,7 +27,7 @@ GLOBAL_DATUM_INIT(keycard_events, /datum/events, new)
qdel(ev)
. = ..()
-/obj/machinery/keycard_auth/ui_interact(mob/user, ui_key = "main", datum/tgui/ui = null, force_open = 0, \
+/obj/machinery/keycard_auth/ui_interact(mob/user, ui_key = "main", datum/tgui/ui = null, force_open = FALSE, \
datum/tgui/master_ui = null, datum/ui_state/state = GLOB.physical_state)
ui = SStgui.try_update_ui(user, src, ui_key, ui, force_open)
if(!ui)
@@ -112,7 +112,7 @@ GLOBAL_VAR_INIT(emergency_access, FALSE)
/proc/make_maint_all_access()
for(var/area/maintenance/A in world)
for(var/obj/machinery/door/airlock/D in A)
- D.emergency = 1
+ D.emergency = TRUE
D.update_icon(0)
minor_announce("Access restrictions on maintenance and external airlocks have been lifted.", "Attention! Station-wide emergency declared!",1)
GLOB.emergency_access = TRUE
@@ -120,7 +120,7 @@ GLOBAL_VAR_INIT(emergency_access, FALSE)
/proc/revoke_maint_all_access()
for(var/area/maintenance/A in world)
for(var/obj/machinery/door/airlock/D in A)
- D.emergency = 0
+ D.emergency = FALSE
D.update_icon(0)
minor_announce("Access restrictions in maintenance areas have been restored.", "Attention! Station-wide emergency rescinded:")
GLOB.emergency_access = FALSE
diff --git a/code/modules/shuttle/computer.dm b/code/modules/shuttle/computer.dm
index 20465ca0f7..9b60a27ecc 100644
--- a/code/modules/shuttle/computer.dm
+++ b/code/modules/shuttle/computer.dm
@@ -74,6 +74,6 @@
/obj/machinery/computer/shuttle/emag_act(mob/user)
if(!emagged)
src.req_access = list()
- emagged = 1
+ emagged = TRUE
to_chat(user, "You fried the consoles ID checking system.")
diff --git a/code/modules/shuttle/emergency.dm b/code/modules/shuttle/emergency.dm
index 1836b47969..51552294d6 100644
--- a/code/modules/shuttle/emergency.dm
+++ b/code/modules/shuttle/emergency.dm
@@ -16,7 +16,7 @@
say("Please equip your ID card into your ID slot to authenticate.")
. = ..()
-/obj/machinery/computer/emergency_shuttle/ui_interact(mob/user, ui_key = "main", datum/tgui/ui = null, force_open = 0, datum/tgui/master_ui = null, datum/ui_state/state = GLOB.human_adjacent_state)
+/obj/machinery/computer/emergency_shuttle/ui_interact(mob/user, ui_key = "main", datum/tgui/ui = null, force_open = FALSE, datum/tgui/master_ui = null, datum/ui_state/state = GLOB.human_adjacent_state)
ui = SStgui.try_update_ui(user, src, ui_key, ui, force_open)
if(!ui)
@@ -441,7 +441,7 @@
icon = 'icons/obj/terminals.dmi'
icon_state = "dorm_available"
light_color = LIGHT_COLOR_BLUE
- density = 0
+ density = FALSE
clockwork = TRUE //it'd look weird
/obj/machinery/computer/shuttle/pod/update_icon()
@@ -499,8 +499,8 @@
/obj/item/weapon/storage/pod
name = "emergency space suits"
desc = "A wall mounted safe containing space suits. Will only open in emergencies."
- anchored = 1
- density = 0
+ anchored = TRUE
+ density = FALSE
icon = 'icons/obj/storage.dmi'
icon_state = "safe"
var/unlocked = FALSE
diff --git a/code/modules/shuttle/manipulator.dm b/code/modules/shuttle/manipulator.dm
index 6dcf366ba5..6fd9cb129e 100644
--- a/code/modules/shuttle/manipulator.dm
+++ b/code/modules/shuttle/manipulator.dm
@@ -34,7 +34,7 @@
add_overlay(hologram_ship)
/obj/machinery/shuttle_manipulator/ui_interact(mob/user, ui_key = "main", \
- datum/tgui/ui = null, force_open = 0, datum/tgui/master_ui = null, \
+ datum/tgui/ui = null, force_open = FALSE, datum/tgui/master_ui = null, \
datum/ui_state/state = GLOB.admin_state)
ui = SStgui.try_update_ui(user, src, ui_key, ui, force_open)
diff --git a/code/modules/shuttle/shuttle.dm b/code/modules/shuttle/shuttle.dm
index 96ab93180b..f850bbb606 100644
--- a/code/modules/shuttle/shuttle.dm
+++ b/code/modules/shuttle/shuttle.dm
@@ -11,7 +11,7 @@
icon_state = "pinonfar"
resistance_flags = INDESTRUCTIBLE | LAVA_PROOF | FIRE_PROOF | UNACIDABLE | ACID_PROOF
- anchored = 1
+ anchored = TRUE
//
var/id
// this should point -away- from the dockingport door, ie towards the ship
diff --git a/code/modules/spells/spell.dm b/code/modules/spells/spell.dm
index 9a1042201e..e4466972a2 100644
--- a/code/modules/spells/spell.dm
+++ b/code/modules/spells/spell.dm
@@ -71,9 +71,9 @@ GLOBAL_LIST_INIT(spells, typesof(/obj/effect/proc_holder/spell)) //needed for th
desc = "A wizard spell"
panel = "Spells"
var/sound = null //The sound the spell makes when it is cast
- anchored = 1 // Crap like fireball projectiles are proc_holders, this is needed so fireballs don't get blown back into your face via atmos etc.
+ anchored = TRUE // Crap like fireball projectiles are proc_holders, this is needed so fireballs don't get blown back into your face via atmos etc.
pass_flags = PASSTABLE
- density = 0
+ density = FALSE
opacity = 0
var/school = "evocation" //not relevant at now, but may be important later if there are changes to how spells work. the ones I used for now will probably be changed... maybe spell presets? lacking flexibility but with some other benefit?
@@ -288,8 +288,8 @@ GLOBAL_LIST_INIT(spells, typesof(/obj/effect/proc_holder/spell)) //needed for th
var/obj/effect/overlay/spell = new /obj/effect/overlay(location)
spell.icon = overlay_icon
spell.icon_state = overlay_icon_state
- spell.anchored = 1
- spell.density = 0
+ spell.anchored = TRUE
+ spell.density = FALSE
QDEL_IN(spell, overlay_lifespan)
/obj/effect/proc_holder/spell/proc/after_cast(list/targets)
diff --git a/code/modules/spells/spell_types/conjure.dm b/code/modules/spells/spell_types/conjure.dm
index dfde331207..3985328827 100644
--- a/code/modules/spells/spell_types/conjure.dm
+++ b/code/modules/spells/spell_types/conjure.dm
@@ -7,7 +7,7 @@
var/summon_lifespan = 0 // 0=permanent, any other time in deciseconds
var/summon_amt = 1 //amount of objects summoned
- var/summon_ignore_density = 0 //if set to 1, adds dense tiles to possible spawn places
+ var/summon_ignore_density = FALSE //if set to 1, adds dense tiles to possible spawn places
var/summon_ignore_prev_spawn_points = 0 //if set to 1, each new object is summoned on a new spawn point
var/list/newVars = list() //vars of the summoned objects will be replaced with those where they meet
diff --git a/code/modules/spells/spell_types/ethereal_jaunt.dm b/code/modules/spells/spell_types/ethereal_jaunt.dm
index f1fdec26ce..baf9bdcc92 100644
--- a/code/modules/spells/spell_types/ethereal_jaunt.dm
+++ b/code/modules/spells/spell_types/ethereal_jaunt.dm
@@ -75,8 +75,8 @@
var/reappearing = 0
var/movedelay = 0
var/movespeed = 2
- density = 0
- anchored = 1
+ density = FALSE
+ anchored = TRUE
invisibility = 60
resistance_flags = LAVA_PROOF | FIRE_PROOF | UNACIDABLE | ACID_PROOF
diff --git a/code/modules/spells/spell_types/spacetime_distortion.dm b/code/modules/spells/spell_types/spacetime_distortion.dm
index 7c718d536c..25b170745f 100644
--- a/code/modules/spells/spell_types/spacetime_distortion.dm
+++ b/code/modules/spells/spell_types/spacetime_distortion.dm
@@ -62,7 +62,7 @@
/obj/effect/cross_action
name = "cross me"
desc = "for crossing"
- anchored = 1
+ anchored = TRUE
/obj/effect/cross_action/spacetime_dist
name = "spacetime distortion"
diff --git a/code/modules/station_goals/bsa.dm b/code/modules/station_goals/bsa.dm
index 1e7bc4ac34..b593b507a8 100644
--- a/code/modules/station_goals/bsa.dm
+++ b/code/modules/station_goals/bsa.dm
@@ -27,8 +27,8 @@
/obj/machinery/bsa
icon = 'icons/obj/machines/particle_accelerator.dmi'
- density = 1
- anchored = 1
+ density = TRUE
+ anchored = TRUE
/obj/machinery/bsa/back
name = "Bluespace Artillery Generator"
@@ -198,8 +198,8 @@
/obj/structure/filler
name = "big machinery part"
- density = 1
- anchored = 1
+ density = TRUE
+ anchored = TRUE
invisibility = INVISIBILITY_ABSTRACT
var/obj/machinery/parent
@@ -246,7 +246,7 @@
icon_state = "control_boxp"
var/area_aim = FALSE //should also show areas for targeting
-/obj/machinery/computer/bsa_control/ui_interact(mob/user, ui_key = "main", datum/tgui/ui = null, force_open = 0, \
+/obj/machinery/computer/bsa_control/ui_interact(mob/user, ui_key = "main", datum/tgui/ui = null, force_open = FALSE, \
datum/tgui/master_ui = null, datum/ui_state/state = GLOB.physical_state)
ui = SStgui.try_update_ui(user, src, ui_key, ui, force_open)
if(!ui)
diff --git a/code/modules/station_goals/dna_vault.dm b/code/modules/station_goals/dna_vault.dm
index 02ce0f7706..ddcfaf08d1 100644
--- a/code/modules/station_goals/dna_vault.dm
+++ b/code/modules/station_goals/dna_vault.dm
@@ -131,8 +131,8 @@
desc = "Break glass in case of apocalypse."
icon = 'icons/obj/machines/dna_vault.dmi'
icon_state = "vault"
- density = 1
- anchored = 1
+ density = TRUE
+ anchored = TRUE
idle_power_usage = 5000
pixel_x = -32
pixel_y = -64
@@ -180,7 +180,7 @@
. = ..()
-/obj/machinery/dna_vault/ui_interact(mob/user, ui_key = "main", datum/tgui/ui = null, force_open = 0, datum/tgui/master_ui = null, datum/ui_state/state = GLOB.physical_state)
+/obj/machinery/dna_vault/ui_interact(mob/user, ui_key = "main", datum/tgui/ui = null, force_open = FALSE, datum/tgui/master_ui = null, datum/ui_state/state = GLOB.physical_state)
ui = SStgui.try_update_ui(user, src, ui_key, ui, force_open)
if(!ui)
roll_powers(user)
diff --git a/code/modules/station_goals/shield.dm b/code/modules/station_goals/shield.dm
index da0edd86c7..f9f24a4fb4 100644
--- a/code/modules/station_goals/shield.dm
+++ b/code/modules/station_goals/shield.dm
@@ -47,7 +47,7 @@
circuit = /obj/item/weapon/circuitboard/machine/computer/sat_control
var/notice
-/obj/machinery/computer/sat_control/ui_interact(mob/user, ui_key = "main", datum/tgui/ui = null, force_open = 0, datum/tgui/master_ui = null, datum/ui_state/state = GLOB.default_state)
+/obj/machinery/computer/sat_control/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)
ui = SStgui.try_update_ui(user, src, ui_key, ui, force_open)
if(!ui)
ui = new(user, src, ui_key, "sat_control", name, 400, 305, master_ui, state)
@@ -94,7 +94,7 @@
icon_state = "sat_inactive"
var/mode = "NTPROBEV0.8"
var/active = FALSE
- density = 1
+ density = TRUE
use_power = FALSE
var/static/gid = 0
var/id = 0
@@ -116,10 +116,10 @@
active = !active
if(active)
animate(src, pixel_y = 2, time = 10, loop = -1)
- anchored = 1
+ anchored = TRUE
else
animate(src, pixel_y = 0, time = 10)
- anchored = 0
+ anchored = FALSE
update_icon()
/obj/machinery/satellite/update_icon()
@@ -177,6 +177,6 @@
/obj/machinery/satellite/meteor_shield/emag_act()
if(!emagged)
- emagged = 1
+ emagged = TRUE
if(active)
change_meteor_chance(2)
diff --git a/code/modules/surgery/organs/augments_chest.dm b/code/modules/surgery/organs/augments_chest.dm
index 8d536632af..3a2a3611db 100644
--- a/code/modules/surgery/organs/augments_chest.dm
+++ b/code/modules/surgery/organs/augments_chest.dm
@@ -125,7 +125,7 @@
implant_color = null
actions_types = list(/datum/action/item_action/organ_action/toggle)
w_class = WEIGHT_CLASS_NORMAL
- var/on = 0
+ var/on = FALSE
var/datum/effect_system/trail_follow/ion/ion_trail
/obj/item/organ/cyberimp/chest/thrusters/Insert(mob/living/carbon/M, special = 0)
@@ -148,7 +148,7 @@
if(!silent)
to_chat(owner, "Your thrusters set seems to be broken!")
return 0
- on = 1
+ on = TRUE
if(allow_thrust(0.01))
ion_trail.start()
if(!silent)
@@ -157,7 +157,7 @@
ion_trail.stop()
if(!silent)
to_chat(owner, "You turn your thrusters set off.")
- on = 0
+ on = FALSE
update_icon()
/obj/item/organ/cyberimp/chest/thrusters/update_icon()
diff --git a/code/modules/tgui/external.dm b/code/modules/tgui/external.dm
index 4c6102cc37..a45b4a7daf 100644
--- a/code/modules/tgui/external.dm
+++ b/code/modules/tgui/external.dm
@@ -17,7 +17,7 @@
* optional master_ui datum/tgui The parent UI.
* optional state datum/ui_state The state used to determine status.
**/
-/datum/proc/ui_interact(mob/user, ui_key = "main", datum/tgui/ui = null, force_open = 0, datum/tgui/master_ui = null, datum/ui_state/state = GLOB.default_state)
+/datum/proc/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)
return -1 // Not implemented.
/**
diff --git a/code/modules/tgui/subsystem.dm b/code/modules/tgui/subsystem.dm
index b010a2f510..c82936bf5d 100644
--- a/code/modules/tgui/subsystem.dm
+++ b/code/modules/tgui/subsystem.dm
@@ -17,7 +17,7 @@
*
* return datum/tgui The found UI.
**/
-/datum/controller/subsystem/tgui/proc/try_update_ui(mob/user, datum/src_object, ui_key, datum/tgui/ui, force_open = 0)
+/datum/controller/subsystem/tgui/proc/try_update_ui(mob/user, datum/src_object, ui_key, datum/tgui/ui, force_open = FALSE)
if(isnull(ui)) // No UI was passed, so look for one.
ui = get_open_ui(user, src_object, ui_key)
diff --git a/code/modules/tgui/tgui.dm b/code/modules/tgui/tgui.dm
index 22d7e73a9b..e427cfa0d1 100644
--- a/code/modules/tgui/tgui.dm
+++ b/code/modules/tgui/tgui.dm
@@ -335,7 +335,7 @@
*
* optional force_open bool If force_open should be passed to ui_interact.
**/
-/datum/tgui/proc/update(force_open = 0)
+/datum/tgui/proc/update(force_open = FALSE)
src_object.ui_interact(user, ui_key, src, force_open, master_ui, state)
/**
diff --git a/code/modules/uplink/uplink.dm b/code/modules/uplink/uplink.dm
index 19350669c6..041f503967 100644
--- a/code/modules/uplink/uplink.dm
+++ b/code/modules/uplink/uplink.dm
@@ -61,7 +61,7 @@ GLOBAL_LIST_EMPTY(uplinks)
if(user)
ui_interact(user)
-/obj/item/device/uplink/ui_interact(mob/user, ui_key = "main", datum/tgui/ui = null, force_open = 0, \
+/obj/item/device/uplink/ui_interact(mob/user, ui_key = "main", datum/tgui/ui = null, force_open = FALSE, \
datum/tgui/master_ui = null, datum/ui_state/state = GLOB.inventory_state)
ui = SStgui.try_update_ui(user, src, ui_key, ui, force_open)
if(!ui)
diff --git a/code/modules/vehicles/atv.dm b/code/modules/vehicles/atv.dm
index c10b6f8ebc..c8c5ed0af9 100644
--- a/code/modules/vehicles/atv.dm
+++ b/code/modules/vehicles/atv.dm
@@ -31,7 +31,7 @@
name = "mounted turret"
scan_range = 7
emp_vunerable = 1
- density = 0
+ density = FALSE
/obj/vehicle/atv/turret/Initialize()
diff --git a/code/modules/vehicles/scooter.dm b/code/modules/vehicles/scooter.dm
index 6bc76ded27..8ed7415072 100644
--- a/code/modules/vehicles/scooter.dm
+++ b/code/modules/vehicles/scooter.dm
@@ -35,7 +35,7 @@
desc = "An unfinished scooter which can only barely be called a skateboard. It's still rideable, but probably unsafe. Looks like you'll need to add a few rods to make handlebars."
icon_state = "skateboard"
- density = 0
+ density = FALSE
/obj/vehicle/scooter/skateboard/buckle_mob(mob/living/M, force = 0, check_loc = 1)
. = ..()
@@ -43,9 +43,9 @@
/obj/vehicle/scooter/skateboard/post_buckle_mob(mob/living/M)//allows skateboards to be non-dense but still allows 2 skateboarders to collide with each other
if(has_buckled_mobs())
- density = 1
+ density = TRUE
else
- density = 0
+ density = FALSE
..()
/obj/vehicle/scooter/skateboard/Bump(atom/A)
diff --git a/code/modules/vehicles/vehicle.dm b/code/modules/vehicles/vehicle.dm
index 80518fce12..66dd67735a 100644
--- a/code/modules/vehicles/vehicle.dm
+++ b/code/modules/vehicles/vehicle.dm
@@ -4,8 +4,8 @@
desc = "A basic vehicle, vroom"
icon = 'icons/obj/vehicles.dmi'
icon_state = "fuckyou"
- density = 1
- anchored = 0
+ density = TRUE
+ anchored = FALSE
can_buckle = 1
buckle_lying = 0
max_integrity = 300