mirror of
https://github.com/ldericher/fftcgtool
synced 2025-01-15 15:02:59 +00:00
Cleanup
This commit is contained in:
parent
a78a3ad04a
commit
99adde52bd
2 changed files with 7 additions and 4 deletions
|
@ -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:
|
||||
|
|
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue