import { IProjectCard } from '../IProjectCard' ; import { Tags } from '../Tags' ; import { CardType } from '../CardType' ; import { Player } from '../../Player' ; import { CardName } from '../../CardName' ; import { ResourceType } from '../../ResourceType' ; import { AddResourcesToCard } from '../../deferredActions/AddResourcesToCard' ; import { Card } from '../Card' ; import { CardRenderer } from '../render/CardRenderer' ; export class FloaterPrototypes extends Card implements IProjectCard { constructor ( ) { super ( { cost : 2 , tags : [ Tags . SCIENCE ] , name : CardName . FLOATER_PROTOTYPES , cardType : CardType . EVENT , metadata : { cardNumber : 'C11' , renderData : CardRenderer . builder ( ( b ) => b . floaters ( 2 ) . asterix ( ) ) , description : 'Add two floaters to ANOTHER card.' , } , } ) ; } public play ( player ) { player . game . defer ( new AddResourcesToCard ( player , ResourceType . FLOATER , { count : 2 } ) ) ; return undefined ; } }