Apiary: a living starter hive fed by your habits #8
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/apiary"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Stacked on #7.
The first playable slice of the game: keep habits, the day closes, Rewards credits it, and the Apiary turns it into resources and a livelier colony.
Apiary context (backend):
Keeper(stores of nectar, pollen and honey in grams; items; vitality) andHive(a queen with a six-trait genome and recognised species, colony strength, honey, capacity).ColonyPolicy v1. Honey depends on workers, productivity and vitality; the colony grows towards what vitality sustains. Nothing ticks on the server.GetApiarysettles stored figures to now with the policy (a pure function), without loading or saving aggregates.OpenApiary(idempotent). A same-context handler ofApiaryOpenedbuilds the starter hive: Andalusia, an Iberian queen.HoneyHarvestedcredits the keeper once.RewardGrantedV1(stores, items) andVitalityChangedV1(keeper, and every hive after settling at the old value).Web (apiary feature):
ui/src/game(new lint rule) and only in the apiary route's lazy chunk (about 300 kB transferred). The initial bundle is unchanged.hab-meteratom.Fix: the dev proxy matched
/apias a prefix, so the/apiarypage went to the API. It now matches/api/only (pitfall recorded in TOOLING).Checked:
Not yet: breeding, biomes, spells, threats; rewards granted before this context existed are not replayed.
🤖 Generated with Claude Code