Add Priority-Based Pet Hatching and Feeding Strategy#50
Open
douglasrizzo wants to merge 5 commits intobumbleshoot:mainfrom
Open
Add Priority-Based Pet Hatching and Feeding Strategy#50douglasrizzo wants to merge 5 commits intobumbleshoot:mainfrom
douglasrizzo wants to merge 5 commits intobumbleshoot:mainfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR introduces a new "priority" mode for automatic pet hatching and feeding, alongside the existing "conservative" mode. The priority mode is designed for players who want to actively progress their pet collection without waiting for strict resource requirements to be met.
This PR intends to address the suggestion described in #48.
New Features
Priority Mode (
HATCH_FEED_MODE = "priority")Hatching Priority
Hatches pets whenever eggs and potions are available (no strict requirements), in this order:
Within each group, sorted alphabetically by species.
Feeding Priority
Feeds pets to turn them into mounts, in this order:
Within each group, pets closest to becoming mounts are fed first.
Efficiency rules:
Shared Utility Functions (in
global.gs)Extracted common code into reusable functions:
getPetLists()- Returns categorized pet lists from content datagetBasicColors()- Returns basic hatching potion colorsgetOwnedPets()- Returns owned non-special petsgetOwnedMounts()- Returns owned non-special mountsgetUsableFood()- Returns usable food based on settingsmakeReadable()- Converts CamelCase to readable formathatchPet()- API call to hatch a pet with loggingfeedPet()- API call to feed a pet with logginggetFavoriteFoods()- Returns favorite foods for a colorFiles Changed
automations/hatchFeedPetsPriority.gsautomations/hatchFeedPets.gsglobal.gssetup.gsHATCH_FEED_MODEconfiguration option