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:
Kashargul
2025-02-16 00:16:15 +01:00
committed by GitHub
parent f7de6141b5
commit 2ae6355aff
82 changed files with 988 additions and 986 deletions
+4 -4
View File
@@ -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