Giter VIP home page Giter VIP logo

Comments (5)

friscoMad avatar friscoMad commented on July 18, 2024

It is not that easy unless we create a new variable configuration, as there is no easy way to know if the poke or instance has the encounter activated.
To avoid this all pokes without encounter info are shown right now.
The best solution I can think of is using the same configuration as encounter in RM and use that info in ARU to correctly filter pokes.

from worldopole.

pki0 avatar pki0 commented on July 18, 2024

Hmm what about:

Slider at minIV = 80%:

Mysql:
SELECT * FROM pokemon WHERE ... HAVING IV > minIV

Slider at 0%

Mysql:
SELECT * FROM pokemon WHERE ... HAVING IV > minIV OR NULL

PHP:
if (!data->iv){
iv = 0
}

This should display failed/non encounters at minIV = 0

from worldopole.

pki0 avatar pki0 commented on July 18, 2024

And with changing this we can only ask live pokemon in the rectangle we have zoomed the map. Should work.

from worldopole.

friscoMad avatar friscoMad commented on July 18, 2024

The problem with that solution is that changing the IV bar for any poke specie that it is not encountered will hide everything, and we will need to update the default minIV to 0.
Another option is doing a query to check if there is any poke with IV and use that as a switch to hide the IV select bar and change the request to aru to use one query of the other.

from worldopole.

friscoMad avatar friscoMad commented on July 18, 2024

After checking the source for another thing I did found that there is already such test (only filter by IV where there are IVs stored) so there is no problem in doing that a proper query where null = 0.

Also I think it will be great that the same check could be used to hide the filter bar in the frontend when there are not IV stored.

from worldopole.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.