-
-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add chocolate factory helper #683
Add chocolate factory helper #683
Conversation
src/main/java/de/hysky/skyblocker/mixin/HandledScreenMixin.java
Outdated
Show resolved
Hide resolved
Make sure to rebase this, it won't work on 1.20.6 sadly |
d357fd3
to
8dfbf43
Compare
Decided to finalize this draft and make the egg helper separately later on, as it's just a game of waiting until next spring and then finding all egg locations. |
Looks like it works pretty well, you just need to do your todos! |
I forgot about them, ehe |
d3fd175
to
19f510a
Compare
src/main/java/de/hysky/skyblocker/skyblock/chocolatefactory/EggFinder.java
Show resolved
Hide resolved
src/main/java/de/hysky/skyblocker/skyblock/chocolatefactory/EggFinder.java
Outdated
Show resolved
Hide resolved
e656489
to
15e53e0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed the logic and enhanced few things
also nitpicking, but the proper way to say "getConcattedLore" is "getConcatenatedLore"
(yes i know engrish eeeh)
Here's a patch version to make all changes at once that you can apply by just doing
git apply 0001-Fix-few-things.patch
src/main/java/de/hysky/skyblocker/skyblock/chocolatefactory/ChocolateFactorySolver.java
Show resolved
Hide resolved
src/main/java/de/hysky/skyblocker/skyblock/chocolatefactory/ChocolateFactorySolver.java
Outdated
Show resolved
Hide resolved
src/main/java/de/hysky/skyblocker/skyblock/chocolatefactory/ChocolateFactorySolver.java
Outdated
Show resolved
Hide resolved
src/main/java/de/hysky/skyblocker/skyblock/chocolatefactory/ChocolateFactorySolver.java
Outdated
Show resolved
Hide resolved
src/main/java/de/hysky/skyblocker/skyblock/chocolatefactory/ChocolateFactorySolver.java
Outdated
Show resolved
Hide resolved
src/main/java/de/hysky/skyblocker/skyblock/chocolatefactory/ChocolateFactorySolver.java
Outdated
Show resolved
Hide resolved
6c1d259
to
837c176
Compare
9c9abf6
to
25b0561
Compare
src/main/java/de/hysky/skyblocker/skyblock/item/tooltip/ItemTooltip.java
Show resolved
Hide resolved
src/main/java/de/hysky/skyblocker/skyblock/chocolatefactory/EggFinder.java
Show resolved
Hide resolved
Not necessarily related to the chocolate factory, but it was also added by me so should be fine
…oid merge conflicts
b3d4203
to
7601959
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lgtm
import java.util.concurrent.atomic.AtomicReference; | ||
|
||
public class SkyblockTime { | ||
private static final long SKYBLOCK_POCH = 1560275700000L; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't think "poch" is a word, should be "epoch".
Highlights the best pick based on the price and CPS gain.
Currently, it tries to recalculate every second (when the screen updates due to chocolate gain). I tried to make it update only on click inside of the mixin but doesn't seem to work and I didn't bother to debug as I couldn't really understand the solver implementation. The performance loss is very negligible, and you wouldn't really care about performance in the inventory, but it still bugs me. So lmk if you have a solution.
Also sorry about the optionals, I recently started learning rust and they feel more natural than returning -1. As for the sorted map, I first tried to add the CPS increase factor to the item tooltip but that was a whole another thing I had to read and figure out, so I just left it as is.