PAI Access Fix (#2707)

Fixes a bug that gave PAI's all access.
It seems at some point silicons were changed to use an internal ID, and pais were given that same ID which had all access.

Changed it so their internal ID only has basic access and rerouted pai ID functions to it. This restores them to intended functionality, that is: They can only walk in public areas, and wherever their master has access, once the master has scanned their ID
This commit is contained in:
NanakoAC
2017-06-13 13:37:24 +03:00
committed by skull132
parent fd6a8305a5
commit 0310a7cba8
3 changed files with 48 additions and 9 deletions
+6 -3
View File
@@ -45,7 +45,7 @@
)
var/obj/item/weapon/pai_cable/cable // The cable we produce and use when door or camera jacking
var/obj/item/weapon/card/id/ID = null //Internal ID used to store copied owner access, and to check access for airlocks
idcard_type = /obj/item/weapon/card/id //Internal ID used to store copied owner access, and to check access for airlocks
var/master // Name of the one who commands us
var/master_dna // DNA string for owner verification
@@ -140,8 +140,6 @@
//PDA
pda = new(src)
ID = new(src)
ID.registered_name = ""
spawn(5)
pda.ownjob = "Personal Assistant"
pda.owner = text("[]", src)
@@ -149,6 +147,11 @@
pda.toff = 1
..()
/mob/living/silicon/pai/init_id()
. = ..()
idcard.registered_name = ""
/mob/living/silicon/pai/Login()
greet()
..()