hppeng-wynn / hppeng-wynn.github.io

GNU General Public License v3.0
17 stars 32 forks source link

API mode? #256

Open jeffshrager opened 1 year ago

jeffshrager commented 1 year ago

Can you give guidance on how to run this as an API; That is, I don't want the UI, just the computations so that I pass in the various arguments and get the scores back. Thanks!

hppeng-wynn commented 1 year ago

Unfortunately this is currently not possible due to the way wynnbuilder is constructed. The most complicated part is really just calculateSpellDamage, in damage_calc.js (if you can manage to pull out the relevant bits from the other files... I'm working on a C++ port which would be much more API-izable but that's a long way off in the future...

If you want to talk more about this feel free to shoot me a message on Discord or in the wynnbuilder dev server!

jeffshrager commented 1 year ago

Thanks, that would be great, but really I only need an API for getting the stats of crafted items given ingredient arrays. Would that be simpler (or perhaps even possible now)?

jeffshrager commented 1 year ago

I hacked a version for myself. You probably won't care (esp. since it's in Lisp): https://github.com/jeffshrager/wynnrun

hppeng-wynn commented 1 year ago

nice! That's really cool 😁

I've been working on some version in python or c/c++ but never really got around to fully implementing it