pet emotes, pet bonus adjustment (#87126)

## About The Pull Request
- pet bonus element now works by getting an emote fed into it.
- all pets who had pet bonus emotes now have it as a proper emote they
can use if controlled by a player.
## Why It's Good For The Game
- standardises pet bonus so it's easier to give more behaviors to
petting, like sounds :3
- allows basic mobs controlled by players to use the emote at will,
which will allow them to react to situations more with emotes.
## Changelog
🆑 grungussuss
add: a lot of basic mobs and pets got new emotes
refactor: emotes triggered by petting pets work differently now, please
report any oddities with these behaviors.
sound: new emotes for basic mobs got sounds
/🆑
This commit is contained in:
grungussuss
2024-11-16 00:30:00 -08:00
committed by lessthanthree
parent 18f689ce43
commit 035b31b704
23 changed files with 209 additions and 27 deletions
@@ -41,6 +41,16 @@
/datum/pet_command/perform_trick_sequence,
)
/datum/emote/mothroach
mob_type_allowed_typecache = /mob/living/basic/mothroach
mob_type_blacklist_typecache = list()
/datum/emote/mothroach/squeaks
key = "squeaks"
key_third_person = "squeaks"
message = "squeaks!"
emote_type = EMOTE_VISIBLE | EMOTE_AUDIBLE
/mob/living/basic/mothroach/Initialize(mapload)
. = ..()
var/static/list/food_types = list(/obj/item/clothing)
@@ -48,7 +58,7 @@
AddComponent(/datum/component/obeys_commands, pet_commands)
ai_controller.set_blackboard_key(BB_BASIC_FOODS, typecacheof(food_types))
AddElement(/datum/element/ai_retaliate)
AddElement(/datum/element/pet_bonus, "squeaks happily!")
AddElement(/datum/element/pet_bonus, "squeak")
add_verb(src, /mob/living/proc/toggle_resting)
ADD_TRAIT(src, TRAIT_VENTCRAWLER_ALWAYS, INNATE_TRAIT)