Changes all access const to be a define
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user