mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
remove some instances of no longer existing __unicode__
This commit is contained in:
@@ -803,10 +803,10 @@ class Region(object):
|
|||||||
|
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def __str__(self):
|
def __repr__(self):
|
||||||
return str(self.__unicode__())
|
return self.__str__()
|
||||||
|
|
||||||
def __unicode__(self):
|
def __str__(self):
|
||||||
return self.world.get_name_string_for_object(self) if self.world else f'{self.name} (Player {self.player})'
|
return self.world.get_name_string_for_object(self) if self.world else f'{self.name} (Player {self.player})'
|
||||||
|
|
||||||
|
|
||||||
@@ -839,10 +839,10 @@ class Entrance(object):
|
|||||||
self.vanilla = vanilla
|
self.vanilla = vanilla
|
||||||
region.entrances.append(self)
|
region.entrances.append(self)
|
||||||
|
|
||||||
def __str__(self):
|
def __repr__(self):
|
||||||
return str(self.__unicode__())
|
return self.__str__()
|
||||||
|
|
||||||
def __unicode__(self):
|
def __str__(self):
|
||||||
world = self.parent_region.world if self.parent_region else None
|
world = self.parent_region.world if self.parent_region else None
|
||||||
return world.get_name_string_for_object(self) if world else f'{self.name} (Player {self.player})'
|
return world.get_name_string_for_object(self) if world else f'{self.name} (Player {self.player})'
|
||||||
|
|
||||||
@@ -877,10 +877,10 @@ class Dungeon(object):
|
|||||||
def is_dungeon_item(self, item):
|
def is_dungeon_item(self, item):
|
||||||
return item.player == self.player and item.name in [dungeon_item.name for dungeon_item in self.all_items]
|
return item.player == self.player and item.name in [dungeon_item.name for dungeon_item in self.all_items]
|
||||||
|
|
||||||
def __str__(self):
|
def __repr__(self):
|
||||||
return str(self.__unicode__())
|
return self.__str__()
|
||||||
|
|
||||||
def __unicode__(self):
|
def __str__(self):
|
||||||
return self.world.get_name_string_for_object(self) if self.world else f'{self.name} (Player {self.player})'
|
return self.world.get_name_string_for_object(self) if self.world else f'{self.name} (Player {self.player})'
|
||||||
|
|
||||||
class Boss(object):
|
class Boss(object):
|
||||||
@@ -922,10 +922,10 @@ class Location(object):
|
|||||||
return True
|
return True
|
||||||
return False
|
return False
|
||||||
|
|
||||||
def __str__(self):
|
def __repr__(self):
|
||||||
return str(self.__unicode__())
|
return self.__str__()
|
||||||
|
|
||||||
def __unicode__(self):
|
def __str__(self):
|
||||||
world = self.parent_region.world if self.parent_region and self.parent_region.world else None
|
world = self.parent_region.world if self.parent_region and self.parent_region.world else None
|
||||||
return world.get_name_string_for_object(self) if world else f'{self.name} (Player {self.player})'
|
return world.get_name_string_for_object(self) if world else f'{self.name} (Player {self.player})'
|
||||||
|
|
||||||
@@ -969,10 +969,10 @@ class Item(object):
|
|||||||
def compass(self) -> bool:
|
def compass(self) -> bool:
|
||||||
return self.type == 'Compass'
|
return self.type == 'Compass'
|
||||||
|
|
||||||
def __str__(self):
|
def __repr__(self):
|
||||||
return str(self.__unicode__())
|
return self.__str__()
|
||||||
|
|
||||||
def __unicode__(self):
|
def __str__(self):
|
||||||
return self.world.get_name_string_for_object(self) if self.world else f'{self.name} (Player {self.player})'
|
return self.world.get_name_string_for_object(self) if self.world else f'{self.name} (Player {self.player})'
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user