Solumin / YGO-FM-FusionCalc

A Fusion calculator for Yu-Gi-Oh! Forbidden Memories
20 stars 17 forks source link

Search for Fusions by Attack/Defense #3

Open Solumin opened 8 years ago

Solumin commented 8 years ago

"The game is built around you very quickly figuring out which combinations make the beefy 2100 ATK immediately." -- Unknown Quantity

Being able to search for fusions over a range would be very useful. Since the data set is more-or-less static, this could be a precompiled list, but that defeats the purpose of a database.

It would also be cool to show the "best bang for your buck" fusions, or the ones that give the best result for really low-powered inputs. Being able to summon a 2300-power monster with only two 400s would be amazing.

CathodeRaymond commented 8 years ago

A way to do that would be to allow the user to add cards and cache his/her hand in localStorage (via a button that generates at the same time and in the same way the search results generate now, it would take some added data attributes in the HTML), then run a function that checks combinations of each of the user's cards with one another and highlights matches that result in, for example, +1000 or +1500 to one of the stats.

Things cached in local storage are attached to that domain and persist until cleared, so the user would not have to re enter his/her hand because he/she closed the browser etc.