diff --git a/fftcg/card.py b/fftcg/card.py index e2ce0dd..a38abf9 100644 --- a/fftcg/card.py +++ b/fftcg/card.py @@ -18,7 +18,8 @@ class Card: self.__opus = "0" self.__serial = "000" self.__rarity = "X" - self.__elements = None + self.__elements = [] + self.__name = None self.__text = None else: diff --git a/fftcg/grid.py b/fftcg/grid.py index 9e660a6..e8cc178 100644 --- a/fftcg/grid.py +++ b/fftcg/grid.py @@ -1,10 +1,12 @@ from PIL import Image +_Point = tuple[int, int] -class Grid(tuple[int, int]): - def __mul__(self, other): + +class Grid(_Point): + def __mul__(self, other: _Point) -> _Point: other = Grid(other) - return Grid((self.x * other.x, self.y * other.y)) + return self.x * other.x, self.y * other.y @property def x(self):