import { CorporationCard } from '../corporation/CorporationCard' ; import { Player } from '../../Player' ; import { Tags } from '../Tags' ; import { Card } from '../Card' ; import { CardName } from '../../CardName' ; import { CardType } from '../CardType' ; import { CardRenderer } from '../render/CardRenderer' ; import { GlobalParameter } from '../../GlobalParameter' ; export class MorningStarInc extends Card implements CorporationCard { constructor ( ) { super ( { name : CardName . MORNING_STAR_INC , tags : [ Tags . VENUS ] , startingMegaCredits : 50 , cardType : CardType . CORPORATION , initialActionText : 'Draw 3 Venus-tag cards' , metadata : { cardNumber : 'R06' , description : 'You start with 50 M€. As your first action, reveal cards from the deck until you have revealed 3 Venus-tag cards. Take those into hand and discard the rest.' , renderData : CardRenderer . builder ( ( b ) => { b . megacredits ( 50 ) . nbsp . cards ( 3 , { secondaryTag : Tags . VENUS } ) ; b . corpBox ( 'effect' , ( ce ) => { ce . effect ( 'Your Venus requirements are +/- 2 steps, your choice in each case.' , ( eb ) => { eb . plate ( 'Venus requirements' ) . startEffect . text ( '+/- 2' ) ; } ) ; } ) ; } ) , } , } ) ; } public initialAction ( player ) { player . drawCard ( 3 , { tag : Tags . VENUS } ) ; return undefined ; } public getRequirementBonus ( _player , parameter ) { return parameter === GlobalParameter . VENUS ? 2 : 0 ; } public play ( ) { return undefined ; } }