feat(cellular): playtest fixes - edge, cell count, mixed bubbles, still pools
Foundation / checks (checks) (push) Successful in 5s
Foundation / checks (client) (push) Successful in 5s
Foundation / checks (ecs) (push) Successful in 4s
Foundation / checks (network) (push) Successful in 4s
Foundation / checks (postgres) (push) Successful in 4s
Foundation / checks (tsan) (push) Successful in 5s
Foundation / checks (deploy) (push) Successful in 4m29s
Foundation / postgres-tools (push) Successful in 29s
Foundation / server-image (push) Successful in 4m24s
Foundation / image (push) Successful in 4m58s
Foundation / checks (checks) (push) Successful in 5s
Foundation / checks (client) (push) Successful in 5s
Foundation / checks (ecs) (push) Successful in 4s
Foundation / checks (network) (push) Successful in 4s
Foundation / checks (postgres) (push) Successful in 4s
Foundation / checks (tsan) (push) Successful in 5s
Foundation / checks (deploy) (push) Successful in 4m29s
Foundation / postgres-tools (push) Successful in 29s
Foundation / server-image (push) Successful in 4m24s
Foundation / image (push) Successful in 4m58s
From the first rules-13 playtest: - An earned offer waits until a single cell can split (keeping its count), so choices are no longer refused one after another. - The client draws the region's walls (dimming outside), names the edge when the cell is against it, shows the region's cell count, and says when upkeep is burning kept matter because no energy is left. - Mixed bubbles hold every nutrient at once (--mixed-motes; none leaves the scatter stream unchanged) and are drawn as small pools of their nutrients. With intake split by the body's recipe, single-nutrient phosphorus bubbles fed slowly; mixed ones carry it with everything else. - Liquid openings move each pool out of the currents to the nearest still water (cellular_still_centre). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -334,19 +334,14 @@ void a_choice_splits_the_cell(bool become) {
|
||||
"control did not follow the choice");
|
||||
require(state->habitat().patches().size() >= deposits + 1, "the paid cost was not reclaimed");
|
||||
closed(*state);
|
||||
// A half-grown founder cannot split again: the choice is refused and the offer kept.
|
||||
// A half-grown founder cannot split again, so its next offer waits until it has regrown.
|
||||
if (!become) {
|
||||
for (int tick = 0; tick < 40; ++tick)
|
||||
checked(state->advance_tick(swim(*state, {1'000, 0})), "swim tick");
|
||||
const auto offer = life_of(*state, 101).revamp.offer;
|
||||
require(offer.count == 3, "no second offer");
|
||||
const auto refused =
|
||||
checked(state->advance_tick_with_mutations(swim(*state, {}),
|
||||
choose(*state, 101, offer.ids.at(1), 9'010)),
|
||||
"refused split tick");
|
||||
require(refused.mutations.front().result == CellularMutationResult::split_refused &&
|
||||
life_of(*state, 101).revamp.offer == offer && !state->archive().find(9'010),
|
||||
"a split below full growth was not refused with the offer kept");
|
||||
const auto& founder_now = life_of(*state, 101);
|
||||
require(founder_now.growth.realized_per_thousand < 1'000 &&
|
||||
founder_now.revamp.offer.count == 0,
|
||||
"a half-grown founder was offered a split");
|
||||
closed(*state);
|
||||
}
|
||||
// Rules 13 wildlife (the founder after become): its controller's intents are always
|
||||
|
||||
Reference in New Issue
Block a user