feat(apiary): breed with alleles, mutate species, analyse queens for honey #13
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/allele-genetics"
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?
The bee game now breeds on genes, in the spirit of the Forestry mod, with our own species and tree.
What changes
ColonyPolicyand its rule vectors don't change. The regional traits are gone; biomes now matter through their wild species.BreedingPolicy.v2): one allele per gene from each side; the dominant one is active and ties are settled at random. Every distinct pair of species the two sides carry gets one mutation roll; a success replaces that side with a pure-bred queen of the new species. Andalusia's tree: Iberian × Rosemary → Lavender (15%), Iberian × Lavender → Dehesa (12%), Lavender × Rosemary → Orange-blossom (10%), Orange-blossom × Dehesa → Alhambra (5%). Open flights meet wild Iberian and rosemary drones.POST /api/apiary/queens/{id}/analysispays 200 g of honey (AnalysisPaidon the Keeper), then a handler analyses the queen. Until then a reserve queen shows only her species, and a hive queen only her active traits. Starter queens come analysed.POST /api/apiary/queens/{id}/releaselets a reserve queen go to free a slot. The app asks for confirmation first.GET /api/apiarynow returns the codex. Wild species say where they live; bred species show their parents once the keeper knows enough.202610311500-allele-genomesconverts stored genomes to the nearest alleles (carried twice, marked analysed);202610311600-release-queensaddsreleased.Checks
nx affected -t lint typecheck test buildpasses, and so does the apiaryint-testagainst Postgres.🤖 Generated with Claude Code