Skip to content

Commit

Permalink
Make develop cost a first class field in ICard
Browse files Browse the repository at this point in the history
instead of putting it in the effect.
  • Loading branch information
Torgen authored and on3iro committed Jul 18, 2024
1 parent 030d15f commit 40286ed
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 14 deletions.
2 changes: 1 addition & 1 deletion src/aer-data/src/ENG/PFPromos/cards.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ export const cards: ICard[] = [
name: 'Citrine Shrapnel',
id: 'CitrineShrapnel',
cost: 3,
developCost: 3,
effect: `
<p>
Gain 1 <span class="aether">&AElig;</span> for each copy of this card in the Develop zone.
<span class="or">OR</span>
Develop a Citrine Shrapnel.
Develop cost: 3
</p>
`,
keywords: ['develop'],
Expand Down
6 changes: 3 additions & 3 deletions src/aer-data/src/ENG/evolutions/cards.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ export const cards: ICard[] = [
name: 'Feeding Lichen',
id: 'FeedingLichen',
cost: 5,
developCost: 3,
effect: `
<p>
Gain 2 <span class="aether">&AElig;</span>.<br/>
If the nemesis tier is 2 or higher, draw an additional card
at the end of this turn.<br/>
Develop cost: 3
</p>
`,
keywords: ['develop'],
Expand All @@ -23,12 +23,12 @@ export const cards: ICard[] = [
name: 'Fall Lantern',
id: 'FallLantern',
cost: 5,
developCost: 4,
effect: `
<p>
When you Develop this, deal 2 damage.<br/>
Attach this to any player's breach.
When a spell is cast from this breach, any ally may prep a spell to one of their closed or opened breaches.<br/>
Develop cost: 4
</p>
`,
keywords: ['develop'],
Expand All @@ -39,12 +39,12 @@ export const cards: ICard[] = [
name: 'Crescent Greave',
id: 'CrescentGreave',
cost: 8,
developCost: 5,
effect: `
<p>
When you Develop this, draw an additional card at the end of this turn.<br/>
Gain 2 charges.<br/>
Draw an additional card at the end of this turn.<br/>
Develop cost: 5
</p>
`,
keywords: [],
Expand Down
20 changes: 10 additions & 10 deletions src/aer-data/src/ENG/pastAndFuture/cards.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,11 +134,11 @@ export const cards: ICard[] = [
name: 'Splintered Garnet',
id: 'SplinteredGarnet',
cost: 5,
developCost: 4,
effect: `
<p>
When you Develop this, destroy a gem played this turn.
Gain 3 <span class="aether">&AElig;</span>.<br/>
Develop cost: 4
</p>
`,
keywords: ['develop'],
Expand All @@ -149,11 +149,11 @@ export const cards: ICard[] = [
name: "Seer's Wrath",
id: 'SeersWrath',
cost: 5,
developCost: 3,
effect: `
<p>
When you Develop this, look at the top card of the turn order deck. You may place that card on the bottom or top of the turn order deck.<br/>
<b>Cast:</b> Deal 3 damage.<br/>
Develop cost: 3
</p>
`,
keywords: ['develop'],
Expand All @@ -164,10 +164,10 @@ export const cards: ICard[] = [
name: 'Tethered Smite',
id: 'TetheredSmite',
cost: 7,
developCost: 4,
effect: `
<p>
<b>Cast</b> Deal 5 damage divided however you choose the nemesis and any number of minions.<br/>
Develop cost: 4
</p>
`,
keywords: ['develop'],
Expand All @@ -178,12 +178,12 @@ export const cards: ICard[] = [
name: 'Taluna Branch',
id: 'TalunaBranch',
cost: 6,
developCost: 4,
effect: `
<p>
When you Develop this, any ally gains an <span class="aether">&AElig;</span> token.
Focus any player's breach. <br/>
Any player may destroy a card in hand or in their discard pile. <br/>
Develop cost: 4
</p>
`,
keywords: ['develop'],
Expand All @@ -193,12 +193,12 @@ export const cards: ICard[] = [
expansion: 'PAF',
name: 'Building Storm',
id: 'BuildingStorm',
cost: 3,
cost: 4,
developCost: 2,
effect: `
<p>
<b>Cast:</b> Deal 2 damage. <br/>
Deal 1 additional damage for every copy of this card in the Develop zone.<br/>
Develop cost: 2
</p>
`,
keywords: ['develop'],
Expand All @@ -216,18 +216,18 @@ export const cards: ICard[] = [
Gain 3 <span class="aether">&AElig;</span> that can only be used to Develop cards.
</p>
`,
keywords: [],
keywords: ['develop'],
},
{
type: 'Relic',
expansion: 'PAF',
name: 'Imbued Pocketwatch',
id: 'ImbuedPocketwatch',
cost: 3,
cost: 2,
developCost: 3,
effect: `
<p>
Any player gains a charge. If there are two or more Imbued Pocketwatches in the Develop zone, any player gains a life.<br/>
Develop cost: 3
</p>
`,
keywords: ['develop'],
Expand All @@ -252,11 +252,11 @@ export const cards: ICard[] = [
name: 'Thistle Spear',
id: 'ThistleSpear',
cost: 8,
developCost: 5,
effect: `
<p>
<b>Cast:</b> Deal 5 damage.<br/>
Any ally may gain a card from the Develop zone and place it into their hand.<br/>
Develop cost: 5
</p>
`,
keywords: ['develop'],
Expand Down
1 change: 1 addition & 0 deletions src/aer-types/types/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export type ICard = {
name: string
id: string
cost: number
developCost?: number
effect: string
keywords: string[]
}
Expand Down
4 changes: 4 additions & 0 deletions src/components/molecules/SupplyCardInformation/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ type Props = {
name: string
expansion: string
cost: number
developCost?: number
keywords: string[]
effect: string
}
Expand All @@ -31,6 +32,9 @@ const Body = ({ card, expansion, theme }: Props) => (
<InfoItem label="Wave" info={expansion.wave || '-'} />
<InfoItem label="Type" info={card.type} />
<InfoItem label="Cost" info={card.cost.toString()} />
{card.developCost ? (
<InfoItem label="Develop Cost" info={card.developCost.toString()} />
) : null}

<SectionHeadline
themeColor={theme.colors.cards[card.type.toLowerCase()].color}
Expand Down

0 comments on commit 40286ed

Please sign in to comment.