EnchantmentOptimizer#6076
Conversation
|
The command I am using to test this is: At the moment there seems to be a discrepancy between my algorithm and the website one. Work is needed to find out why, relevant sources for the site impl are:
|
|
At this point I believe it works as intended. |
|
I'm not sure if the command should accept an item at all, and instead just take pairs of enchant id and level. |
I think it works, but can be improved for sure :)
NOTE: there is still a discrepancy in the calculation we make, need to figure out why.
`removeExpensiveCandidates` should iterate on sorted keys for proper filtering.
"Explode" the item name to show applied enchants and named item for better context.
750798f to
286269a
Compare
Type of change
Description
Adds a command to calculate the optimal enchant order of an item given a list of enchant-level pairs.
Roughly based on https://github.com/iamcal/enchant-order for the calculation logic.
I think it works, but can be improved for sure :)
Related issues
None.
How Has This Been Tested?
Very rough testing, need more eyes on this.
Checklist: