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

This commit is contained in:
CitadelStationBot
2017-07-10 18:13:16 -05:00
committed by kevinz000
parent 1b70c06474
commit ff6bbbedf5
522 changed files with 1924 additions and 1917 deletions
+1 -1
View File
@@ -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()
+1 -1
View File
@@ -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)
@@ -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
@@ -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()
@@ -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("<span class='notice'>[user] refastens [src]'s maintenance panel!</span>", "<span class='notice'>You reset [src] to its factory settings!</span>")
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, "<span class='warning'>Turn off [src] before you perform this action!</span>")
return 0
to_chat(user, "<span class='warning'>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.</span>")
emagged = 1
emagged = TRUE
#undef RAD_LEVEL_NORMAL
#undef RAD_LEVEL_MODERATE
+1 -1
View File
@@ -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
@@ -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, "<span class='warning'>[src]'s battery is overused, it needs time to recharge!</span>")
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
..()
@@ -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
+2 -2
View File
@@ -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, "<span class='warning'>You overload \the [src]'s voice synthesizer.</span>")
emagged = 1
emagged = TRUE
voicespan = list(SPAN_REALLYBIG, "userdanger")
/obj/item/device/megaphone/sec
+5 -5
View File
@@ -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] - <A HREF='?_src_=holder;adminplayerobservecoodjump=1;X=[x];Y=[y];Z=[z]'>JMP</a>) is 95% full. Explosion imminent.")
playsound(src, 'sound/effects/screech.ogg', 100, 1, 1)
@@ -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
@@ -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
@@ -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
..()
///////////////////////////////
+1 -1
View File
@@ -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"
@@ -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, "<span class='notice'>You deactivate [src].</span>")
STOP_PROCESSING(SSobj, src)
if(user)
user.alpha = old_alpha
on = 0
on = FALSE
user = null
/obj/item/device/shadowcloak/dropped(mob/user)
@@ -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