mai2: implement event reader for pre-dx games

This commit is contained in:
2023-05-05 00:24:47 -04:00
parent 989c080657
commit 8b9771b5af
3 changed files with 149 additions and 12 deletions

View File

@ -82,5 +82,5 @@ class Mai2Constants:
@classmethod
def game_ver_to_string(cls, ver: int):
if ver >= 1000:
return cls.VERSION_STRING_OLD[ver / 1000]
return cls.VERSION_STRING_OLD[ver - 1000]
return cls.VERSION_STRING[ver]