mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-07-11 15:15:32 +01:00
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:
@@ -109,7 +109,7 @@
|
||||
return attack_self(user)
|
||||
|
||||
/obj/item/modular_computer/attack_hand(var/mob/user)
|
||||
if(anchored)
|
||||
if(anchored || ispAI(user))
|
||||
return attack_self(user)
|
||||
return ..()
|
||||
|
||||
@@ -212,3 +212,10 @@
|
||||
return
|
||||
|
||||
..()
|
||||
|
||||
/obj/item/modular_computer/allow_pai_interaction(mob/living/silicon/pai/user, proximity_flag)
|
||||
if(!card_slot?.stored_card?.dna_hash || !user.master_dna)
|
||||
return FALSE
|
||||
if(card_slot.stored_card.dna_hash != user.master_dna)
|
||||
return FALSE
|
||||
return proximity_flag
|
||||
|
||||
Reference in New Issue
Block a user