Skip to content

Commit

Permalink
Last ACL fix attempt
Browse files Browse the repository at this point in the history
  • Loading branch information
mohamedamrnady committed Jan 5, 2024
1 parent edf0e2f commit 3ed3e55
Showing 1 changed file with 4 additions and 17 deletions.
21 changes: 4 additions & 17 deletions check_acl_id.py
Original file line number Diff line number Diff line change
@@ -1,20 +1,7 @@
def checkACLID(teamID: str):
hexValue = hex(int(teamID))[2:]
if int(teamID) > 16384 and int(teamID) <= 65536:
if hexValue.startswith("4") or hexValue.startswith(
"5"
): # from ACL eFootball to ACL PES
return str(
int(teamID) + 65536 - 16384 # + PES 21 ACL OFFSET - eF ACL OFFSET
)
else:
return teamID
elif int(teamID) > 65536:
if hexValue.startswith("10") or hexValue.startswith(
"11"
): # from Asian Cup to Real ID (65536 is a coincidence)
return str(int(teamID) - 65536)
else:
return teamID
if int(teamID) > 16384 and int(teamID) <= 65536: # from ACL eFootball to ACL PES
return str(int(teamID) + 65536 - 16384) # + PES 21 ACL OFFSET - eF ACL OFFSET
elif int(teamID) > 65536: # from Asian Cup to Real ID (65536 is a coincidence)
return str(int(teamID) - 65536)
else:
return teamID

0 comments on commit 3ed3e55

Please sign in to comment.