Changes some 1s and 0s to TRUE and FALSE (#1967)
This commit is contained in:
committed by
kevinz000
parent
1b70c06474
commit
ff6bbbedf5
@@ -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, "<span class='warning'>You fail to break out of [src]!</span>")
|
||||
|
||||
/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 @@
|
||||
"<span class='italics'>You hear a faint electrical spark.</span>")
|
||||
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)
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user