diff --git a/worlds/AutoWorld.py b/worlds/AutoWorld.py index b282c7deb8b..822b8a76893 100644 --- a/worlds/AutoWorld.py +++ b/worlds/AutoWorld.py @@ -468,6 +468,10 @@ def get_entrance(self, entrance_name: str) -> "Entrance": def get_region(self, region_name: str) -> "Region": return self.multiworld.get_region(region_name, self.player) + @property + def player_name(self) -> str: + return self.multiworld.get_player_name(self.player) + @classmethod def get_data_package_data(cls) -> "GamesPackage": sorted_item_name_groups = { diff --git a/worlds/overcooked2/__init__.py b/worlds/overcooked2/__init__.py index da0e1890894..66652c631ea 100644 --- a/worlds/overcooked2/__init__.py +++ b/worlds/overcooked2/__init__.py @@ -219,8 +219,6 @@ def get_priority_locations(self) -> List[int]: # Autoworld Hooks def generate_early(self): - self.player_name = self.multiworld.player_name[self.player] - # 0.0 to 1.0 where 1.0 is World Record self.star_threshold_scale = self.options.star_threshold_scale / 100.0