@jeremyckahn/farmhand
Version:
A farming game
8 lines (5 loc) • 337 B
text/typescript
import { shouldPrecipitateToday } from '../../utils/shouldPrecipitateToday.js'
import { applyChanceEvent } from './helpers.js'
import { applyPrecipitation } from './applyPrecipitation.js'
export const processWeather = (state: farmhand.state): farmhand.state =>
applyChanceEvent([[shouldPrecipitateToday, applyPrecipitation]], state)