import { Player } from '../../Player' ; import { PreludeCard } from './PreludeCard' ; import { CardName } from '../../CardName' ; import { CardRenderer } from '../render/CardRenderer' ; import { digit } from '../Options' ; export class SupplyDrop extends PreludeCard { constructor ( ) { super ( { name : CardName . SUPPLY_DROP , metadata : { cardNumber : 'P33' , renderData : CardRenderer . builder ( ( b ) => { b . titanium ( 3 , { digit } ) . steel ( 8 , { digit } ) . plants ( 3 , { digit } ) ; } ) , description : 'Gain 3 titanium, 8 steel and 3 plants.' , } , } ) ; } public play ( player ) { player . titanium += 3 ; player . steel += 8 ; player . plants += 3 ; return undefined ; } }