UNPKG

hathora-et-labora-game

Version:

Game logic reducer for Uwe Rosenberg's Ora et Labora

15 lines 395 B
export const checkFinalPhase = (next) => (state) => { if (state === undefined) return undefined; const buildings = state.config.length === 'long' ? 3 : 1; if (state.buildings.length > buildings) return state; return { ...state, frame: { ...state.frame, next, }, }; }; //# sourceMappingURL=checkFinalPhase.js.map