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 { played } from '../Options' ; export class Cartel extends Card implements IProjectCard { constructor ( ) { super ( { cardType : CardType . AUTOMATED , name : CardName . CARTEL , tags : [ Tags . EARTH ] , cost : 8 , metadata : { cardNumber : '137' , description : 'Increase your M€ production 1 step for each Earth tag you have, including this.' , renderData : CardRenderer . builder ( ( b ) => b . production ( ( pb ) => { pb . megacredits ( 1 ) . slash ( ) . earth ( 1 , { played } ) ; } ) ) , } , } ) ; } public play ( player ) { player . addProduction ( Resources . MEGACREDITS , player . getTagCount ( Tags . EARTH ) + 1 , { log : true } ) ; return undefined ; } }