Add tag to card model and creator and retain stock cross edits

This commit is contained in:
2017-10-17 18:51:38 +02:00
parent dcd89b391c
commit f43f7cefcc
3 changed files with 13 additions and 7 deletions
+3 -2
View File
@@ -16,14 +16,15 @@ class Card(Model):
description = ""
steps = []
effects = []
cost = "free action"
cost = ""
power = None
cp = None
gp = None#gold
flags = []
notes = ""#not shown, but used to keep track of things
copies_owned = 1
tag = ""
def has_flag(self, flag):
return flag.lower() in map(lambda x: x.lower(), self.flags)