upports syndicate pai pet from chomp and emag behaviors (#19249)

* upporting syndicate pai pet

* tgui data

* don't emag cards without a pai

* aaugghh

* allow bingle pai, pai counts for lonely

* modular computers

* fix that

* .

* emag

* that'S fine

* pai card as antag tools

* .

* trashcatch

* that

* .

* only show emag chassis if we have a toolkit too

* .

* .

---------

Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
Will
2026-03-05 21:53:36 +01:00
committed by GitHub
co-authored by Kashargul
parent cfd9a46036
commit 14e23e07f0
42 changed files with 453 additions and 190 deletions
+1 -1
View File
@@ -62,7 +62,7 @@ Code is pretty much ripped verbatim from nano modules, but with un-needed stuff
return 0
/datum/tgui_module/tgui_static_data()
/datum/tgui_module/tgui_static_data(mob/user)
. = ..()
var/obj/item/modular_computer/host = tgui_host()
+1 -1
View File
@@ -74,7 +74,7 @@ GLOBAL_DATUM_INIT(tgui_default_state, /datum/tgui_state/default, new)
/mob/living/silicon/pai/default_can_use_tgui_topic(src_object)
// Allows few objects...
var/obj/check_obj = src_object
if(!stat && istype(check_obj) && check_obj.allow_pai_interaction(get_dist(check_obj, src) <= 1))
if(!stat && istype(check_obj) && check_obj.allow_pai_interaction(src, get_dist(check_obj, src) <= 1))
return STATUS_INTERACTIVE
// ...otherwise pAIs can only use themselves and the owner's radio.
if((src_object == src || src_object == radio || src_object == communicator) && !stat)