added card types
This commit is contained in:
17
Game_Client/Classes/System/Objects/Cards/TrapCard.py
Normal file
17
Game_Client/Classes/System/Objects/Cards/TrapCard.py
Normal file
@ -0,0 +1,17 @@
|
||||
|
||||
|
||||
from Game_Client.Classes.System.Objects.Cards.Card import Card
|
||||
import json
|
||||
|
||||
class SpellCard(Card):
|
||||
__description:str
|
||||
|
||||
def __init__(self, asset:str):
|
||||
|
||||
data = json.load(open(asset))
|
||||
|
||||
super.__init__(data["name"], data["image"])
|
||||
self.__description = data["description"]
|
||||
|
||||
def getDescription(self):
|
||||
return self.__description
|
Reference in New Issue
Block a user