def get_achievements(self, name):
        """Get achievements for a player.

        Must match on name, not index, since order is not always the same.
        """
        postgame = self.get_postgame()
        if not postgame:
            return None
        for achievements in postgame.achievements:
            # achievements player name can be shorter
            if name.startswith(achievements.player_name.replace(b'\x00', b'')):
                return achievements
        return None
Get achievements for a player.

        Must match on name, not index, since order is not always the same.