Skip to content

Feature/mutations command#65

Open
KoalaMauve wants to merge 8 commits intoEliteFarmers:masterfrom
KoalaMauve:feature/mutations-command
Open

Feature/mutations command#65
KoalaMauve wants to merge 8 commits intoEliteFarmers:masterfrom
KoalaMauve:feature/mutations-command

Conversation

@KoalaMauve
Copy link

Purpose
Helps players maximize coins per copper when purchasing mutations.

Usefull to max-out composter for the cheapest price

Current behavior

Uses Insta-Buy data by default
Can select between Insta-buy and Buy-order
Recalculate rates & ranking on select

Remove buttons & select after 60s / 30s since last activity.

Features

Supports Rose Dragon buff and Synthesis Chip buff (as optional parameters)

For crops that are not buyable on the Bazaar (currently only Jerryflower), displays N/A and treats the ratio as infinite

⚠️ Since farming-weight@14.0 isnt available for some reason (cannot update even manually), i've create custom types and hard-set some datas.

SC :
a
b
c
d

@ptlthg
Copy link
Collaborator

ptlthg commented Mar 12, 2026

Hi, sorry it's taken so long for me to look at this!

I generally like this idea, I do have a couple requests though:

  1. Please use EliteContainer rather than EliteEmbed
    EliteEmbed is the older Rich Embeds, while EliteContainer is the new Components v2 system from Discord. It requires a bit of code change to use, but if you look at existing uses of it in the code it shouldn't be that bad I hope. I'm trying to slowly migrate older embed based commands to the new components where I can, so I don't want to introduce a new command that uses the older system.

  2. You can use farming-weight@0.14.0 now, I didn't actually have that version published yet as I wanted to add more mutation helpers to it, but I released it now.
    You can import GREENHOUSE_MUTATIONS from farming-weight now and it has the mutations with an analysis property that has the values you need.

Sorry again about the delay

@KoalaMauve
Copy link
Author

Hi, as requested, I've replaced all EliteEmbed usages with EliteContainer.

From my testing, I haven't noticed any regressions so far, but I might have missed something.

I've also replaced my hard-coded list with the mutation list from farming-weight@0.14.0.

I also did some optimizations and reworked a some functions to make them more understandable and logical.

By the way, thanks for releasing the 0.14.0 earlier than expected, that helped a lot :)

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