import { IProjectCard } from '../IProjectCard' ; import { Card } from '../Card' ; import { CardName } from '../../CardName' ; import { CardType } from '../CardType' ; import { Player } from '../../Player' ; import { Resources } from '../../Resources' ; import { PartyName } from '../../turmoil/parties/PartyName' ; import { RemoveAnyPlants } from '../../deferredActions/RemoveAnyPlants' ; import { CardRequirements } from '../CardRequirements' ; import { CardRenderer } from '../render/CardRenderer' ; import { all } from '../Options' ; export class AerialLenses extends Card implements IProjectCard { constructor ( ) { super ( { cardType : CardType . AUTOMATED , name : CardName . AERIAL_LENSES , cost : 2 , victoryPoints : - 1 , requirements : CardRequirements . builder ( ( b ) => b . party ( PartyName . KELVINISTS ) ) , metadata : { description : 'Requires that Kelvinists are ruling or that you have 2 delegates there. Remove up to 2 plants from any player. Increase your heat production 2 steps.' , cardNumber : 'T01' , renderData : CardRenderer . builder ( ( b ) => b . minus ( ) . plants ( - 2 , { all } ) . production ( ( pb ) => pb . heat ( 2 ) ) ) , } , } ) ; } public play ( player ) { player . addProduction ( Resources . HEAT , 2 ) ; player . game . defer ( new RemoveAnyPlants ( player , 2 ) ) ; return undefined ; } }