mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-21 12:08:55 +01:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user