Skip to content

Commit

Permalink
Sibling name shifted 4 bytes (#272)
Browse files Browse the repository at this point in the history
  • Loading branch information
xshobux authored Nov 14, 2024
1 parent a9e119a commit be34ead
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/hooking/player.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def __init__(self, address, debug=False):

self.ja_player_name = GetPlayer.writer.read_string(self.address + 24)
self.en_player_name = self.__get_en_player_name(name=self.ja_player_name)
self.ja_sibling_name = GetPlayer.writer.read_string(self.address + 96)
self.ja_sibling_name = GetPlayer.writer.read_string(self.address + 100)
self.en_sibling_name = self.__get_en_player_name(name=self.ja_sibling_name)
self.sibling_relationship = self.__determine_sibling_relationship()

Expand All @@ -49,7 +49,7 @@ def __init__(self, address, debug=False):


def __determine_sibling_relationship(self):
check_byte = GetPlayer.writer.read_bytes(self.address + 96 + 19, size=1)
check_byte = GetPlayer.writer.read_bytes(self.address + 100 + 19, size=1)
if check_byte == b"\x01":
return "older_brother"
if check_byte == b"\x02":
Expand Down

0 comments on commit be34ead

Please sign in to comment.