GitHubCommencer

Cette page n’est pas encore traduite en français ; la version anglaise est affichée ci-dessous.

Autres

Farming rules

pkg/farming contains deterministic rules for farming and life-sim projects. Calendar advances through versioned seasons from an explicit duration, rolling to the next season after its configured number of days. CropKind and Crop model staged growth. A crop advances only when WateredDay is called, so an unwatered day cannot silently mature it. Both APIs avoid time.Now, which keeps saves, replays and headless tests reproducible.

Modifier cette page