Skip to main content

Module farm

Module farm 

Source
Expand description

Crop fields: CropFieldComponent, and the works PlantArea, TendArea and the harvest work. See docs/FARMING.md.

A field waits for spring (state 2), plants its crop on every cell (9), tends it while it grows (10) and harvests it when ripe or in autumn (11). The ClearArea controller’s state 0x15 then clears what is left before the field waits again.

Original: FUN_140120620, 0x140167cb0, 0x140167db0, 0x1401678c0.

Structs§

AreaWork
The work of planting (PlantArea) or harvesting a field: the cells claimed (index → worker), the cells still to do, and, for planting, the crop.
CropCell
One cell of a field (0x20 bytes).
CropField
CropFieldComponent.
CropFieldTemplate
CropFieldDescription (versioned): a tending visit’s growth (as a share of the crop’s growing time) and, from version 1, the stock slot.

Functions§

ripeness
Sim::crop_ripeness after the cells’ refresh.