feat(cellular): seed dev wildlife and tune budding playtests
Foundation / checks (client) (push) Successful in 5s
Foundation / checks (checks) (push) Successful in 5s
Foundation / checks (ecs) (push) Successful in 4s
Foundation / checks (postgres) (push) Successful in 4s
Foundation / checks (network) (push) Successful in 5s
Foundation / checks (tsan) (push) Successful in 4s
Foundation / checks (deploy) (push) Successful in 4m27s
Foundation / postgres-tools (push) Successful in 30s
Foundation / server-image (push) Successful in 4m16s
Foundation / image (push) Successful in 4m54s

This commit is contained in:
dingo
2026-10-26 12:01:57 -04:00
parent 18a64a29cd
commit ff121c3ed1
32 changed files with 738 additions and 78 deletions
+19
View File
@@ -411,6 +411,8 @@ void cellular_panels(const std::filesystem::path& review) {
network::CellularLifeDiagnostics diagnostics;
diagnostics.reserve_energy_pj = 248000;
diagnostics.reserve_matter_fg = {15000, 2400, 800, 6000};
diagnostics.bud_cost_energy_pj = diagnostics.reserve_energy_pj;
diagnostics.bud_cost_matter_fg = diagnostics.reserve_matter_fg;
diagnostics.has_tick_effects = true;
diagnostics.maintenance_cost_pj = 80;
diagnostics.movement_cost_pj = 20;
@@ -680,11 +682,28 @@ void cellular_panels(const std::filesystem::path& review) {
draw();
CHECK(!probe(evolution, 0.17F, [&] { return action.mutation.has_value(); }));
play.outcome({mutation_id, network::ActionResult::committed, 103, 5});
form.evolution_open = false;
draw();
// One missing resource disables Bud; a disabled button still explains its cost.
auto short_reserve = diagnostics;
--short_reserve.reserve_energy_pj;
perception.diagnostics = short_reserve;
draw();
const float bud_x = dock->Pos.x + dock->Size.x * 0.84F;
const float bud_y = dock->Pos.y + ImGui::GetStyle().WindowPadding.y + 20;
mouse(id, SDL_EVENT_MOUSE_MOTION, bud_x, bud_y);
for (int i = 0; i < 3; ++i)
draw();
const auto* bud_tooltip = ImGui::FindWindowByName("##Tooltip_00");
CHECK(bud_tooltip && bud_tooltip->Active);
CHECK(!probe(dock, 0.84F, [&] { return action.cell_action == CellAction::bud; }));
perception.diagnostics = diagnostics;
draw();
bool budded = false;
for (float fraction = 0.1F; fraction < 1.0F && !budded; fraction += 0.1F)
budded = probe(dock, fraction, [&] { return action.cell_action == CellAction::bud; });
CHECK(budded);
form.evolution_open = true;
play.observe_end({104, 901, network::CellularDeathReason::engulfed});
perception = {104, 0, {}, {}};
play.observe(perception);