Skip to content

Enhancing Plugin#84

Open
AmVoidGuy wants to merge 6 commits into
Ishadijcks:developfrom
AmVoidGuy:enhancing
Open

Enhancing Plugin#84
AmVoidGuy wants to merge 6 commits into
Ishadijcks:developfrom
AmVoidGuy:enhancing

Conversation

@AmVoidGuy
Copy link
Copy Markdown
Contributor

Mostly just a lot of math functions brought over and remade from the cowculator and also comparing with the stuff that was in the discord as well to make sure the results made sense. The plugin itself grabs your currently equipped tool and enhancement bonus, allows you to fill in prices and your enhancing goals, and then calculates the average actions / cost / best protect level.

Copy link
Copy Markdown
Owner

@Ishadijcks Ishadijcks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR!

Enhancing is quite a math-heavy feature, making it somewhat hard to review. I'm not fully done yet, but I'm leaving some general feedback as well

  • Don't use document.getElementById() and alike. With Vue you can use form bindings to get form data reactively. https://vuejs.org/guide/essentials/forms.html. And don't make the plugin depend on the input, instead pass everything as parameters so we can test the plugin individually from the UI
  • Whenever you implement a function that is somewhat unrelated to the current feature, consider moving it to utils/
  • Don't hardcode game data if we can get it from the init_client message. Boost levels and such can all be read from their respective features.

Comment thread src/MooLite/core/enhancing/Enhancing.ts Outdated
Comment thread src/MooLite/core/enhancing/Enhancing.ts Outdated
Comment thread src/MooLite/core/enhancing/Enhancing.ts Outdated
Comment thread src/MooLite/plugins/EnhancerHelper/EnhancerHelperPlugin.ts Outdated
Comment thread src/MooLite/plugins/EnhancerHelper/EnhancerHelperPlugin.ts
Comment thread src/MooLite/plugins/EnhancerHelper/EnhancerHelperPlugin.ts
Comment thread src/MooLite/plugins/EnhancerHelper/EnhancerHelperPlugin.ts Outdated
Comment thread src/MooLite/plugins/EnhancerHelper/EnhancerHelperPlugin.ts Outdated
Comment thread src/MooLite/plugins/EnhancerHelper/EnhancerHelperPlugin.ts Outdated
Comment thread src/MooLite/plugins/EnhancerHelper/EnhancerHelperPlugin.ts
AmVoidGuy added 3 commits May 28, 2023 21:58
…dings. Added Buffs.ts so that the ConsumableDetail can now grab item buffs from the init client info. Moved some methods to Util helper classes
…d for efficiency to Skills as it can be used for any skill, not just enhancing.
@LagunaElectric
Copy link
Copy Markdown
Contributor

I love seeing this kind of commit message. Made my day 😂

image

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.

3 participants