Bump the engine submodule to d0104df (Suitability.Gaussian). Each plant now carries a diploid PlantGenome (allele pairs, phenotype = allele average) seeded from a per-species GenomeDef baseline at spawn. PlantGrowthSystem replaces the flat fertility multiplier with vigor times a product of Gaussian suitabilities for light (day/night), temperature (climate season) and the cell's fertility — so plants grow faster in their preferred light/warmth/soil and crawl outside it. Genomes are visible and editable in the ECS inspector. plants.json carries the species genomes. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
37 lines
2.4 KiB
JSON
37 lines
2.4 KiB
JSON
{
|
|
"type": "Plant",
|
|
"defs": [
|
|
{ "defName": "BaseTree", "abstract": true, "sizeCells": 2.0, "trunkRadiusCells": 0.28,
|
|
"genome": { "optimalLight": 0.6, "lightTolerance": 0.5, "optimalTemperature": 14, "temperatureTolerance": 16,
|
|
"optimalFertility": 1.4, "fertilityTolerance": 0.9, "vigor": 1.0, "spread": 0.08 },
|
|
"stages": [
|
|
{ "texture": "things/plant/seed_default", "sizeCells": 0.6, "growDays": 4, "label": "plant.stage.seedling" },
|
|
{ "sizeCells": 1.2, "growDays": 9, "label": "plant.stage.sapling" },
|
|
{ "sizeCells": 2.0, "label": "plant.stage.mature" }
|
|
] },
|
|
{ "defName": "TreeOakA", "parent": "BaseTree", "label": "plant.oak", "texture": "things/plant/treeoak/TreeOakA" },
|
|
{ "defName": "TreeOakB", "parent": "BaseTree", "label": "plant.oak", "texture": "things/plant/treeoak/TreeOakB" },
|
|
{ "defName": "TreeBirchA", "parent": "BaseTree", "label": "plant.birch", "texture": "things/plant/treebirch/TreeBirchA" },
|
|
{ "defName": "TreeGrayPineA", "parent": "BaseTree", "label": "plant.pine", "texture": "things/plant/treegraypine/TreeGrayPineA" },
|
|
|
|
{ "defName": "GrassA", "label": "plant.grass", "texture": "things/plant/grass/grassa", "sizeCells": 1.2,
|
|
"genome": { "optimalLight": 0.85, "lightTolerance": 0.35, "optimalTemperature": 20, "temperatureTolerance": 12,
|
|
"optimalFertility": 1.0, "fertilityTolerance": 1.0, "vigor": 1.3, "spread": 0.1 },
|
|
"stages": [
|
|
{ "texture": "things/plant/seed_default", "sizeCells": 0.5, "growDays": 2, "label": "plant.stage.sprout" },
|
|
{ "sizeCells": 1.2, "label": "plant.stage.mature" }
|
|
] },
|
|
|
|
{ "defName": "BaseBush", "abstract": true, "label": "plant.bush", "sizeCells": 1.4,
|
|
"genome": { "optimalLight": 0.6, "lightTolerance": 0.5, "optimalTemperature": 17, "temperatureTolerance": 13,
|
|
"optimalFertility": 1.1, "fertilityTolerance": 1.0, "vigor": 1.0, "spread": 0.1 },
|
|
"stages": [
|
|
{ "texture": "things/plant/seed_default", "sizeCells": 0.6, "growDays": 3, "label": "plant.stage.sprout" },
|
|
{ "sizeCells": 1.4, "label": "plant.stage.mature" }
|
|
] },
|
|
{ "defName": "BushA", "parent": "BaseBush", "texture": "things/plant/bush/BushA" },
|
|
{ "defName": "BushB", "parent": "BaseBush", "texture": "things/plant/bush/BushB" },
|
|
{ "defName": "BushC", "parent": "BaseBush", "texture": "things/plant/bush/BushC" }
|
|
]
|
|
}
|