import { Tags } from '../Tags' ; import { Player } from '../../Player' ; import { PreludeCard } from './PreludeCard' ; import { IProjectCard } from '../IProjectCard' ; import { Resources } from '../../Resources' ; import { CardName } from '../../CardName' ; import { PlaceOceanTile } from '../../deferredActions/PlaceOceanTile' ; import { CardRenderer } from '../render/CardRenderer' ; import { Units } from '../../Units' ; export class PolarIndustries extends PreludeCard implements IProjectCard { constructor ( ) { super ( { name : CardName . POLAR_INDUSTRIES , tags : [ Tags . BUILDING ] , productionBox : Units . of ( { heat : 2 } ) , metadata : { cardNumber : 'P26' , renderData : CardRenderer . builder ( ( b ) => { b . production ( ( pb ) => pb . heat ( 2 ) ) . br ; b . oceans ( 1 ) ; } ) , description : 'Increase your heat production 2 steps. Place an Ocean tile.' , } , } ) ; } public play ( player ) { player . game . defer ( new PlaceOceanTile ( player ) ) ; player . addProduction ( Resources . HEAT , 2 ) ; return undefined ; } }