import { IProjectCard } from '../IProjectCard' ; import { Tags } from '../Tags' ; import { CardType } from '../CardType' ; import { Player } from '../../Player' ; import { CardName } from '../../CardName' ; import { Resources } from '../../Resources' ; import { CardRequirements } from '../CardRequirements' ; import { CardRenderer } from '../render/CardRenderer' ; import { Card } from '../Card' ; import { digit } from '../Options' ; export class CoronaExtractor extends Card implements IProjectCard { constructor ( ) { super ( { cardType : CardType . AUTOMATED , name : CardName . CORONA_EXTRACTOR , cost : 10 , tags : [ Tags . SPACE , Tags . ENERGY ] , requirements : CardRequirements . builder ( ( b ) => b . tag ( Tags . SCIENCE , 4 ) ) , metadata : { cardNumber : 'C06' , description : 'Requires 4 science tags. Increase your energy production 4 steps.' , renderData : CardRenderer . builder ( ( b ) => b . production ( ( pb ) => pb . energy ( 4 , { digit } ) ) ) , } , } ) ; } public play ( player ) { player . addProduction ( Resources . ENERGY , 4 ) ; return undefined ; } }