Skip to content

Commit 5aad33a

Browse files
Torgenon3iro
authored andcommitted
[Refactor] Structured mage abilities
Instead of needing a style guide for how to format mage abilities, separate out the parts and assemble them in the component.
1 parent 26f931d commit 5aad33a

File tree

75 files changed

+843
-803
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

75 files changed

+843
-803
lines changed

dataParser/aeonsEnd.js

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ const aeonsEndData = {
4646
name: 'Adelheim',
4747
id: 'Adelheim',
4848
mageTitle: 'Breach Mage Weaponsmith',
49-
ability: `
50-
<h2>Aethereal Ward</h2>
51-
<p class="ability-activation">Activate during the nemesis draw phase:</p>
49+
abilityName: 'Aethereal Ward',
50+
abilityActivation: 'Activate during the nemesis draw phase:',
51+
abilityEffect: `
5252
<p>When a nemesis attack or power card is drawn but before it is resolved,
5353
you may discard it. It has no effect.
5454
<span class="hint">(The nemesis does not draw a replacement card)</span></p>
@@ -76,9 +76,9 @@ const aeonsEndData = {
7676
name: 'Brama',
7777
id: 'Brama',
7878
mageTitle: 'Breach Mage Elder',
79-
ability: `
80-
<h2>Brink Siphon</h2>
81-
<p class="ability-activation">Activate during your main phase:</p>
79+
abilityName: 'Brink Siphon',
80+
abilityActivation: 'Activate during your main phase:',
81+
abilityEffect: `
8282
<p>Any player gains 4 life.</p>
8383
`,
8484
numberOfCharges: 5,
@@ -104,9 +104,9 @@ const aeonsEndData = {
104104
name: 'Jian',
105105
id: 'Jian',
106106
mageTitle: 'Breach Mage Orphan',
107-
ability: `
108-
<h2>Black Mirror</h2>
109-
<p class="ability-activation">Activate during your main phase:</p>
107+
abilityName: 'Black Mirror',
108+
abilityActivation: 'Activate during your main phase',
109+
abilityEffect: `
110110
<p>Cast any player's prepped spell without discarding it.</p>
111111
<p>Then cast that prepped spell again.
112112
<span class="hint">(Discard it afterward.)</span></p>
@@ -135,9 +135,9 @@ const aeonsEndData = {
135135
name: 'Kadir',
136136
id: 'Kadir',
137137
mageTitle: 'Breach Mage Delver',
138-
ability: `
139-
<h2>Otherworldly Gate</h2>
140-
<p class="ability-activation">Activate during any player's main phase:</p>
138+
abilityName: 'Otherworldly Gate',
139+
abilityActivation: "Activate during any player's main phase:",
140+
abilityEffect: `
141141
<p>That player may return up to three spells in their discard pile
142142
to their hand. That player may prep up to two spells to each
143143
of their opened breaches this turn.</p>
@@ -166,9 +166,9 @@ const aeonsEndData = {
166166
name: 'Lash',
167167
id: 'Lash',
168168
mageTitle: 'Breach Mage Scout',
169-
ability: `
170-
<h2>Quicken Thought</h2>
171-
<p class="ability-activation">Activate during any player's main phase:</p>
169+
abilityName: 'Quicken Thought',
170+
abilityActivation: "Activate during any player's main phase:",
171+
abilityEffect: `
172172
<p>Shuffle any player's turn order card into the turn order deck.
173173
That player suffers 1 damage. <span class="hint">(You may not choose the
174174
wildcard turn order card.)</span></p>
@@ -198,9 +198,9 @@ const aeonsEndData = {
198198
name: 'Mist',
199199
id: 'Mist',
200200
mageTitle: 'Dagger Captain',
201-
ability: `
202-
<h2>Divine Augury</h2>
203-
<p class="ability-activation">Activate during your main phase:</p>
201+
abilityName: 'Divine Augury',
202+
abilityActivation: 'Activate during your main phase:',
203+
abilityEffect: `
204204
<p>Any ally draws 4 cards.</p>
205205
`,
206206
numberOfCharges: 5,
@@ -227,9 +227,9 @@ const aeonsEndData = {
227227
name: 'Phaedraxa',
228228
id: 'Phaedraxa',
229229
mageTitle: 'Breach Mage Seer',
230-
ability: `
231-
<h2>Auspex Rune</h2>
232-
<p class="ability-activation">Activate immediately after a turn order card is drawn:</p>
230+
abilityName: 'Auspex Rune',
231+
abilityActivation: 'Activate immediately after a turn order card is drawn:',
232+
abilityEffect: `
233233
<p>Prevent any damage that the players or Gravehold would suffer during that turn.</p>
234234
`,
235235
numberOfCharges: 5,
@@ -255,9 +255,9 @@ const aeonsEndData = {
255255
name: 'Xaxos',
256256
id: 'Xaxos',
257257
mageTitle: 'Breach Mage Adept',
258-
ability: `
259-
<h2>Metaphysical Link</h2>
260-
<p class="ability-activation">Activate during any player's main phase:</p>
258+
abilityName: `Metaphysical Link`
259+
abilityActivation: `Activate during any player's main phase:`
260+
abilityEffect: `
261261
<p>Allies collectively gain 4 charges. Reveal the turn order deck and return
262262
the revealed cards in any order.</p>
263263
`,

dataParser/intoTheWild.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ const intoTheWildData = {
1919
name: 'Inco',
2020
id: 'Inco',
2121
mageTitle: 'Child Of Green',
22-
ability: `
23-
<h2>Massive Growth</h2>
24-
<p class="ability-activation">Activate during your main phase:</p>
22+
abilityName: `Massive Growth`,
23+
abilityActivation: `Activate during your main phase:`,
24+
abilityEffect: `
2525
<p>Cast any number of Rose Thorns prepped by any number of players.
2626
Those spells deal 2 additional damage.</p>`,
2727
numberOfCharges: 5,
@@ -46,9 +46,9 @@ const intoTheWildData = {
4646
name: 'Razra',
4747
id: 'Razra',
4848
mageTitle: 'The Trainer',
49-
ability: `
50-
<h2>Train Rip</h2>
51-
<p class="ability-activation">Activate during your main phase:</p>
49+
abilityName: `Train Rip`,
50+
abilityActivation: `Activate during your main phase:`,
51+
abilityEffect: `
5252
<p>Destroy a card with "Rip" in its name in your hand.
5353
Gain a card with "Rip" in its name from the personal upgrade deck
5454
that costs 3 <span class="aether">&AElig;</span> more than the destroyed card

dataParser/outerDark.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ const outerDarkData = {
2828
name: 'Indira',
2929
id: 'Indira',
3030
mageTitle: 'Breach Apprentice',
31-
ability: `
32-
<h2>Pyromancer's Guile</h2>
33-
<p class="ability-activation">Activate during your main phase:</p>
31+
abilityName: `Pyromancer's Guile`,
32+
abilityActivation: `Activate during your main phase:`,
33+
abilityEffect: `
3434
<p>Cast any number of spells in hand. Those spells each
3535
deal 1 additional damage.</p>
3636
<p>You may destroy a card in your discard pile.</p>
@@ -58,9 +58,9 @@ const outerDarkData = {
5858
name: 'Remnant',
5959
id: 'Remnant',
6060
mageTitle: 'Aethereal Entity',
61-
ability: `
62-
<h2>Ephemera Masque</h2>
63-
<p class="ability-activation">Activate during your main phase:</p>
61+
abilityName: `Ephemera Masque`,
62+
abilityActivation: `Activate during your main phase:`,
63+
abilityEffect: `
6464
<p>Any ally returns two cards in their discard pile to their hand.
6565
<span class="or">OR</span>
6666
Gravehold gains 5 life.</p>

dataParser/shatteredDreams.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ const shatteredDreamsData = {
1919
name: 'Nook',
2020
id: 'Nook',
2121
mageTitle: 'Orb Caller',
22-
ability: `
23-
<h2>Condense Aether</h2>
24-
<p class="ability-activation">Activate during your main phase:</p>
22+
abilityName: `Condense Aether`,
23+
abilityActivation: `Activate during your main phase:`,
24+
abilityEffect: `
2525
<p>You my destroy a card in your hand or discard pile.
2626
Gain 4 <span class="aether">&AElig;</span>.<br/>
2727
You may place the next spell you gain this turn into your hand.</p>`,

dataParser/theAncients.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ const theAncientsData = {
1919
name: 'Mazra',
2020
id: 'Mazra',
2121
mageTitle: 'The Reader',
22-
ability: `
23-
<h2>Research</h2>
24-
<p class="ability-activation">Activate during your main phase:</p>
22+
abilityName: `Research`,
23+
abilityActivation: `Activate during your main phase:`,
24+
abilityEffect: `
2525
<p>Destroy a card with "Mazra" in its name in your hand.
2626
Gain a card with "Mazra" in its name from the personal upgrade deck
2727
that costs 3 <span class="aether">&AElig;</span> more than the destroyed card
@@ -50,9 +50,9 @@ const theAncientsData = {
5050
name: 'Qu',
5151
id: 'Qu',
5252
mageTitle: 'Builder And Destroyer',
53-
ability: `
54-
<h2>Duality Embrace</h2>
55-
<p class="ability-activation">Activate during your main phase:</p>
53+
abilityName: `Duality Embrace`,
54+
abilityActivation: `Activate during your main phase:`,
55+
abilityEffect: `
5656
<p>If you are in Destroyer form, cast up to two different spells prepped
5757
by any number of players, and then flip over the Form token.
5858
Otherwise, any player preps up to two spells in their discard pile

dataParser/theDepths.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ const theDepthsData = {
1919
name: 'Nym',
2020
id: 'Nym',
2121
mageTitle: 'Breach Mage Apprentice',
22-
ability: `
23-
<h2>Terminus Barrier</h2>
24-
<p class="ability-activation">Activate during your main phase:</p>
22+
abilityName: `Terminus Barrier`,
23+
abilityActivation: `Activate during your main phase:`,
24+
abilityEffect: `
2525
<p>Discard the top card of the nemesis deck.</p>
2626
<p>If you discarded an attack card, discard an additional card.</p>
2727
`,
@@ -49,9 +49,9 @@ const theDepthsData = {
4949
name: 'Reeve',
5050
id: 'Reeve',
5151
mageTitle: 'Breach Mage Elite',
52-
ability: `
53-
<h2>Quelling Blade</h2>
54-
<p class="ability-activation">Activate during your main phase:</p>
52+
abilityName: `Quelling Blade`,
53+
abilityActivation: `Activate during your main phase:`,
54+
abilityEffect: `
5555
<p>Deal 5 damage to a minion.</p>
5656
<p>Deal 3 damage to a different minion.</p>
5757
`,
@@ -78,9 +78,9 @@ const theDepthsData = {
7878
name: "Z'hana",
7979
id: 'Zhana',
8080
mageTitle: 'Breach Mage Renegade',
81-
ability: `
82-
<h2>Sanctum Glyph</h2>
83-
<p class="ability-activation">Activate during your main phase:</p>
81+
abilityName: `Sanctum Glyph`,
82+
abilityActivation: `Activate during your main phase:`,
83+
abilityEffect: `
8484
<p>Gravehold gains 7 life.</p>
8585
`,
8686
numberOfCharges: 5,

dataParser/theNameless.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ const theNamelessData = {
2828
name: 'Malastar',
2929
id: 'Malastar',
3030
mageTitle: 'Breach Mage Mentor',
31-
ability: `
32-
<h2>Gift Of Aether</h2>
33-
<p class="ability-activation">Activate during your main phase:</p>
31+
abilityName: `Gift Of Aether`,
32+
abilityActivation: `Activate during your main phase:`,
33+
abilityEffect: `
3434
<p>Gain a spell from any supply pile. You may prep that spell to
3535
any player's opened breach.</p>
3636
`,

dataParser/theNewAge.js

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ const newAgeData = {
4646
name: 'Sahala',
4747
id: 'Sahala',
4848
mageTitle: 'Oracle',
49-
ability: `
50-
<h2>Star Bind</h2>
51-
<p class="ability-activation">Activate during your casting or main phase:</p>
49+
abilityName: `Star Bind`,
50+
abilityActivation: `Activate during your casting or main phase:`,
51+
abilityEffect: `
5252
<p>Reveal the top three cards of your deck.
5353
Place a spell revealed this way into your hand.
5454
If there are no spells prepped to your Celestial Breach,
@@ -74,9 +74,9 @@ const newAgeData = {
7474
name: 'Gygar',
7575
id: 'Gygar',
7676
mageTitle: 'Tide Master',
77-
ability: `
78-
<h2>High Tide</h2>
79-
<p class="ability-activation">Activate during your main phase:</p>
77+
abilityName: `High Tide`,
78+
abilityActivation: `Activate during your main phase:`,
79+
abilityEffect: `
8080
<p>Place a Surge token on your Ancient Breach.
8181
<span class="or">OR</span>
8282
Cast a spell prepped to your Ancient Breach. Gain 2 charges.</p>`,
@@ -99,9 +99,9 @@ const newAgeData = {
9999
name: 'Soskel',
100100
id: 'Soskel',
101101
mageTitle: 'Aristocrat',
102-
ability: `
103-
<h2>Energized Sigil</h2>
104-
<p class="ability-activation">Activate during your main phase:</p>
102+
abilityName: `Energized Sigil`,
103+
abilityActivation: `Activate during your main phase:`,
104+
abilityEffect: `
105105
<p>Place an Energize token on any player's breach that doesn't have one.
106106
<span class="or">OR</span>
107107
Discard an Energize token on any player's breach.
@@ -126,9 +126,9 @@ const newAgeData = {
126126
name: 'Taqren',
127127
id: 'Taqren',
128128
mageTitle: 'The Shield',
129-
ability: `
130-
<h2>Breach Siphon</h2>
131-
<p class="ability-activation">Activate during your main phase:</p>
129+
abilityName: `Breach Siphon`,
130+
abilityActivation: `Activate during your main phase:`,
131+
abilityEffect: `
132132
<p>Focus any player's breach.
133133
Any player gains 1 life for each opened breach you have.</p>`,
134134
numberOfCharges: 4,
@@ -152,9 +152,9 @@ const newAgeData = {
152152
name: 'Talix',
153153
id: 'Talix',
154154
mageTitle: 'The Chain',
155-
ability: `
156-
<h2>Soaring Ash</h2>
157-
<p class="ability-activation">Activate during your main phase:</p>
155+
abilityName: `Soaring Ash`,
156+
abilityActivation: `Activate during your main phase:`,
157+
abilityEffect: `
158158
<p>Destroy two sparks in hand. If you do,
159159
shuffle your turn order card into the turn order deck.
160160
<span class="or">OR</span>
@@ -181,9 +181,9 @@ const newAgeData = {
181181
name: 'Rhia',
182182
id: 'Rhia',
183183
mageTitle: 'Relic Hunter',
184-
ability: `
185-
<h2>Sublimate</h2>
186-
<p class="ability-activation">Activate during your main phase:</p>
184+
abilityName: `Sublimate`,
185+
abilityActivation: `Activate during your main phase:`,
186+
abilityEffect: `
187187
<p>Return a card in your hand or discard pile to its supply pile.
188188
If you returned a relic, gain a card from any supply pile
189189
that costs up to 3 <span class="aether">&AElig;</span> more than the returned card.
@@ -210,9 +210,9 @@ const newAgeData = {
210210
name: 'Claudia',
211211
id: 'Claudia',
212212
mageTitle: 'Prospector',
213-
ability: `
214-
<h2>Aeplosion</h2>
215-
<p class="ability-activation">Activate during any ally's main phase:</p>
213+
abilityName: `Aeplosion`,
214+
abilityActivation: `Activate during any ally's main phase:`,
215+
abilityEffect: `
216216
<p>That ally gains 2 <span class="aether">&AElig;</span>. The next time that ally
217217
gains a card from a supply pile this turn,
218218
you gain a copy of that card from that supply pile.
@@ -239,9 +239,9 @@ const newAgeData = {
239239
name: 'Lost',
240240
id: 'Lost',
241241
mageTitle: 'Living Forge',
242-
ability: `
243-
<h2>Meek's Might</h2>
244-
<p class="ability-activation">Activate during your main phase:</p>
242+
abilityName: `Meek's Might`,
243+
abilityActivation: `Activate during your main phase:`,
244+
abilityEffect: `
245245
<p>Return up to four cards that cost 0 <span class="aether">&AElig;</span>
246246
in your discard pile to your hand.</p>`,
247247
numberOfCharges: 5,

dataParser/theVoid.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ const theVoidData = {
2828
name: 'Sparrow',
2929
id: 'Sparrow',
3030
mageTitle: 'Breach Mage Soldier',
31-
ability: `
32-
<h2>Eldritch Tether</h2>
33-
<p class="ability-activation">Activate during your casting or main phase:</p>
31+
abilityName: `Eldritch Tether`,
32+
abilityActivation: `Activate during your casting or main phase:`,
33+
abilityEffect: `
3434
<p>Focus any player's breach. Repeat this three additional times.
3535
<span class="or">OR</span>
3636
Any ally with no closed breaches draws three cards and then
@@ -58,9 +58,9 @@ const theVoidData = {
5858
name: 'Xaxos',
5959
id: 'XaxosTV',
6060
mageTitle: 'Voidbringer',
61-
ability: `
62-
<h2>Praetorian Halo</h2>
63-
<p class="ability-activation">Activate during your casting or main phase:</p>
61+
abilityName: `Praetorian Halo`,
62+
abilityActivation: `Activate during your casting or main phase:`,
63+
abilityEffect: `
6464
<p>Any ally gains 1 charge and discards a random card in hand. Focus
6565
one of your breaches. Gain 1 life. Destroy a card in your hand or
6666
discard pile.</p>`,

0 commit comments

Comments
 (0)