Changes all access const to be a define
This commit is contained in:
@@ -11,7 +11,7 @@ GLOBAL_VAR(posibrain_notify_cooldown)
|
||||
var/askDelay = 600 //one minute
|
||||
var/searching = FALSE
|
||||
brainmob = null
|
||||
req_access = list(GLOB.access_robotics)
|
||||
req_access = list(ACCESS_ROBOTICS)
|
||||
mecha = null//This does not appear to be used outside of reference in mecha.dm.
|
||||
braintype = "Android"
|
||||
var/autoping = TRUE //if it pings on creation immediately
|
||||
|
||||
@@ -401,7 +401,7 @@
|
||||
if (!G.emagged)
|
||||
if(H.wear_id)
|
||||
var/list/access = H.wear_id.GetAccess()
|
||||
if(GLOB.access_sec_doors in access)
|
||||
if(ACCESS_SEC_DOORS in access)
|
||||
allowed_access = H.get_authentification_name()
|
||||
else
|
||||
allowed_access = "@%&ERROR_%$*"
|
||||
@@ -594,7 +594,7 @@
|
||||
|
||||
//Check for weapons
|
||||
if( (judgement_criteria & JUDGE_WEAPONCHECK) && weaponcheck)
|
||||
if(!idcard || !(GLOB.access_weapons in idcard.access))
|
||||
if(!idcard || !(ACCESS_WEAPONS in idcard.access))
|
||||
for(var/obj/item/I in held_items)
|
||||
if(weaponcheck.Invoke(I))
|
||||
threatcount += 4
|
||||
|
||||
@@ -51,7 +51,7 @@
|
||||
|
||||
var/ident = 0
|
||||
var/locked = TRUE
|
||||
var/list/req_access = list(GLOB.access_robotics)
|
||||
var/list/req_access = list(ACCESS_ROBOTICS)
|
||||
|
||||
var/alarms = list("Motion"=list(), "Fire"=list(), "Atmosphere"=list(), "Power"=list(), "Camera"=list(), "Burglar"=list())
|
||||
|
||||
@@ -841,7 +841,7 @@
|
||||
icon_state = "syndie_bloodhound"
|
||||
faction = list("syndicate")
|
||||
bubble_icon = "syndibot"
|
||||
req_access = list(GLOB.access_syndicate)
|
||||
req_access = list(ACCESS_SYNDICATE)
|
||||
lawupdate = FALSE
|
||||
scrambledcodes = TRUE // These are rogue borgs.
|
||||
ionpulse = TRUE
|
||||
|
||||
@@ -119,7 +119,7 @@
|
||||
..()
|
||||
access_card = new /obj/item/weapon/card/id(src)
|
||||
//This access is so bots can be immediately set to patrol and leave Robotics, instead of having to be let out first.
|
||||
access_card.access += GLOB.access_robotics
|
||||
access_card.access += ACCESS_ROBOTICS
|
||||
set_custom_texts()
|
||||
Radio = new/obj/item/device/radio(src)
|
||||
if(radio_key)
|
||||
|
||||
@@ -265,7 +265,7 @@
|
||||
..()
|
||||
|
||||
/obj/machinery/bot_core/cleanbot
|
||||
req_one_access = list(GLOB.access_janitor, GLOB.access_robotics)
|
||||
req_one_access = list(ACCESS_JANITOR, ACCESS_ROBOTICS)
|
||||
|
||||
|
||||
/mob/living/simple_animal/bot/cleanbot/get_controls(mob/user)
|
||||
|
||||
@@ -59,7 +59,7 @@
|
||||
shot_delay = 6//Longer shot delay because JESUS CHRIST
|
||||
check_records = 0//Don't actively target people set to arrest
|
||||
arrest_type = 1//Don't even try to cuff
|
||||
bot_core.req_access = list(GLOB.access_maint_tunnels, GLOB.access_theatre)
|
||||
bot_core.req_access = list(ACCESS_MAINT_TUNNELS, ACCESS_THEATRE)
|
||||
arrest_type = 1
|
||||
if((lasercolor == "b") && (name == "\improper ED-209 Security Robot"))//Picks a name if there isn't already a custome one
|
||||
name = pick("BLUE BALLER","SANIC","BLUE KILLDEATH MURDERBOT")
|
||||
|
||||
@@ -385,7 +385,7 @@
|
||||
..()
|
||||
|
||||
/obj/machinery/bot_core/floorbot
|
||||
req_one_access = list(GLOB.access_construction, GLOB.access_robotics)
|
||||
req_one_access = list(ACCESS_CONSTRUCTION, ACCESS_ROBOTICS)
|
||||
|
||||
/mob/living/simple_animal/bot/floorbot/UnarmedAttack(atom/A)
|
||||
if(isturf(A))
|
||||
|
||||
@@ -539,4 +539,4 @@
|
||||
declare_cooldown = world.time + 200
|
||||
|
||||
/obj/machinery/bot_core/medbot
|
||||
req_one_access =list(GLOB.access_medical, GLOB.access_robotics)
|
||||
req_one_access =list(ACCESS_MEDICAL, ACCESS_ROBOTICS)
|
||||
|
||||
@@ -748,4 +748,4 @@
|
||||
#undef DELIGHT
|
||||
|
||||
/obj/machinery/bot_core/mulebot
|
||||
req_access = list(GLOB.access_cargo)
|
||||
req_access = list(ACCESS_CARGO)
|
||||
|
||||
@@ -432,4 +432,4 @@ Auto Patrol: []"},
|
||||
..()
|
||||
|
||||
/obj/machinery/bot_core/secbot
|
||||
req_access = list(GLOB.access_security)
|
||||
req_access = list(ACCESS_SECURITY)
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
/obj/effect/mob_spawn/human/corpse/syndicatesoldier
|
||||
name = "Syndicate Operative"
|
||||
id_job = "Operative"
|
||||
id_access_list = list(GLOB.access_syndicate)
|
||||
id_access_list = list(ACCESS_SYNDICATE)
|
||||
outfit = /datum/outfit/syndicatesoldiercorpse
|
||||
|
||||
/datum/outfit/syndicatesoldiercorpse
|
||||
@@ -30,7 +30,7 @@
|
||||
/obj/effect/mob_spawn/human/corpse/syndicatecommando
|
||||
name = "Syndicate Commando"
|
||||
id_job = "Operative"
|
||||
id_access_list = list(GLOB.access_syndicate)
|
||||
id_access_list = list(ACCESS_SYNDICATE)
|
||||
outfit = /datum/outfit/syndicatecommandocorpse
|
||||
|
||||
/datum/outfit/syndicatecommandocorpse
|
||||
@@ -49,7 +49,7 @@
|
||||
/obj/effect/mob_spawn/human/corpse/syndicatestormtrooper
|
||||
name = "Syndicate Stormtrooper"
|
||||
id_job = "Operative"
|
||||
id_access_list = list(GLOB.access_syndicate)
|
||||
id_access_list = list(ACCESS_SYNDICATE)
|
||||
outfit = /datum/outfit/syndicatestormtroopercorpse
|
||||
|
||||
/datum/outfit/syndicatestormtroopercorpse
|
||||
|
||||
@@ -316,7 +316,7 @@
|
||||
mask = /obj/item/clothing/mask/breath
|
||||
if("Operative")
|
||||
id_job = "Operative"
|
||||
id_access_list = list(GLOB.access_syndicate)
|
||||
id_access_list = list(ACCESS_SYNDICATE)
|
||||
outfit = /datum/outfit/syndicatecommandocorpse
|
||||
if("Shadow")
|
||||
mob_species = /datum/species/shadow
|
||||
|
||||
Reference in New Issue
Block a user