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 { CardRenderDynamicVictoryPoints } from '../render/CardRenderDynamicVictoryPoints' ; export class ImmigrationShuttles extends Card implements IProjectCard { constructor ( ) { super ( { cardType : CardType . AUTOMATED , name : CardName . IMMIGRATION_SHUTTLES , tags : [ Tags . EARTH , Tags . SPACE ] , cost : 31 , victoryPoints : 'special' , metadata : { cardNumber : '198' , renderData : CardRenderer . builder ( ( b ) => { b . production ( ( pb ) => pb . megacredits ( 5 ) ) . br ; b . vpText ( '1 VP for every 3rd City in play.' ) ; } ) , description : 'Increase your M€ production 5 steps.' , victoryPoints : CardRenderDynamicVictoryPoints . cities ( 1 , 3 , true ) , } , } ) ; } public getVictoryPoints ( player ) { return Math . floor ( player . game . getCitiesInPlay ( ) / 3 ) ; } public play ( player ) { player . addProduction ( Resources . MEGACREDITS , 5 ) ; return undefined ; } }