Farming skill #5

Closed
opened 2026-06-06 16:03:20 +00:00 by sickday · 2 comments
Owner

skills/farming.ex is a content stub. Implement patches, seed planting, growth ticks, harvest, disease/compost.

Source: lib/black_lobster/game/skills/farming.ex (TODO content-port).

`skills/farming.ex` is a content stub. Implement patches, seed planting, growth ticks, harvest, disease/compost. **Source:** `lib/black_lobster/game/skills/farming.ex` (TODO content-port).
sickday added this to the v1 milestone 2026-06-06 16:03:20 +00:00
Author
Owner

Status (branch feat/farming-and-walk-fix, not yet merged)

Allotment lifecycle is verified in-game: rake → plant → grow → harvest, plus
disease/death rendering, read-only Inspect, dig-up (incl. diseased crops),
real-time growth on the OSRS global growth-tick schedule with a stored
per-player offset, and crash-safe synchronous persistence. Flowers / hops / herbs
share the same code paths and their render values are cache-verified, but haven't
each been play-tested individually. Growth intervals + per-seed stages were
audited against the OSRS Seeds wiki (only the cactus/mushroom intervals needed
correcting).

Remaining gaps before this can close

Likely-incomplete / untested:

  • Watering (allotment/flower/hops, apply_water) and compost / supercompost
    (apply_compost) — wired but never verified in-game; quite possibly broken.
  • Trees — plant / grow / check-health / harvest untested.
  • Bushes — plant / grow / check-health / berry harvest untested.

Deferred (not built yet):

  • Produce loops after check-health — trees, fruit trees, and bushes currently
    only grant the check-health XP. Chopping logs from a grown tree and picking
    fruit/berries (the actual yield loop) isn't implemented.
  • Gardener crop protection (free + paid).
  • Compost-bin minigame (compost-bin objects 7836-7839 / varbits 740-743 — not
    in the data yet).

Verification debt:

  • Only allotment / flower / hops / herb render formulas are ground-truthed
    against the 468 cache morph ladders. Tree / fruit-tree / bush and the
    additive-offset specials still use unverified offset tables — same class of bug
    as the dead-crop-rendered-as-watered fix — so they should be cache-checked
    before their visuals are trusted.
## Status (branch `feat/farming-and-walk-fix`, not yet merged) Allotment lifecycle is verified in-game: rake → plant → grow → harvest, plus disease/death rendering, read-only **Inspect**, dig-up (incl. diseased crops), real-time growth on the **OSRS global growth-tick schedule** with a stored per-player offset, and crash-safe synchronous persistence. Flowers / hops / herbs share the same code paths and their render values are cache-verified, but haven't each been play-tested individually. Growth intervals + per-seed stages were audited against the OSRS Seeds wiki (only the cactus/mushroom intervals needed correcting). ## Remaining gaps before this can close **Likely-incomplete / untested:** - **Watering** (allotment/flower/hops, `apply_water`) and **compost / supercompost** (`apply_compost`) — wired but never verified in-game; quite possibly broken. - **Trees** — plant / grow / check-health / harvest untested. - **Bushes** — plant / grow / check-health / berry harvest untested. **Deferred (not built yet):** - **Produce loops after check-health** — trees, fruit trees, and bushes currently only grant the check-health XP. Chopping logs from a grown tree and picking fruit/berries (the actual yield loop) isn't implemented. - **Gardener crop protection** (free + paid). - **Compost-bin minigame** (compost-bin objects 7836-7839 / varbits 740-743 — not in the data yet). **Verification debt:** - Only **allotment / flower / hops / herb** render formulas are ground-truthed against the 468 cache morph ladders. **Tree / fruit-tree / bush** and the additive-offset specials still use unverified offset tables — same class of bug as the dead-crop-rendered-as-watered fix — so they should be cache-checked before their visuals are trusted.
Author
Owner

Closing — farming implemented. Wall-clock lazy crop growth (grows offline), disease, per-patch varbit visuals, persistence (skills/farming.ex + Farming.Crop/Visual ~1310 lines).

Closing — farming implemented. Wall-clock lazy crop growth (grows offline), disease, per-patch varbit visuals, persistence (skills/farming.ex + Farming.Crop/Visual ~1310 lines).
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
BlackLobster/Server#5
No description provided.