Code Monkey home page Code Monkey logo

Comments (5)

jabbink avatar jabbink commented on May 30, 2024 6

Also, the official app also fails to properly calculate percentages (should render a circle of > 180 degrees) 😂

image

from pokemongobot.

jabbink avatar jabbink commented on May 30, 2024

Yeah, I think it's an error in either the protobufs or the Java API as player.stats.prevLevelXp literally contains the XP needed for the previous level, not the current one (and can't quickly find one that contains the starting XP for the current level).

Dirty fix would be to do something like

    val nextXP = player.stats.nextLevelXp / 2
    val curLevelXP = player.stats.experience - player.stats.prevLevelXp - player.stats.nextLevelXp / 2

from pokemongobot.

quentin23soleil avatar quentin23soleil commented on May 30, 2024

Oh, yep makes sense

On Thu, 21 Jul 2016 at 16:29 Jasper Abbink [email protected] wrote:

Yeah, I think it's an error in either the protobufs or the Java API as
player.stats.prevLevelXp literally contains the XP needed for the previous
level, not the current one (and can't quickly find one that contains the
starting XP for the current level).

Dirty fix would be to do something like

val nextXP = player.stats.nextLevelXp / 2
val curLevelXP = player.stats.experience - player.stats.prevLevelXp - player.stats.nextLevelXp / 2


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#22 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AA_VY4efeQllwBInfXQShbIgS0Oou9rFks5qX4IwgaJpZM4JR2US
.

Quentin Dommerc
Android software craftsman
kentin.me

from pokemongobot.

CptJackieSparrow avatar CptJackieSparrow commented on May 30, 2024

lol, ^this

from pokemongobot.

falko100 avatar falko100 commented on May 30, 2024

Also, the official app also fails to properly calculate percentages (should render a circle of > 180 degrees) 😂

This seems like a good enough reason to make you bot miscalculate too!

from pokemongobot.

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.