feat(cellular): split collection evenly across a source's nutrients
Foundation / checks (checks) (push) Successful in 5s
Foundation / checks (client) (push) Successful in 5s
Foundation / checks (ecs) (push) Successful in 5s
Foundation / checks (network) (push) Successful in 5s
Foundation / checks (postgres) (push) Successful in 5s
Foundation / checks (tsan) (push) Successful in 4s
Foundation / checks (deploy) (push) Successful in 4m31s
Foundation / postgres-tools (push) Successful in 21s
Foundation / server-image (push) Successful in 4m21s
Foundation / image (push) Successful in 5m3s

Playtest: phosphorus held growth back everywhere. Per-nutrient collection
limits followed the body recipe (5% phosphorus), but the membrane is 10%
phosphorus, so no cell could collect phosphorus as fast as it builds with it.

Two optional revamp tuning keys, stored in a formerly reserved rules word so
regions opened without them keep their exact meaning:
- feeding.split_evenly: matter from one food source is split equally between
  the nutrients it holds (a carbon-only bubble gives the whole matter limit to
  carbon, carbon and phosphorus half each, all four a quarter each), each share
  scaled by the cell's collection trait;
- feeding.collection_percent: every collection limit per cent (100 default).

The DEV tuning file takes these keys with the image that reads them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
dingo
2026-10-26 15:56:00 -04:00
co-authored by Claude Opus 5.5
parent 054e48579c
commit 51f979a664
9 changed files with 125 additions and 12 deletions
@@ -31,6 +31,13 @@ struct CellularRevampStepRules {
std::uint32_t engulf_reserve_percent{100};
// Share of a kill's remainder left as bubbles at the prey; the rest goes to the spent pool.
std::uint32_t kill_bubble_per_thousand{500};
// Every collection limit, per cent of the body's own (100: unchanged).
std::uint32_t collection_percent{100};
// Matter from one food source is split evenly between the nutrients it holds: all of the
// shared matter limit to a carbon-only bubble, half each to carbon and phosphorus, and so
// on (each share then scaled by the cell's collection trait). Off: per-nutrient limits in
// the body's proportions.
bool split_evenly{};
auto operator<=>(const CellularRevampStepRules&) const = default;
};
// Rules 13: engulf mass is the body plus the declared share of reserve matter.
@@ -23,6 +23,8 @@ struct CellularRevampTuning {
std::int64_t version{};
// Optional DEV opening fixture; zero preserves unseeded, player-origin worlds.
std::int64_t playtest_starting_wildlife_cells{};
// Optional feeding keys: every collection limit per cent, and the even split.
std::int64_t feeding_collection_percent{100}, feeding_split_evenly{};
// Body: the share of upkeep no upkeep-efficiency trait reduces.
std::int64_t body_essential_upkeep_per_mille{};
// Body: share of reserve matter carried as load on handling and thrust costs.