mirror of
https://github.com/CHOMPstation/CHOMPstation.git
synced 2026-08-24 20:46:29 +01:00
PDA Unlock Borg Fix
Ports https://github.com/VOREStation/VOREStation/pull/4950
This commit is contained in:
@@ -698,17 +698,19 @@
|
||||
return 1
|
||||
return 0
|
||||
|
||||
/mob/living/silicon/robot/proc/check_access(obj/item/weapon/card/id/I)
|
||||
//TFF: Ports VoreStation edit for fixing PDA usage
|
||||
/mob/living/silicon/robot/proc/check_access(obj/item/I)
|
||||
if(!istype(req_access, /list)) //something's very wrong
|
||||
return 1
|
||||
|
||||
var/list/L = req_access
|
||||
if(!L.len) //no requirements
|
||||
return 1
|
||||
if(!I || !istype(I, /obj/item/weapon/card/id) || !I.access) //not ID or no access
|
||||
if(!I || !(istype(I, /obj/item/weapon/card/id) || istype(I, /obj/item/device/pda))) //not ID or PDA
|
||||
return 0
|
||||
var/access_found = I.GetAccess()
|
||||
for(var/req in req_access)
|
||||
if(req in I.access) //have one of the required accesses
|
||||
if(req in access_found) //have one of the required accesses
|
||||
return 1
|
||||
return 0
|
||||
|
||||
@@ -1120,4 +1122,4 @@
|
||||
/mob/living/silicon/robot/drop_item()
|
||||
if(module_active && istype(module_active,/obj/item/weapon/gripper))
|
||||
var/obj/item/weapon/gripper/G = module_active
|
||||
G.drop_item_nm()
|
||||
G.drop_item_nm()
|
||||
|
||||
Reference in New Issue
Block a user