Skip to content
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

Improvements to todo functionality #561

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

volumia
Copy link

@volumia volumia commented May 15, 2024

  1. Add functionality to edit character and weapon todo items after first calculation. This only works with newly added todo items since old todo items did not have enough information to construct an edit modal (like ascension and talents data).
    Demonstration of editing character todo with ascension
    Demonstration of editing character todo without ascension
    Demonstration of editing weapon todo
    Demonstration of editing on mobile
  2. Weapon calculator now allows the user to disable Mystic Enhancement Ore as a calculatable exp material. Prior it was enabled permanently.
  3. Todo route now informs the user when it's Sunday and all items are farmable (previously, the farmable items text would be left blank on Sundays).

New locale text has only been added for English. The keys exist on the other locale jsons, but the strings are left blank.

ehnba added 7 commits April 20, 2024 05:55
This only works with todo items that are newly added, as the old data format lacks enough information to construct an edit modal (e.g. ascension and current exp). This new data format has been marked as "formatVersion 2". The old incomplete format is implicitly "formatVersion 1", though this isn't relevant anywhere in the code as the old data format lacks a `formatVersion` property.

Some code has been moved out of _weapon.svelte and into other scripts in order to avoid repeated code between it and the new TodoEditWeaponModal.svelte.

The old weapon level material calculation algorithm (`process` in _weapon.svelte) has been replaced by a new heuristic (resourceCalculator.calculateWeaponLevelMaterials). In some cases the new algorithm wastes more EXP (by a negligible amount) but allows Mystic Enhancement Ore to be disabled depending on user choice. It was previously enabled permanently as it narrowed the material combinations `process` had to crawl through.

New displayed text has only been added for English. Other locales have empty strings currently.
(Prior the obtainable item list would simply be empty on Sundays, which might make the user think that *no* items are obtainable on Sundays, rather than the other way around)
Editing only works with character todo items that are newly added, for the same reasons preventing old weapon todo items from being edited, as mentioned in f541b03.

Some code has been moved out of _character.svelte and into other scripts in order to avoid repeated code between it and the new TodoCharacterWeaponModal.svelte.

Both replace the `resolve` function for calculating EXP materials with `resourceCalculator.calculateCharacterLevelMaterials`. This is purely for consistency with the weapon calculation code, because unlike the case with weapons, `calculateCharacterLevelMaterials` doesn't enable any functionality that wasn't possible before.
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.

1 participant