mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-07-21 03:56:47 +01:00
more fields
This commit is contained in:
@@ -133,14 +133,14 @@
|
||||
// Nothing
|
||||
if(!id || !id.access)
|
||||
return list()
|
||||
|
||||
|
||||
// Has engineer access, can put any access
|
||||
else if(has_access(null, apply_any_access, id.access))
|
||||
else if(has_access(null, apply_any_access, id.GetAccess()))
|
||||
return get_all_station_access()
|
||||
|
||||
|
||||
// Not an engineer, can only pick your own accesses to program
|
||||
else
|
||||
return id.access
|
||||
return id.GetAccess()
|
||||
|
||||
/obj/item/weapon/airlock_electronics/secure
|
||||
name = "secure airlock electronics"
|
||||
|
||||
@@ -17,10 +17,10 @@
|
||||
var/obj/item/weapon/card/id/ourid = user?.GetIdCard()
|
||||
if(!ourid)
|
||||
return
|
||||
if(access_change_ids in ourid.access)
|
||||
if(access_change_ids in ourid.GetAccess())
|
||||
playsound(src, 'sound/machines/defib_failed.ogg', 50, 0)
|
||||
return
|
||||
if(access_medical in ourid.access)
|
||||
if(access_medical in ourid.GetAccess())
|
||||
playsound(src, 'sound/effects/pop.ogg', 50, FALSE)
|
||||
else
|
||||
playsound(src, 'sound/machines/defib_failed.ogg', 50, 0)
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
H.Paralyse(5)
|
||||
if(H.wear_id)
|
||||
var/obj/item/weapon/card/id/id = H.get_idcard()
|
||||
for(var/A in id.access)
|
||||
for(var/A in id.GetAccess())
|
||||
if(A == access_security)
|
||||
security++
|
||||
if(!security)
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
return
|
||||
if(istype(W,/obj/item/weapon/card/id))
|
||||
var/obj/item/weapon/card/id/ID = W
|
||||
if(access_keycard_auth in ID.access)
|
||||
if(access_keycard_auth in ID.GetAccess())
|
||||
if(active == 1)
|
||||
//This is not the device that made the initial request. It is the device confirming the request.
|
||||
if(event_source)
|
||||
|
||||
@@ -137,7 +137,7 @@
|
||||
if(!ID)
|
||||
return
|
||||
|
||||
access = ID.access
|
||||
access = ID.GetAccess()
|
||||
auth_name = "[ID.registered_name] ([ID.assignment])"
|
||||
dna_hash = ID.dna_hash
|
||||
|
||||
|
||||
Reference in New Issue
Block a user