-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
edf0e2f
commit 3ed3e55
Showing
1 changed file
with
4 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |