1
0
Fork 0
mirror of https://github.com/ldericher/fftcgtool synced 2025-01-15 15:02:59 +00:00
This commit is contained in:
Jörn-Michael Miehe 2021-08-10 03:26:35 +02:00
parent a78a3ad04a
commit 99adde52bd
2 changed files with 7 additions and 4 deletions

View file

@ -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:

View file

@ -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):