File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 2828 </div >
2929 <!-- card statistics -->
3030 <div >
31- <!-- mana cost -->
31+ <!-- mana cost/upkeep -->
3232 <div style =" float : left ; padding-left : 5px ;" >
33- <Value :value =" card.properties.MANA_COST" type =" mana-cost" orElse =" 0" alwaysShow ></Value >
33+ <Value v-if =" card.properties.MANA_UPKEEP"
34+ :value =" `${card.properties.MANA_COST}/${card.properties.MANA_UPKEEP}`"
35+ type =" mana_cost_upkeep" orElse =" 0" ></Value >
36+ <Value v-else :value =" card.properties.MANA_COST" type =" mana_cost" orElse =" 0" ></Value >
3437 </div >
3538 <div style =" float : right ; padding-right : 5px ;" class =" btn-group" >
3639 <Value :value =" card.properties.ATTACK" type =" attack" alwaysShow ></Value >
Original file line number Diff line number Diff line change @@ -29,6 +29,12 @@ export default {
2929 data () {
3030 let type = this .type ;
3131 let style = { buttonStyle: " info" , fa: " tint" , title: " " };
32+ if (type === " mana_cost" ) {
33+ style = { buttonStyle: " info" , fa: " tint" , title: " Mana Cost" };
34+ }
35+ if (type === " mana_cost_upkeep" ) {
36+ style = { buttonStyle: " info" , fa: " tint" , title: " Mana Cost/Upkeep" };
37+ }
3238 if (type === " attack" ) {
3339 style = { buttonStyle: " danger" , fa: " crosshairs" , title: " Attack" };
3440 }
You can’t perform that action at this time.
0 commit comments