Finish birth refusal integration and stabilize client panel checks
Foundation / checks (checks) (push) Successful in 42m5s
Foundation / checks (deploy) (push) Successful in 5s
Foundation / checks (ecs) (push) Successful in 2m24s
Foundation / checks (network) (push) Successful in 18m43s
Foundation / checks (postgres) (push) Successful in 44m0s
Foundation / checks (tsan) (push) Successful in 10m8s
Foundation / checks (client) (push) Successful in 15m13s
Foundation / postgres-tools (push) Successful in 31s
Foundation / server-image (push) Successful in 3m18s
Foundation / image (push) Successful in 3m23s
Foundation / checks (checks) (push) Successful in 42m5s
Foundation / checks (deploy) (push) Successful in 5s
Foundation / checks (ecs) (push) Successful in 2m24s
Foundation / checks (network) (push) Successful in 18m43s
Foundation / checks (postgres) (push) Successful in 44m0s
Foundation / checks (tsan) (push) Successful in 10m8s
Foundation / checks (client) (push) Successful in 15m13s
Foundation / postgres-tools (push) Successful in 31s
Foundation / server-image (push) Successful in 3m18s
Foundation / image (push) Successful in 3m23s
This commit is contained in:
+40
-34
@@ -635,16 +635,17 @@ void cell_vitals(const PanelView& v) {
|
||||
void cell_food(const PanelView& v, PanelActions& a, FormBuffers& form) {
|
||||
ImGui::TextColored(green, "FEED & SURVIVE");
|
||||
ImGui::Checkbox("Feed automatically", &form.cellular_controls.auto_feed);
|
||||
ImGui::Checkbox("Slow near food", &form.cellular_controls.slow_near_food);
|
||||
ImGui::Checkbox("Precision steering (20%)", &form.cellular_controls.precision);
|
||||
ImGui::SetNextItemWidth(-1);
|
||||
ImGui::SliderInt("##speed", &form.cellular_controls.speed_percent, 1, 100, "Speed: %d%%");
|
||||
disabled_wrapped(
|
||||
"Map key: gold E = energy, teal M = matter; no letters = empty (zoom in to "
|
||||
"see letters). Auto feed prefers energy in contact. Choose a patch for manual feeding.");
|
||||
disabled_wrapped("Patch stock is finite and shared. Matter does not replenish energy. Uptake "
|
||||
"is limited by your cell; stock is not a promise of gain each tick. Upkeep is "
|
||||
"paid before feeding.");
|
||||
disabled_wrapped("Map: gold E = energy / teal M = matter. Zoom in to read markers.");
|
||||
if (ImGui::CollapsingHeader("Steering assistance")) {
|
||||
ImGui::Checkbox("Slow near food", &form.cellular_controls.slow_near_food);
|
||||
ImGui::Checkbox("Precision steering (20%)", &form.cellular_controls.precision);
|
||||
ImGui::SetNextItemWidth(-1);
|
||||
ImGui::SliderInt("##speed", &form.cellular_controls.speed_percent, 1, 100, "Speed: %d%%");
|
||||
}
|
||||
if (ImGui::CollapsingHeader("Feeding & energy explained"))
|
||||
disabled_wrapped("Patch stock is finite and shared. Matter does not replenish energy. "
|
||||
"Uptake is limited by your cell and upkeep is paid before feeding. "
|
||||
"Auto feed prefers energy in contact. Choose a patch for manual feeding.");
|
||||
const bool active = v.cellular_play && v.cellular_play->fresh() && v.cellular_play->life() != 0;
|
||||
ImGui::BeginDisabled(!active);
|
||||
if (v.cellular_feed_target && ImGui::Button("Stop feeding", {-1, 0}))
|
||||
@@ -652,30 +653,35 @@ void cell_food(const PanelView& v, PanelActions& a, FormBuffers& form) {
|
||||
if (const auto* p = v.cellular_perception) {
|
||||
if (p->patches.empty())
|
||||
disabled_wrapped("No food is visible within sensor range.");
|
||||
for (const auto& patch : p->patches) {
|
||||
ImGui::PushID(static_cast<int>(patch.x_um));
|
||||
ImGui::PushID(static_cast<int>(patch.y_um));
|
||||
ImGui::Separator();
|
||||
ImGui::Text("Patch %u / %u um", patch.x_um, patch.y_um);
|
||||
const bool has_matter =
|
||||
std::ranges::any_of(patch.matter_fg, [](auto amount) { return amount != 0; });
|
||||
ImGui::TextColored(patch.energy_pj != 0 ? amber : green, "%s",
|
||||
patch.energy_pj != 0 ? "E ENERGY AVAILABLE"
|
||||
: has_matter ? "M MATTER ONLY / NO ENERGY"
|
||||
: "EMPTY / DEPLETED");
|
||||
ImGui::Text("Energy stock: %llu pJ", static_cast<unsigned long long>(patch.energy_pj));
|
||||
ImGui::TextWrapped("C %llu / N %llu / P %llu / other %llu fg",
|
||||
static_cast<unsigned long long>(patch.matter_fg[0]),
|
||||
static_cast<unsigned long long>(patch.matter_fg[1]),
|
||||
static_cast<unsigned long long>(patch.matter_fg[2]),
|
||||
static_cast<unsigned long long>(patch.matter_fg[3]));
|
||||
const bool selected = v.cellular_feed_target == std::pair{patch.x_um, patch.y_um};
|
||||
if (selected)
|
||||
ImGui::TextColored(green, "FEEDING TARGET");
|
||||
else if (ImGui::Button("Feed here", {-1, 0}))
|
||||
a.feed_patch = {patch.x_um, patch.y_um};
|
||||
ImGui::PopID();
|
||||
ImGui::PopID();
|
||||
for (const bool target_first : {true, false}) {
|
||||
for (const auto& patch : p->patches) {
|
||||
const bool selected = v.cellular_feed_target == std::pair{patch.x_um, patch.y_um};
|
||||
if (selected != target_first)
|
||||
continue;
|
||||
ImGui::PushID(static_cast<int>(patch.x_um));
|
||||
ImGui::PushID(static_cast<int>(patch.y_um));
|
||||
ImGui::Separator();
|
||||
ImGui::Text("Patch %u / %u um", patch.x_um, patch.y_um);
|
||||
const bool has_matter =
|
||||
std::ranges::any_of(patch.matter_fg, [](auto amount) { return amount != 0; });
|
||||
ImGui::TextColored(patch.energy_pj != 0 ? amber : green, "%s",
|
||||
patch.energy_pj != 0 ? "E ENERGY AVAILABLE"
|
||||
: has_matter ? "M MATTER ONLY / NO ENERGY"
|
||||
: "EMPTY / DEPLETED");
|
||||
ImGui::Text("Energy stock: %llu pJ",
|
||||
static_cast<unsigned long long>(patch.energy_pj));
|
||||
ImGui::TextWrapped("C %llu / N %llu / P %llu / other %llu fg",
|
||||
static_cast<unsigned long long>(patch.matter_fg[0]),
|
||||
static_cast<unsigned long long>(patch.matter_fg[1]),
|
||||
static_cast<unsigned long long>(patch.matter_fg[2]),
|
||||
static_cast<unsigned long long>(patch.matter_fg[3]));
|
||||
if (selected)
|
||||
ImGui::TextColored(green, "FEEDING TARGET");
|
||||
else if (ImGui::Button("Feed here", {-1, 0}))
|
||||
a.feed_patch = {patch.x_um, patch.y_um};
|
||||
ImGui::PopID();
|
||||
ImGui::PopID();
|
||||
}
|
||||
}
|
||||
}
|
||||
ImGui::EndDisabled();
|
||||
|
||||
Reference in New Issue
Block a user