import { CorporationCard } from '../corporation/CorporationCard' ; import { Player } from '../../Player' ; import { Tags } from '../Tags' ; import { Resources } from '../../Resources' ; import { Card } from '../Card' ; import { CardName } from '../../CardName' ; import { CardType } from '../CardType' ; import { CardRenderer } from '../render/CardRenderer' ; import { Units } from '../../Units' ; export class Manutech extends Card implements CorporationCard { constructor ( ) { super ( { name : CardName . MANUTECH , tags : [ Tags . BUILDING ] , startingMegaCredits : 35 , cardType : CardType . CORPORATION , productionBox : Units . of ( { steel : 1 } ) , metadata : { cardNumber : 'R23' , description : 'You start with 1 steel production, and 35 M€.' , renderData : CardRenderer . builder ( ( b ) => { b . br . br ; b . production ( ( pb ) => pb . steel ( 1 ) ) . nbsp . megacredits ( 35 ) ; b . corpBox ( 'effect' , ( ce ) => { ce . effect ( 'For each step you increase the production of a resource, including this, you also gain that resource.' , ( eb ) => { eb . production ( ( pb ) => pb . wild ( 1 ) ) . startEffect . wild ( 1 ) ; } ) ; } ) ; } ) , } , } ) ; } public play ( player ) { player . addProduction ( Resources . STEEL , 1 ) ; return undefined ; } public static onProductionGain ( player , resource , amount ) { if ( amount > 0 ) { player . addResource ( resource , amount ) ; } } }