hathora-et-labora-game
Version:
Game logic reducer for Uwe Rosenberg's Ora et Labora
12 lines • 641 B
JavaScript
import { pipe } from 'ramda';
import { standardSesourceGatheringAction, standardSesourceGatheringCompletion, updateToken, withRondel, } from '../board/rondel';
import { ResourceEnum } from '../types';
import { shortGameBonusProduction } from '../board/resource';
export const grapevine = (param = '') => {
const withJoker = param.includes(ResourceEnum.Joker);
return pipe(
//
standardSesourceGatheringAction('grape', withJoker), withRondel(updateToken('grape', withJoker)), shortGameBonusProduction({ grape: 1 }));
};
export const complete = standardSesourceGatheringCompletion('grape');
//# sourceMappingURL=grapevine.js.map