feat(cellular): show growth and gate splits; DEV splits at half growth
Foundation / checks (client) (push) Successful in 5s
Foundation / checks (checks) (push) Successful in 5s
Foundation / checks (network) (push) Successful in 5s
Foundation / checks (ecs) (push) Successful in 5s
Foundation / checks (postgres) (push) Successful in 5s
Foundation / checks (tsan) (push) Successful in 5s
Foundation / checks (deploy) (push) Successful in 4m32s
Foundation / postgres-tools (push) Successful in 28s
Foundation / server-image (push) Successful in 4m21s
Foundation / image (push) Successful in 5m1s

Playtest: after one mutation every later choice came back "split refused"
because a split needs a grown cell, and the client gave no reason. The v14
body block now carries the body's growth per thousand (the reserved bytes)
and a split-ready flag; the client disables Stay / Become until the cell can
split ("Grow to split (now 62%)") and shows growth in the Body panel.
Adhesion and organism choices do not split and stay open.

The DEV revamp tuning splits once half grown (split_min_growth 500, was full
growth); it takes effect in the next region opened.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
dingo
2026-10-26 08:28:57 -04:00
co-authored by Claude Opus 5.5
parent 542cefafce
commit e2da92768c
10 changed files with 47 additions and 21 deletions
+9 -2
View File
@@ -1426,7 +1426,8 @@ void hud_notes(const PanelView& v, FormBuffers& form, PanelActions& a, bool comp
}
if (ImGui::CollapsingHeader("Body")) {
const auto& t = d->traits;
ImGui::Text("Mass %s", mass_text(d->total_mass_fg).c_str());
ImGui::Text("Mass %s Grown %u%%", mass_text(d->total_mass_fg).c_str(),
static_cast<unsigned>(d->growth_per_thousand / 10));
ImGui::TextDisabled("Density %u Upkeep efficiency %u Growth %u", unsigned{t[0]},
unsigned{t[1]}, unsigned{t[2]});
ImGui::TextDisabled("Engulf capacity %u Kill absorption %u", unsigned{t[12]},
@@ -1585,6 +1586,9 @@ void named_offer_card(const PanelView& v, const network::CellularMutationOffer&
ImGui::EndTable();
const bool organism = d && d->members > 1;
const bool adhesion = spec.effect == biology::CellularEffect::acquire_adhesion;
// A choice that splits the cell waits until it has grown enough (the offer waits too).
const bool splits = !organism && !adhesion;
const bool grown = !splits || (d && d->split_ready);
if (adhesion)
disabled_wrapped("Your cell and its split-off offspring stay joined: one organism with "
"one genome and one reserve, growing toward Emerge.");
@@ -1593,9 +1597,12 @@ void named_offer_card(const PanelView& v, const network::CellularMutationOffer&
else
disabled_wrapped("Your cell splits: both keep the change in their plan; only the "
"offspring expresses it.");
if (!grown)
ImGui::TextColored(amber, "Grow to split (now %u%%). Feed; the offer waits.",
d ? static_cast<unsigned>(d->growth_per_thousand / 10) : 0U);
const bool ready =
play && play->can_act() && v.remote && v.remote->server_tick > offer.offer_tick;
ImGui::BeginDisabled(!affordable || !ready);
ImGui::BeginDisabled(!affordable || !ready || !grown);
const MutationChoice stay{offer.life_identity, offer.event_index, offer.offer_tick,
c.operator_id, false};
if (organism || adhesion) {