mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-27 06:54:18 +01:00
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:
@@ -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()
|
||||
..()
|
||||
|
||||
Reference in New Issue
Block a user