1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-27 13:34:28 +00:00
royalnet/royalpack/types/brawlhallatier.py

24 lines
536 B
Python
Raw Normal View History

2020-03-19 15:26:11 +00:00
import enum
class BrawlhallaTier(enum.Enum):
ZERO = 0
I = 1
II = 2
III = 3
IV = 4
V = 5
def __str__(self):
return str(self.value)
def __repr__(self):
return f"{self.__class__.__qualname__}.{self.name}"
def __gt__(self, other):
if other is None:
return True
if not isinstance(other, self.__class__):
raise TypeError(f"Can't compare {self.__class__.__qualname__} with {other.__class__.__qualname__}")
return self.value > other.value