mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-31 07:58:22 +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:
@@ -96,7 +96,7 @@
|
||||
var/list/in_range = list()
|
||||
if(!istype(M))
|
||||
return in_range
|
||||
var/social_check = only_people && !istype(M, /mob/living/carbon) && !istype(M, /mob/living/silicon/robot)
|
||||
var/social_check = only_people && !istype(M, /mob/living/carbon) && !istype(M, /mob/living/silicon/robot) && !istype(M, /mob/living/silicon/pai)
|
||||
var/self_invisible_check = M == human_parent || M.invisibility > human_parent.see_invisible
|
||||
var/ckey_check = only_people && !M.ckey
|
||||
var/overall_checks = M == human_parent || M.stat == DEAD || social_check || ckey_check
|
||||
@@ -199,6 +199,10 @@
|
||||
for(var/obj/item/toy/plushie/teshari/P in range(5, human_parent))
|
||||
calm_discomfort()
|
||||
return
|
||||
for(var/obj/item/paicard/P in range(5, human_parent))
|
||||
if(P.pai && !P.pai.stat && P.pai.client) // Must have pai and it must be alive
|
||||
calm_discomfort()
|
||||
return
|
||||
|
||||
increase_discomfort()
|
||||
|
||||
|
||||
@@ -165,6 +165,14 @@
|
||||
return
|
||||
|
||||
var/obj/item/I = ui.user.get_active_hand()
|
||||
if(istype(I, /obj/item/paicard)) // Get pai builtin emag tools
|
||||
var/obj/item/paicard/card = I
|
||||
if(card.emagged && card.has_emag_toolkit)
|
||||
switch(card.selected_system)
|
||||
if("MultiTool")
|
||||
I = card.multitool
|
||||
if("Signaler")
|
||||
I = card.signaler
|
||||
var/color = lowertext(params["wire"])
|
||||
holder.add_hiddenprint(ui.user)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user