Feat: Tribe equality on name and add tests

This commit is contained in:
2022-12-20 10:37:55 +01:00
parent 723092c38f
commit b4df4d6c09
2 changed files with 28 additions and 1 deletions

View File

@@ -23,5 +23,5 @@ class Tribe:
def __eq__(self, other: object) -> bool:
if isinstance(other, Tribe):
return self.name == other.name and self.level == other.level
return self.name == other.name
return False