Skip to content

Commit 926688f

Browse files
committed
add MANA_UPKEEP to DeckBuilder when applicable, #150
1 parent 7e6ac94 commit 926688f

File tree

1 file changed

+18
-9
lines changed

1 file changed

+18
-9
lines changed

src/components/DeckBuilder.vue

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<div>
3-
<TopNavbar :username="currentUser.username"></TopNavbar>
3+
<TopNavbar :username="currentUser.username"></TopNavbar>
44
<div v-if="!doneLoading">
55
<h1 class="deckbuilder-deck-name">Loading Deck Builder...</h1>
66
</div>
@@ -39,6 +39,7 @@
3939
-------------------------------------------------
4040
"SICKNESS" | SICKNESS | 1 or 0, or empty (for cards where n/a)
4141
"MANA_COST" | MANA_COST | n, or empty (for cards n/a)
42+
"MANA_UPKEEP" | MANA_UPKEEP | n, or empty (for card n/a)
4243
"ATTACK" | ATTACK | n, or empty (for cards n/a)
4344
"HEALTH" | HEALTH | n, or empty (for cards n/a)
4445
"ATTACK_AVAILABLE" | ATTACK_AVAILABLE | 1, or empty (when explicit 0 n/a)
@@ -55,11 +56,12 @@
5556
<th>Type</th>
5657
<th>Name</th>
5758
<th>Count</th>
58-
<th>Mana</th>
59-
<th style="width: 100px">A / H</th>
60-
<th>Sick</th>
61-
<th>Akt?</th>
62-
<th>FX</th>
59+
<th v-if="this.currentUser.game.mod === 'Mythos'">Mana Cost / Upkeep</th>
60+
<th v-else>Mana Cost</th>
61+
<th style="width: 100px">Attack / Health</th>
62+
<th>Sickness</th>
63+
<th>Attack?</th>
64+
<th>Effect</th>
6365
<th>?</th>
6466
</tr>
6567
<tr v-for="card in cards">
@@ -76,7 +78,14 @@
7678
<button @click="increment(card)" type="button" class="btn btn-xs btn-default fa fa-plus"></button>
7779
</div>
7880
</td>
79-
<td style="text-align: center;">{{card.properties.MANA_COST}}</td>
81+
<td style="text-align: center;">
82+
<span v-if="card.properties.MANA_UPKEEP" style="font-size: 1.0em;">
83+
{{`${card.properties.MANA_COST} / ${card.properties.MANA_UPKEEP}`}}
84+
</span>
85+
<span v-else style="font-size: 1.0em;">
86+
{{card.properties.MANA_COST}}
87+
</span>
88+
</td>
8089
<td style="font-weight: bold; text-align: center;">
8190
<span v-if="card.properties.ATTACK" style="font-size: 1.0em;">{{card.properties.ATTACK}}</span>
8291
<span v-if="!card.properties.ATTACK" style="font-size: 1.0em; color: red;">-</span>
@@ -86,8 +95,8 @@
8695
</td>
8796
<td style="text-align: center;">{{card.properties.SICKNESS}}</td>
8897
<td style="text-align: center;">
89-
<span v-if="card.properties.ATTACK_AVAILABLE" style="font-size: 0.8em; color: green;">Yes</span>
90-
<span v-if="!card.properties.ATTACK_AVAILABLE" style="font-size: 0.8em; color: red;">No</span>
98+
<span v-if="card.properties.ATTACK_AVAILABLE" style="font-size: 1.0em; color: green;">Yes</span>
99+
<span v-if="!card.properties.ATTACK_AVAILABLE" style="font-size: 1.0em; color: red;">No</span>
91100
</td>
92101
<td style="text-align: center;">
93102
{{card.properties.effect}}

0 commit comments

Comments
 (0)