Skip to content

Commit

Permalink
🔧 Fix progress calculation in __init__.py
Browse files Browse the repository at this point in the history
  • Loading branch information
nyaoouo committed Nov 13, 2023
1 parent c1f3ce1 commit 8d61611
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ff_draw/omen/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ def play_time(self):

@property
def progress(self):
if not self.duration: return -1
return 1 - self.remaining_time / self.duration

def is_hit(self, dst: glm.vec3):
Expand Down

0 comments on commit 8d61611

Please sign in to comment.