Code Monkey home page Code Monkey logo

Comments (7)

Ni42 avatar Ni42 commented on August 11, 2024 1

Maybe just make a small PHP file, seeing as the information is pretty static, so you don't have the overhead of DB queries. I might even do a pull request once I figure that out ... :)

from pokemongoapi-php.

NicklasWallgren avatar NicklasWallgren commented on August 11, 2024

The required exp can be found in the GAME_MASTER.protobuf file and is not returned by the server.
It would have been nice with a sqlite database where we could store game-specific information.

 TemplateId: "PLAYER_LEVEL_SETTINGS"
  PlayerLevel {
    RankNum: [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
    RequiredExp: [0, 1000, 3000, 6000, 10000, 15000, 21000, 28000, 36000, 45000, 55000, 65000, 75000, 85000, 100000, 120000, 140000, 160000, 185000, 210000, 260000, 335000, 435000, 560000, 710000, 900000, 1100000, 1350000, 1650000, 2000000, 2500000, 3000000, 3750000, 4750000, 6000000, 7500000, 9500000, 12000000, 15000000, 20000000]
    CpMultiplier: [0.094, 0.166398, 0.215732, 0.25572, 0.29025, 0.321088, 0.349213, 0.375236, 0.399567, 0.4225, 0.443108, 0.462798, 0.481685, 0.499858, 0.517394, 0.534354, 0.550793, 0.566755, 0.582279, 0.5974, 0.612157, 0.626567, 0.640653, 0.654436, 0.667934, 0.681165, 0.694144, 0.706884, 0.719399, 0.7317, 0.737769, 0.743789, 0.749761, 0.755686, 0.761564, 0.767397, 0.773187, 0.778933, 0.784637, 0.7903]
    MaxEggPlayerLevel: 20
    MaxEncounterPlayerLevel: 30
  }

from pokemongoapi-php.

NicklasWallgren avatar NicklasWallgren commented on August 11, 2024

I made a quick and dirty port of https://github.com/Grover-c13/PokeGOAPI-Java/blob/Development/library/src/main/java/com/pokegoapi/api/pokemon/PokemonMetaRegistry.java

It will have to do for now, doesn't include required exp thought...

from pokemongoapi-php.

Ni42 avatar Ni42 commented on August 11, 2024

But that looks fine for now? ;)

from pokemongoapi-php.

NicklasWallgren avatar NicklasWallgren commented on August 11, 2024

It will suffice for now :D #hides

from pokemongoapi-php.

Ni42 avatar Ni42 commented on August 11, 2024

Well, it doesn't solve the XP thingy, so might still try and do that ;)

from pokemongoapi-php.

NicklasWallgren avatar NicklasWallgren commented on August 11, 2024

Resolved by Ni42.

from pokemongoapi-php.

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.