Skip to content

Increments displays wrong number on GUI #2

Description

@tferreira

Hi,

I have a weird behaviour the first time I add any amount of xp.

print(xp.get_data()['player_xp'].xp_current)  // returns 0
xp.add_xp_to_id('player_xp', 100)
print(xp.get_data()['player_xp'].xp_current)  // returns 100 but displays 93 on GUI

print(xp.get_data()['player_xp'].xp_current)  //  returns 100
xp.add_xp_to_id('player_xp', 100)
print(xp.get_data()['player_xp'].xp_current)  // returns 200 but displays 193 on GUI

Do you have an idea of what can be the problem ?

Thank you.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions