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
+7
View File
@@ -99,6 +99,13 @@ steer_cellular(const CellularControls& controls, client::Intention intention,
short_on[i + 1] = d.bud_cost_matter_fg[i] > d.reserve_matter_fg[i];
return short_on;
}
[[nodiscard]] inline bool bud_affordable(const network::CellularLifeDiagnostics& d) {
const bool known =
d.bud_cost_energy_pj != 0 ||
std::ranges::any_of(d.bud_cost_matter_fg, [](auto amount) { return amount != 0; });
const auto short_on = bud_shortfall(d);
return known && std::ranges::none_of(short_on, [](bool missing) { return missing; });
}
[[nodiscard]] inline bool can_fund(const network::CellularOfferedCandidate& candidate,
const network::CellularLifeDiagnostics& reserve) {
if (candidate.cost_energy_pj > reserve.reserve_energy_pj)