feat(lifecycle): retain inherited offspring plans separately from bodies
Foundation / checks (ecs) (push) Successful in 2m26s
Foundation / checks (deploy) (push) Successful in 4m6s
Foundation / postgres-tools (push) Canceled after 0s
Foundation / server-image (push) Canceled after 0s
Foundation / image (push) Canceled after 0s
Foundation / checks (client) (push) Canceled after 9m29s
Foundation / checks (tsan) (push) Canceled after 7m4s
Foundation / checks (network) (push) Canceled after 9m28s
Foundation / checks (postgres) (push) Canceled after 9m28s
Foundation / checks (checks) (push) Canceled after 9m34s

This commit is contained in:
dingo
2026-10-19 13:55:29 -04:00
parent 5d8aa4d2e3
commit 2c3a3c65a6
16 changed files with 887 additions and 71 deletions
+4 -1
View File
@@ -109,8 +109,11 @@ wildlife_intents(const CellularLives& state, std::uint64_t tick) {
if (!budget)
return std::unexpected{CellularLivesError::biology};
biology::CellularStepIntent intent{};
const auto offspring = state.archive().find(cellular_offspring_genome(life));
if (!offspring)
return std::unexpected{CellularLivesError::archive};
if ((tick + life.identity.life) % wildlife_bud_interval_ticks == 0 &&
biology::fund_bud(*genome, life.growth, life.reserve, temperature)) {
biology::fund_offspring(*genome, *offspring, life.growth, life.reserve, temperature)) {
intent.bud = true;
intents.push_back({life.identity.life, intent});
continue;