Skip to content

Commit fdf7315

Browse files
committed
Add time multiplier for XP
1 parent 2abb18c commit fdf7315

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

app.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,10 @@ def add_xp(self, amount: float) -> None: # add XP
8282
1 # reset multiplier if amount is not the same as last item clicked
8383
)
8484
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
85+
self.xp += amount * self.multiplier * self.time_multiplier # add XP by amount
86+
self.total_xp += (
87+
amount * self.multiplier * self.time_multiplier
88+
) # add total XP by amount
8789
self.check_level_up() # check if user has leveled up
8890

8991
def check_level_up(self) -> None: # check if user has leveled up

0 commit comments

Comments
 (0)