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
+2 -2
View File
@@ -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, "<span class='danger'>[src] does not have access to this door.</span>")
+1 -1
View File
@@ -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)
+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
+1 -1
View File
@@ -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()
..()
@@ -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
+2 -2
View File
@@ -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()
+4 -4
View File
@@ -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, "<span class='notice'>You attach the ends of the two plastic swords, making a single double-bladed toy! You're fake-cool.</span>")
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, "<span class='warning'>RNBW_ENGAGE</span>")
+2 -2
View File
@@ -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
+3 -3
View File
@@ -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)
@@ -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
@@ -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("<span class='suicide'>[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, "<span class='warning'>You maximize the voltage in the [src]</span>")
add_overlay("vapeopen_high")
+1 -1
View File
@@ -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
+14 -14
View File
@@ -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, "<span class='warning'>You need a free hand to hold the paddles!</span>")
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("<span class='danger'>[user] has touched [M] with [src]!</span>", \
"<span class='userdanger'>[user] has touched [M] with [src]!</span>")
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("<span class='warning'>[user] begins to place [src] on [H]'s chest.</span>",
"<span class='warning'>You overcharge the paddles and begin to place them onto [H]'s chest...</span>")
busy = 1
busy = TRUE
update_icon()
if(do_after(user, 30, target = H))
user.visible_message("<span class='notice'>[user] places [src] on [H]'s chest.</span>",
@@ -435,13 +435,13 @@
user.audible_message("<span class='warning'>[src] let out an urgent beep.</span>")
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, "<span class='warning'>[H] is dead.</span>")
playsound(get_turf(src), 'sound/machines/defib_failed.ogg', 50, 0)
busy = 0
busy = FALSE
update_icon()
return
user.visible_message("<span class='boldannounce'><i>[user] shocks [H] with \the [src]!</span>", "<span class='warning'>You shock [H] with \the [src]!</span>")
@@ -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("<span class='warning'>[user] begins to place [src] on [H]'s chest.</span>", "<span class='warning'>You begin to place [src] on [H]'s chest...</span>")
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("<span class='notice'>[user] places [src] on [H]'s chest.</span>", "<span class='warning'>You place [src] on [H]'s chest.</span>")
@@ -491,7 +491,7 @@
if((!src.combat && !req_defib) || (req_defib && !defib.combat))
user.audible_message("<span class='warning'>[req_defib ? "[defib]" : "[src]"] buzzes: Patient's chest is obscured. Operation aborted.</span>")
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("<span class='warning'>[req_defib ? "[defib]" : "[src]"] buzzes: Patient is not in a valid state. Operation aborted.</span>")
playsound(get_turf(src), 'sound/machines/defib_failed.ogg', 50, 0)
busy = 0
busy = FALSE
update_icon()
/obj/item/weapon/twohanded/shockpaddles/cyborg
+13 -13
View File
@@ -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()
@@ -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.
@@ -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)
@@ -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)
@@ -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
@@ -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)
@@ -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()
@@ -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)
@@ -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, "<span class='warning'>You need a free hand to hold the mister!</span>")
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, "<span class='notice'>[src] turns on.</span>")
/obj/item/weapon/reagent_containers/chemtank/proc/turn_off()
on = 0
on = FALSE
STOP_PROCESSING(SSobj, src)
if(ismob(loc))
to_chat(loc, "<span class='notice'>[src] turns off.</span>")
+1 -1
View File
@@ -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
+4 -4
View File
@@ -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, "<span class='warning'>2XRNBW_ENGAGE</span>")
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