Add __str__ and TODO for better "seeing"

pull/168/head
bobloy 4 years ago
parent 3b50785c5b
commit 9bdaf73944

@ -72,6 +72,9 @@ class Role(WolfListener):
self.blocked = False self.blocked = False
self.properties = {} # Extra data for other roles (i.e. arsonist) self.properties = {} # Extra data for other roles (i.e. arsonist)
def __str__(self):
return self.__repr__()
def __repr__(self): def __repr__(self):
return f"{self.__class__.__name__}({self.player.__repr__()})" return f"{self.__class__.__name__}({self.player.__repr__()})"
@ -86,7 +89,7 @@ class Role(WolfListener):
log.debug(f"Assigned {self} to {player}") log.debug(f"Assigned {self} to {player}")
async def get_alignment(self, source=None): async def get_alignment(self, source=None): # TODO: Rework to be "strength" tiers
""" """
Interaction for powerful access of alignment Interaction for powerful access of alignment
(Village, Werewolf, Other) (Village, Werewolf, Other)

Loading…
Cancel
Save