M11.2a: fund equal primitive lives from finite spawn pools
Foundation / checks (deploy) (push) Successful in 5s
Foundation / checks (ecs) (push) Successful in 2m44s
Foundation / checks (postgres) (push) Canceled after 0s
Foundation / checks (tsan) (push) Canceled after 0s
Foundation / postgres-tools (push) Canceled after 0s
Foundation / server-image (push) Canceled after 0s
Foundation / image (push) Canceled after 0s
Foundation / checks (network) (push) Canceled after 13s
Foundation / checks (checks) (push) Canceled after 3m9s
Foundation / checks (client) (push) Canceled after 3m8s
Foundation / checks (deploy) (push) Successful in 5s
Foundation / checks (ecs) (push) Successful in 2m44s
Foundation / checks (postgres) (push) Canceled after 0s
Foundation / checks (tsan) (push) Canceled after 0s
Foundation / postgres-tools (push) Canceled after 0s
Foundation / server-image (push) Canceled after 0s
Foundation / image (push) Canceled after 0s
Foundation / checks (network) (push) Canceled after 13s
Foundation / checks (checks) (push) Canceled after 3m9s
Foundation / checks (client) (push) Canceled after 3m8s
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
#include "evo/biology/genome.hpp"
|
||||
#include "evo/biology/metabolism.hpp"
|
||||
|
||||
#include <cstdint>
|
||||
#include <expected>
|
||||
@@ -28,4 +28,18 @@ inline constexpr std::uint32_t primitive_founder_development_version = 2;
|
||||
// an invalid identity (zero).
|
||||
[[nodiscard]] std::expected<Genome, GenomeError> primitive_founder(std::uint64_t id,
|
||||
std::uint64_t origin_event);
|
||||
|
||||
// M11.2 founder rules 1 (ADR-0100): fully grown, no damage or spare matter;
|
||||
// 30 seconds of full-speed demand as usable energy. Construction energy is paid
|
||||
// separately into heat. Tunable and versioned; not an account reward.
|
||||
inline constexpr std::uint32_t founder_life_rules = 1;
|
||||
inline constexpr std::uint64_t founder_reserve_seconds = 30;
|
||||
struct FounderEndowment {
|
||||
GrowthState growth{1000, 0};
|
||||
accounting::Inventory body{};
|
||||
accounting::Inventory reserve{};
|
||||
accounting::Picojoules construction{};
|
||||
auto operator<=>(const FounderEndowment&) const = default;
|
||||
};
|
||||
[[nodiscard]] std::expected<FounderEndowment, DevelopmentError> primitive_endowment();
|
||||
} // namespace evo::biology
|
||||
|
||||
Reference in New Issue
Block a user