Skip to content

Increments displays wrong number on GUI #2

@tferreira

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.

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