#macro(figure $card)
#if($card.figure_source == "material-icons")
$escape_html($card.figure)
#elseif($card.figure_source == "mdi")
#elseif($card.figure_source == "fa")
#elseif($card.figure_source == "svg")
#end
#end
#macro(specialFlags $card)
#if($card.has_flag("mastery"))
❏ ❏ ❏ ❏ ❏
❏ ❏ ❏ ❏ ❏
#end
#if($card.has_flag("pokehum"))
Name: ______________
#end
#end
#macro(statIcons $text)
#foreach($word in $text.split())
#if($word == "BODY")
#elseif($word == "TEC")
#elseif($word == "MAG")
#elseif($word == "ATT")
ATT
#else
$word
#end
#end
#end
#macro(handleCostUnit $cost $match)
$escape_html($card.title)
#figure($card)
#if($card.effects)
#foreach($effect in $card.effects)
#if($effect)
- $escape_html($effect)
#end
#end
#end
#if($card.cp)
$escape_html($card.cp)
#elseif($card.gp)
$escape_html($card.gp)
#end
#foreach($cost in $card.cost.split(","))
#if($cost.upper().endswith(" ACT"))
#handleCostUnit($cost, "ACT")
#elseif($cost.upper().endswith(" OVERDRIVE"))
#handleCostUnit($cost, "OVERDRIVE")
#elseif($cost.upper().endswith(" COMBO"))
#handleCostUnit($cost, "COMBO")
#elseif($cost.upper().endswith(" DIFFICULTY"))
#handleCostUnit($cost, "DIFFICULTY")
#else
#if($cost.strip())
$escape_html($cost.split())
#end
#end
#end
#if($card.power)
#statIcons($escape_html($card.power))
#end
$escape_html($card.description)
#if($card.steps)
#foreach($item in $card.steps)
#if($item)
- $escape_html($item)
#end
#end
#end
#if($card.flags)
-
#foreach($flag in $card.flags)
#if(!$flag && $foreach.hasNext)
-
-
#else
$escape_html($flag.capitalize())#if($foreach.hasNext), #end
#end
#end
-
#specialFlags($card)
#end
#end
#if($was_saved)