import { IProjectCard } from '../IProjectCard' ; import { CardType } from '../CardType' ; import { Player } from '../../Player' ; import { CardName } from '../../CardName' ; import { Resources } from '../../Resources' ; import { ResourceType } from '../../ResourceType' ; import { AddResourcesToCard } from '../../deferredActions/AddResourcesToCard' ; import { CardRequirements } from '../CardRequirements' ; import { Card } from '../Card' ; import { CardRenderer } from '../render/CardRenderer' ; export class Airliners extends Card implements IProjectCard { constructor ( ) { super ( { cost : 11 , name : CardName . AIRLINERS , cardType : CardType . AUTOMATED , requirements : CardRequirements . builder ( ( b ) => b . floaters ( 3 ) ) , victoryPoints : 1 , metadata : { cardNumber : 'C01' , description : 'Requires that you have 3 floaters. Increase your M€ production 2 steps. Add 2 floaters to ANY card.' , renderData : CardRenderer . builder ( ( b ) => { b . production ( ( pb ) => pb . megacredits ( 2 ) ) . br ; b . floaters ( 2 ) . asterix ( ) ; } ) , } , } ) ; } public play ( player ) { player . addProduction ( Resources . MEGACREDITS , 2 ) ; player . game . defer ( new AddResourcesToCard ( player , ResourceType . FLOATER , { count : 2 } ) ) ; return undefined ; } }