import { IProjectCard } from '../IProjectCard' ; import { CardType } from '../CardType' ; import { Tags } from '../Tags' ; import { Player } from '../../Player' ; import { CardName } from '../../CardName' ; import { CardRequirements } from '../CardRequirements' ; import { Card } from '../Card' ; import { CardRenderer } from '../render/CardRenderer' ; import { Size } from '../render/Size' ; export class Conscription extends Card implements IProjectCard { constructor ( ) { super ( { cardType : CardType . EVENT , cost : 5 , tags : [ Tags . EARTH ] , name : CardName . CONSCRIPTION , victoryPoints : - 1 , requirements : CardRequirements . builder ( ( b ) => b . tag ( Tags . EARTH , 2 ) ) , metadata : { cardNumber : 'C05' , renderData : CardRenderer . builder ( ( b ) => { b . text ( 'next card' , Size . SMALL , true ) . colon ( ) . megacredits ( - 16 ) ; } ) , description : 'Requires 2 Earth tags. The next card you play this generation costs 16 M€ less.' , } , } ) ; } public getCardDiscount ( player ) { if ( player . lastCardPlayed === this . name ) { return 16 ; } return 0 ; } public play ( ) { return undefined ; } }