import { IProjectCard } from '../IProjectCard' ; import { Tags } from '../Tags' ; import { Card } from '../Card' ; import { CardType } from '../CardType' ; import { Player } from '../../Player' ; import { CardName } from '../../CardName' ; import { CardRenderer } from '../render/CardRenderer' ; import { Resources } from '../../Resources' ; import { CardRequirements } from '../CardRequirements' ; export class Harvest extends Card implements IProjectCard { constructor ( ) { super ( { cardType : CardType . EVENT , name : CardName . HARVEST , tags : [ Tags . PLANT ] , cost : 4 , requirements : CardRequirements . builder ( ( b ) => b . greeneries ( 3 ) ) , metadata : { cardNumber : 'X37' , renderData : CardRenderer . builder ( ( b ) => { b . megacredits ( 12 ) ; } ) , description : 'Requires that you have 3 greenery tiles in play. Gain 12 M€.' , } , } ) ; } public play ( player ) { player . addResource ( Resources . MEGACREDITS , 12 , { log : true } ) ; return undefined ; } }