From ac02425496e3279811df5aea125ffb45dba798a1 Mon Sep 17 00:00:00 2001 From: TheFurryFeline <38586851+TheFurryFeline@users.noreply.github.com> Date: Sun, 14 Apr 2019 17:40:15 -0400 Subject: [PATCH] Wallet/Micro Fun For Roboticists! Allow use of micros/wallets for unlocking borgs. Ported from https://github.com/VOREStation/VOREStation/pull/4990 --- code/modules/mob/living/silicon/robot/robot.dm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/code/modules/mob/living/silicon/robot/robot.dm b/code/modules/mob/living/silicon/robot/robot.dm index c58e9cb834..a34d92169d 100644 --- a/code/modules/mob/living/silicon/robot/robot.dm +++ b/code/modules/mob/living/silicon/robot/robot.dm @@ -616,7 +616,8 @@ else user << "Unable to locate a radio." - else if (istype(W, /obj/item/weapon/card/id)||istype(W, /obj/item/device/pda)||istype(W, /obj/item/weapon/card/robot)) // trying to unlock the interface with an ID card +//TFF 14/4/19: Port VoreStation edit - Wallet/Micro usage to unlock borgs. + else if (W.GetID()) // trying to unlock the interface with an ID card if(emagged)//still allow them to open the cover user << "The interface seems slightly damaged" if(opened) @@ -698,7 +699,7 @@ return 1 return 0 -//TFF: Ports VoreStation edit for fixing PDA usage +//TFF 14/4/19: Port VoreStation edit - wallet/micro usage to unlock borgs /mob/living/silicon/robot/proc/check_access(obj/item/I) if(!istype(req_access, /list)) //something's very wrong return 1 @@ -706,7 +707,7 @@ var/list/L = req_access if(!L.len) //no requirements return 1 - if(!I || !(istype(I, /obj/item/weapon/card/id) || istype(I, /obj/item/device/pda))) //not ID or PDA + if(!I) //nothing to check with..? return 0 var/access_found = I.GetAccess() for(var/req in req_access)