Skip to content

Commit

Permalink
Use integer division in max_pp
Browse files Browse the repository at this point in the history
  • Loading branch information
hsahovic committed Jun 18, 2023
1 parent 319b68c commit 1dff9c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/poke_env/environment/move.py
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ def max_pp(self) -> int:
:return: The move's max pp.
:rtype: int
"""
return self.entry["pp"] * 8 / 5
return self.entry["pp"] * 8 // 5

@property
def n_hit(self) -> Tuple:
Expand Down

0 comments on commit 1dff9c8

Please sign in to comment.