Skip to content

Commit

Permalink
Add Descent's banners
Browse files Browse the repository at this point in the history
  • Loading branch information
Torgen authored and on3iro committed Dec 4, 2024
1 parent 1edbd3a commit 0111cbb
Show file tree
Hide file tree
Showing 4 changed files with 108 additions and 0 deletions.
95 changes: 95 additions & 0 deletions src/aer-data/src/ENG/theDescent/banners.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
import { ICard } from '../../../../aer-types/types'

export const banners: ICard[] = [
{
name: 'Banner of Chronicles',
id: 'BannerOfChronicles',
type: 'Gem',
cost: 0,
expansion: 'ATD',
keywords: [],
effect: `
<p>
Gain 1 <span class="aether">&AElig;</span>.
<span class="or">OR</span>
The foe loses 1 charge.
</p>
`,
},
{
name: 'Banner of Energy',
id: 'BannerOfEnergy',
type: 'Gem',
cost: 0,
expansion: 'ATD',
keywords: [],
effect: `
<p>
Gain 1 <span class="aether">&AElig;</span>.
<span class="or">OR</span>
You may discard a card in hand that costs 2 <span class="aether">&AElig;</span> or more.
If you do, the friend gains 2 charges.
</p>
`,
},
{
name: 'Banner of Infusion',
id: 'BannerOfInfusion',
type: 'Gem',
cost: 0,
expansion: 'ATD',
keywords: [],
effect: `
<p>
Gain 1 <span class="aether">&AElig;</span>.
<span class="or">OR</span>
Any player loses 1 charge. If they do, the friend gains 2 charges.
</p>
`,
},
{
name: 'Banner of Sagas',
id: 'BannerOfSagas',
type: 'Gem',
cost: 0,
expansion: 'ATD',
keywords: [],
effect: `
<p>
Gain 1 <span class="aether">&AElig;</span>.
<span class="or">OR</span>
The friend gains 1 charge.
</p>
`,
},
{
name: 'Banner of Siphon',
id: 'BannerOfSiphon',
type: 'Spell',
cost: 0,
expansion: 'ATD',
keywords: [],
effect: `
<p>
<b>Cast:</b> Deal 1 damage.
<span class="or">OR</span>
<b>Cast:</b> The foe loses 1 charge.
</p>
`,
},
{
name: 'Banner of Volt',
id: 'BannerOfVolt',
type: 'Spell',
cost: 0,
expansion: 'ATD',
keywords: [],
effect: `
<p>
<b>Cast:</b> Deal 1 damage.
<span class="or">OR</span>
<b>Cast:</b> The friend gains 1 charge.
</p>
`,
},
]
2 changes: 2 additions & 0 deletions src/aer-data/src/ENG/theDescent/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { basicNemesisCards } from './basicNemesisCards'
import { upgradedBasicNemesisCards } from './upgradedBasicNemesisCards'
import { friends } from './friends'
import { foes } from './foes'
import { banners } from './banners'

export const theDescentData: IExpansion = {
id: 'ATD',
Expand All @@ -20,6 +21,7 @@ export const theDescentData: IExpansion = {
treasures,
friends,
foes,
banners,
basicNemesisCards,
upgradedBasicNemesisCards,
}
8 changes: 8 additions & 0 deletions src/aer-data/src/createNormalizedData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ export const createNormalizedData = (
)
const friends = normalize(expansion.friends || [])
const foes = normalize(expansion.foes || [])
const banners = normalize(expansion.banners || [])

return {
expansions: {
Expand Down Expand Up @@ -79,6 +80,10 @@ export const createNormalizedData = (
...acc.foes,
...foes.entities,
},
banners: {
...acc.banners,
...banners.entities,
},
expansionIds: [...acc.expansionIds, id],
nemesisIds: [...acc.nemesisIds, ...nemeses.ids],
mageIds: [...acc.mageIds, ...mages.ids],
Expand All @@ -94,6 +99,7 @@ export const createNormalizedData = (
],
friendIds: [...acc.friendIds, ...friends.ids],
foeIds: [...acc.foeIds, ...foes.ids],
bannerIds: [...acc.bannerIds, ...banners.ids],
}
},
{
Expand All @@ -106,6 +112,7 @@ export const createNormalizedData = (
upgradedBasicNemesisCards: {},
friends: {},
foes: {},
banners: {},
expansionIds: [],
nemesisIds: [],
mageIds: [],
Expand All @@ -115,6 +122,7 @@ export const createNormalizedData = (
upgradedBasicNemesisCardIds: [],
friendIds: [],
foeIds: [],
bannerIds: [],
}
)
}
3 changes: 3 additions & 0 deletions src/aer-types/types/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ export interface IExpansion {
upgradedBasicNemesisCards?: Array<UpgradedBasicNemesisCard>
friends?: Array<Friend>
foes?: Array<Foe>
banners?: Array<ICard>
}

export interface IExpansionData {
Expand Down Expand Up @@ -186,6 +187,7 @@ export type NormalizedData = {
upgradedBasicNemesisCards: UpgradedBasicNemesisCards
friends: Friends
foes: Foes
banners: Cards
expansionIds: string[]
nemesisIds: string[]
mageIds: string[]
Expand All @@ -195,4 +197,5 @@ export type NormalizedData = {
upgradedBasicNemesisCardIds: string[]
friendIds: string[]
foeIds: string[]
bannerIds: string[]
}

0 comments on commit 0111cbb

Please sign in to comment.