mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-23 12:08:28 +01:00
more new to Init (#17147)
* more new to Init * fix pumps * style update * fix atmos memory leak * fix mech * qdel in here * Update hands.dm * Update rings.dm
This commit is contained in:
@@ -44,10 +44,10 @@
|
||||
ttone = "assist"
|
||||
var/our_owner = null // Ref to a pAI
|
||||
|
||||
/obj/item/pda/ai/pai/New(mob/living/silicon/pai/P)
|
||||
if(istype(P))
|
||||
our_owner = REF(P)
|
||||
return ..()
|
||||
/obj/item/pda/ai/pai/Initialize(mapload)
|
||||
. = ..()
|
||||
if(ispAI(loc))
|
||||
our_owner = REF(loc)
|
||||
|
||||
/obj/item/pda/ai/pai/tgui_status(mob/living/silicon/pai/user, datum/tgui_state/state)
|
||||
if(!istype(user) || REF(user) != our_owner) // Only allow our pAI to interface with us
|
||||
|
||||
Reference in New Issue
Block a user