mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-30 02:52:30 +00:00
## About The Pull Request this PR improves the UX of pet commands a bit. i decided to expand on their radial menu. You can now hold shift and hover over your pet to display a menu of commands which you can choose from. alternatively, you can still type out commands in chat https://github.com/user-attachments/assets/9da7f7ea-58a3-4fd6-b040-45cc05cda51d ## Why It's Good For The Game makes pet commands easier to give out when you're managing more than 1 pet. also fixes the fishing command not working. ## Changelog 🆑 qol: holding shift and hovering over your pet will display a list of commands you can click from fix: fixes the fishing pet command not working /🆑
17 lines
663 B
Plaintext
17 lines
663 B
Plaintext
/datum/pet_command/attack/slime
|
|
speech_commands = list("attack", "sic", "kill", "eat", "feed")
|
|
command_feedback = "blorbles"
|
|
pointed_reaction = "and blorbles"
|
|
refuse_reaction = "jiggles sadly"
|
|
|
|
var/hunting_behavior = /datum/ai_behavior/hunt_target/interact_with_target/slime
|
|
|
|
/datum/pet_command/attack/slime/execute_action(datum/ai_controller/controller)
|
|
|
|
var/mob/living/basic/slime/slime_pawn = controller.pawn
|
|
if(isslime(slime_pawn) && slime_pawn.can_feed_on(controller.blackboard[BB_CURRENT_PET_TARGET], check_friendship = TRUE))
|
|
controller.queue_behavior(hunting_behavior, BB_CURRENT_PET_TARGET)
|
|
return SUBTREE_RETURN_FINISH_PLANNING
|
|
|
|
return ..()
|