Skip to content

Rate selected default phase pets for pest farming#686

Open
brettt89 wants to merge 5 commits into
EliteFarmers:mainfrom
brettt89:default-spawn-phase-pet
Open

Rate selected default phase pets for pest farming#686
brettt89 wants to merge 5 commits into
EliteFarmers:mainfrom
brettt89:default-spawn-phase-pet

Conversation

@brettt89

@brettt89 brettt89 commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

Update best pet selection to use Rates calculation to determine best pet for each phase.

Changes:

  • Added calculator function for sorting Pets by profit for a phase
  • Updated pest-farming-context to store pestId for each phase with phase armor
  • Updated pest list to use sorting function from calculator (instead of duplicating the sorting)
  • Added skip flag to refreshPestPlayer to reduce duplicate calls to getRateSelectedDefaultPhaseLoadouts during syncDefaultPhaseLoadouts

@brettt89 brettt89 force-pushed the default-spawn-phase-pet branch from 880b691 to c820fd6 Compare June 30, 2026 02:48
@ptlthg

ptlthg commented Jun 30, 2026

Copy link
Copy Markdown
Collaborator

Good idea, but I don't want a hardcoded priority like this to exist here. We have an existing (albeit not amazing) way to pick the most optimal spawn set in the code elsewhere based on the rate impact, so I think that same concept should be applied to what pet is selected by default as well so we always pick the pet that actually gives the most coins when used here.

Right now this hardcoded list would need to be adjusted in the future as the pets get changed by Hypixel, and currently misses out on the nuance of different pet rarities, levels, pet items, and etc

@brettt89

brettt89 commented Jul 1, 2026

Copy link
Copy Markdown
Contributor Author

Good idea, but I don't want a hardcoded priority like this to exist here. We have an existing (albeit not amazing) way to pick the most optimal spawn set in the code elsewhere based on the rate impact, so I think that same concept should be applied to what pet is selected by default as well so we always pick the pet that actually gives the most coins when used here.

Right now this hardcoded list would need to be adjusted in the future as the pets get changed by Hypixel, and currently misses out on the nuance of different pet rarities, levels, pet items, and etc

Thats fair. I thought maybe a small improvement until the rate stuff could be implemented. I have been trying to get a "Suggested by profit" function added. I have the calculation using existing Calculator and sorting. I'm just having issues updating the pet in a way thats saved. Still working through how I can get the pest-farming-context and pestfarmingplayer working together in a nice way. Will keep working on it and see where I get

@brettt89

brettt89 commented Jul 1, 2026

Copy link
Copy Markdown
Contributor Author

Pest farming pets are now picked using Profit calculations by default with ability for users to change to whatever pet they want.

Examples below show that Hedgehog was picked as it is calculated to make more money for farming/killing compared to the Rose Dragon pet.

Farming Phase
Screenshot 2026-07-01 224239
Spawning Phase
Screenshot 2026-07-01 224258
Killing Phase
Screenshot 2026-07-01 224315

@brettt89 brettt89 changed the title Change default spawn phase pet for pest farming Rate selected default phase pets for pest farming Jul 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants