We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2abb18c commit fdf7315Copy full SHA for fdf7315
app.py
@@ -82,8 +82,10 @@ def add_xp(self, amount: float) -> None: # add XP
82
1 # reset multiplier if amount is not the same as last item clicked
83
)
84
self.last_item_clicked = amount # set last item clicked to amount
85
- self.xp += amount * self.multiplier # add XP by amount
86
- self.total_xp += amount * self.multiplier # add total XP by amount
+ self.xp += amount * self.multiplier * self.time_multiplier # add XP by amount
+ self.total_xp += (
87
+ amount * self.multiplier * self.time_multiplier
88
+ ) # add total XP by amount
89
self.check_level_up() # check if user has leveled up
90
91
def check_level_up(self) -> None: # check if user has leveled up
0 commit comments