import { Card } from '../Card' ; import { CorporationCard } from './CorporationCard' ; import { Tags } from '../Tags' ; import { Player } from '../../Player' ; import { Resources } from '../../Resources' ; import { CardName } from '../../CardName' ; import { CardType } from '../CardType' ; import { CardRenderer } from '../render/CardRenderer' ; import { multiplier } from '../Options' ; export class Helion extends Card implements CorporationCard { constructor ( ) { super ( { cardType : CardType . CORPORATION , name : CardName . HELION , tags : [ Tags . SPACE ] , startingMegaCredits : 42 , metadata : { cardNumber : 'R18' , description : 'You start with 3 heat production and 42 M€.' , renderData : CardRenderer . builder ( ( b ) => { b . br ; b . production ( ( pb ) => pb . heat ( 3 ) ) . nbsp . megacredits ( 42 ) ; b . corpBox ( 'effect' , ( ce ) => { ce . effect ( 'You may use heat as M€. You may not use M€ as heat.' , ( eb ) => { eb . startEffect . text ( 'x' ) . heat ( 1 ) . equals ( ) . megacredits ( 0 , { multiplier } ) ; } ) ; } ) ; } ) , } , } ) ; } public play ( player ) { player . canUseHeatAsMegaCredits = true ; player . addProduction ( Resources . HEAT , 3 ) ; return undefined ; } }