Add reproduction safety trial and resizable cellular panels

This commit is contained in:
dingo
2026-10-27 09:13:28 -04:00
parent 7ca5f74f03
commit 5416590f9e
26 changed files with 805 additions and 52 deletions
@@ -57,6 +57,9 @@ struct CellularRevampTuning {
// Multicellular organisms.
std::int64_t organism_load_per_mille{}, organism_emerge_members{}, organism_emerge_mass_fg{},
organism_emerge_reserve_pj{};
// Optional, explicitly versioned reproduction-safety trial (ADR-0181).
std::int64_t reproduction_safety_version{}, body_growth_reserve_seconds{},
reproduction_split_launch_um_per_s{};
// Each catalog mutation's tunables, in catalog order. Optional keys
// `mutation.<key>.<field>` override the defaults from its spec.
std::array<CellularMutationTuning, cellular_catalog_size> mutations{};
@@ -50,6 +50,10 @@ struct CellularRevampRules {
std::uint32_t organism_load_per_thousand{500};
std::uint32_t emerge_members{8};
std::uint64_t emerge_mass_fg{}, emerge_reserve_pj{};
// ADR-0181: 0 preserves historical behavior. Revision 1 makes split_share
// the controlled cell's share, returns bud fees to that cell, launches mutation
// offspring, and protects a growth fuel buffer for every organism.
std::uint32_t safety_version{}, growth_reserve_seconds{}, split_launch_um_per_s{};
auto operator<=>(const CellularRevampRules&) const = default;
};