UNPKG

hathora-et-labora-game

Version:

Game logic reducer for Uwe Rosenberg's Ora et Labora

12 lines 635 B
import { pipe } from 'ramda'; import { standardSesourceGatheringAction, standardSesourceGatheringCompletion, updateToken, withRondel, } from '../board/rondel'; import { ResourceEnum } from '../types'; import { shortGameBonusProduction } from '../board/resource'; export const quarry = (param = '') => { const withJoker = param.includes(ResourceEnum.Joker); return pipe( // standardSesourceGatheringAction('stone', withJoker), withRondel(updateToken('stone', withJoker)), shortGameBonusProduction({ stone: 1 })); }; export const complete = standardSesourceGatheringCompletion('stone'); //# sourceMappingURL=quarry.js.map