mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-26 14:39:58 +01:00
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:
committed by
lessthanthree
parent
18f689ce43
commit
035b31b704
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user