import { IProjectCard } from '../IProjectCard' ; import { Tags } from '../Tags' ; import { Card } from '../Card' ; import { CardType } from '../CardType' ; import { Player } from '../../Player' ; import { Resources } from '../../Resources' ; import { CardName } from '../../CardName' ; import { CardRenderer } from '../render/CardRenderer' ; import { CardRequirements } from '../CardRequirements' ; export class MethaneFromTitan extends Card implements IProjectCard { constructor ( ) { super ( { cardType : CardType . AUTOMATED , name : CardName . METHANE_FROM_TITAN , tags : [ Tags . JOVIAN , Tags . SPACE ] , cost : 28 , victoryPoints : 2 , requirements : CardRequirements . builder ( ( b ) => b . oxygen ( 2 ) ) , metadata : { description : 'Requires 2% oxygen. Increase your heat production 2 steps and your plant production 2 steps.' , cardNumber : '018' , renderData : CardRenderer . builder ( ( b ) => b . production ( ( pb ) => { pb . heat ( 2 ) . br ; pb . plants ( 2 ) ; } ) ) , } , } ) ; } public play ( player ) { player . addProduction ( Resources . HEAT , 2 ) ; player . addProduction ( Resources . PLANTS , 2 ) ; return undefined ; } }