Skip to content

Commit

Permalink
Merge pull request #13 from DRincs-Productions/12-fix-convert_to_intn…
Browse files Browse the repository at this point in the history
…umber-int-|-float-for-new-versions-of-renpy

Update utility.rpy
  • Loading branch information
BlackRam-oss committed Apr 15, 2024
2 parents d85d5d6 + 5d60299 commit ea9a478
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion game/renpy_utility_tool/utility.rpy
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ init -999 python:
def isGreaterThan(a= 0, b= 0) -> bool:
return compare(a, b) > 0

def convert_to_int(number: int | float) -> int:
def convert_to_int(number: float) -> int:
return int(round(number, 0))

def all_characters():
Expand Down

0 comments on commit ea9a478

Please sign in to comment.