Skip to content

Commit 067d066

Browse files
Torgenon3iro
authored andcommitted
[Fix] Show develop cost in expedition market
It showed up when viewing cards in an expansion under settings, but the typing hack meant it didn't get transferred to the model in an expedition.
1 parent 1663b9e commit 067d066

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/components/molecules/MarketTile/index.tsx

+5-1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ type MaybeMarketTile =
2525
name?: string
2626
expansion?: string
2727
cost?: number
28+
developCost?: number
2829
keywords?: string[]
2930
effect?: string
3031
canBeLocked?: boolean
@@ -38,6 +39,7 @@ type MaybeOutputMarketTile =
3839
name: string
3940
expansion: string
4041
cost: number
42+
developCost?: number
4143
keywords: string[]
4244
effect: string
4345
canBeLocked: boolean
@@ -49,7 +51,7 @@ const getCard = (marketTile: MaybeMarketTile): MaybeOutputMarketTile => {
4951
return undefined
5052
}
5153

52-
const { id, type, name, expansion, cost, keywords, effect, canBeLocked } =
54+
const { id, type, name, expansion, cost, developCost = undefined, keywords, effect, canBeLocked } =
5355
marketTile
5456

5557
return id &&
@@ -67,6 +69,7 @@ const getCard = (marketTile: MaybeMarketTile): MaybeOutputMarketTile => {
6769
name,
6870
expansion,
6971
cost,
72+
developCost,
7073
keywords,
7174
effect,
7275
canBeLocked,
@@ -94,6 +97,7 @@ type Props = ReturnType<typeof mapStateToProps> &
9497
effect?: string
9598
keywords?: string[]
9699
cost?: number
100+
developCost?: number
97101
operation?: types.Operation
98102
threshold?: number
99103
values?: Array<number>

src/components/molecules/SupplyModal/index.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ export type CardProperties = {
1717
name: string
1818
expansion: string
1919
cost: number
20+
developCost?: number,
2021
keywords: string[]
2122
effect: string
2223
selected: boolean

0 commit comments

Comments
 (0)