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
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:
@@ -18,6 +18,8 @@ constexpr std::int64_t amount_limit = 1'000'000'000'000'000'000; // pJ or fg per
|
||||
// Schema order is the canonical encoding order.
|
||||
constexpr std::array fields{
|
||||
Field{"tuning.version", &CellularRevampTuning::version, 1, 1'000},
|
||||
Field{"playtest.starting_wildlife_cells",
|
||||
&CellularRevampTuning::playtest_starting_wildlife_cells, 0, 255},
|
||||
Field{"body.essential_upkeep_per_mille", &CellularRevampTuning::body_essential_upkeep_per_mille,
|
||||
0, 1'000},
|
||||
Field{"body.reserve_load_per_mille", &CellularRevampTuning::body_reserve_load_per_mille, 0,
|
||||
@@ -244,12 +246,15 @@ parse_cellular_revamp_tuning(std::string_view text) {
|
||||
tuning.*field.member = *value;
|
||||
}
|
||||
for (std::size_t index = 0; index < fields.size(); ++index)
|
||||
if (!seen.at(index))
|
||||
if (!seen.at(index) && fields.at(index).key != "playtest.starting_wildlife_cells")
|
||||
return std::unexpected{
|
||||
error(CellularTuningErrorKind::missing_key, 0, fields.at(index).key)};
|
||||
if (tuning.version != cellular_revamp_tuning_version)
|
||||
return std::unexpected{
|
||||
error(CellularTuningErrorKind::unsupported_version, 0, "tuning.version")};
|
||||
if (tuning.playtest_starting_wildlife_cells >= tuning.reproduction_organism_cap)
|
||||
return std::unexpected{
|
||||
error(CellularTuningErrorKind::inconsistent, 0, "playtest.starting_wildlife_cells")};
|
||||
if (tuning.mutation_floor_ppm > tuning.mutation_cap_ppm ||
|
||||
tuning.mutation_min_points >= tuning.mutation_max_points)
|
||||
return std::unexpected{
|
||||
|
||||
Reference in New Issue
Block a user