{ "type": "Gene", // Контент-гены (фаза G4+): плодоношение, добыча, цвет, производные и дискретные морфы. "defs": [ { "defName": "GeneFruitYield", "parent": "BaseNumericGene", "label": "gene.fruitYield", "default": 0, "min": 0, "max": 12, "tags": ["fruiting"], "effects": { "fruitYield": "value" } }, { "defName": "GeneFruitSeason", "parent": "BaseNumericGene", "label": "gene.fruitSeason", "default": 1, "min": 0, "max": 3, "spread": 0, "mutationChance": 0, "tags": ["fruiting"], "effects": { "fruitSeason": "value" } }, { "defName": "GeneHarvestAmount", "parent": "BaseNumericGene", "label": "gene.harvestAmount", "default": 1, "min": 0, "max": 50, "tags": ["harvest"], "effects": { "harvestAmount": "value" } }, { "defName": "GeneLeafHue", "parent": "BaseNumericGene", "label": "gene.leafHue", "default": 0.33, "min": 0, "max": 1, "spread": 0.04, "tags": ["morphology", "color"], "effects": { "leafHue": "value" } }, // Производный ген: признак собирается группировкой по регэкспу — сумма всех генов-толерантностей // (демонстрация gsom-функций фазы G5). Собственное значение гена не используется. { "defName": "GeneHardiness", "parent": "BaseNumericGene", "label": "gene.hardiness", "default": 0, "min": 0, "max": 1, "spread": 0, "mutationChance": 0, "tags": ["derived"], "effects": { "hardiness": "gsum('Gene.*Tolerance')" } }, // Дискретный ген морфы: вариант 0 доминирует, 1 (рецессивный) виден только в гомозиготе. { "defName": "GeneMorph", "kind": "Discrete", "label": "gene.morph", "variants": 2, "variantWeights": [0.82, 0.18], "mutationChance": 0.05, "tags": ["morphology"], "effects": { "variant": "value" } } ] }