add getter

added getter function for field_cost.get_colors()

also added code to add a "back to top" link to each card
This commit is contained in:
reimannsum 2016-06-14 13:16:01 -04:00
parent aeb2ff930c
commit 353910ef48

View file

@ -747,7 +747,7 @@ class Card:
#force for_html to false to create tootip with forum spoiler
outstr += ('<div class="hover_img"><a href="#">[F]</a> <span><p>'
+ self.format(gatherer=gatherer, for_forum=for_forum, for_html=False, vdump=vdump).replace('\n', '<br>')
+ '</p></span></div>')
+ '</p></span></div><a href="#top" style="float: right;">back to top</a>')
outstr += linebreak
@ -1026,5 +1026,8 @@ class Card:
return outstr
def get_colors(self):
return self.__dict__[field_cost].get_colors()