virtual pets now auto-follow you on release (#88844)

## About The Pull Request
when you summon a virtual pet's hologram, itll automatically follow you
on release rather than u having to give it the command

## Why It's Good For The Game
adds some minor convenience to the minigame. 

## Changelog
🆑
qol: virtual pet holograms now automatically follow you when released
rather than having to give it the command post summon
/🆑
This commit is contained in:
Ben10Omintrix
2025-01-04 18:10:35 +01:00
committed by GitHub
parent a7df5f2526
commit ae9f121def
3 changed files with 16 additions and 2 deletions
@@ -105,6 +105,14 @@
/datum/pet_command/follow/orbie
follow_behavior = /datum/ai_behavior/pet_follow_friend/orbie
/datum/pet_command/follow/orbie/New(mob/living/parent)
. = ..()
RegisterSignal(parent, COMSIG_VIRTUAL_PET_SUMMONED, PROC_REF(on_summon))
/datum/pet_command/follow/orbie/proc/on_summon(datum/source, mob/living/friend)
SIGNAL_HANDLER
set_command_active(source, friend)
/datum/ai_behavior/pet_follow_friend/orbie
behavior_flags = AI_BEHAVIOR_REQUIRE_MOVEMENT | AI_BEHAVIOR_MOVE_AND_PERFORM | AI_BEHAVIOR_CAN_PLAN_DURING_EXECUTION