Senses stage 1: smell/touch capacities, organs, acuity + detectability genes
Foundation for the perception system. Adds Smell and Touch capacities (CapacityCalc dependency chain x consciousness) with organs on the Quadruped body (nose->Smell, skin->Touch; eyes/ears already give Sight/Hearing) so hediffs and organ damage reduce them for free. New genes: acuity GeneHearing/GeneSmell/GeneTouch (radius multipliers, default 1 if a species omits them) and detectability GeneCamouflage (lower sight), GeneScent (raise smell), GeneNoise (raise hearing) on AnimalPhenotype. Deer/wolf/boar/chicken get sensible values (wolf smells well, deer is alert + dappled). cap.smell/cap.touch localized. Build + --check-content clean (48 genes, 47 traits). Multi-sense detection + memory come next. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.8
parent
dc617521c2
commit
70e79a5c30
@@ -18,6 +18,29 @@
|
||||
{ "defName": "GeneVision", "parent": "BaseNumericGene", "label": "gene.vision",
|
||||
"default": 1.0, "min": 0.2, "max": 3.0, "tags": ["animal", "senses"],
|
||||
"effects": { "vision": "value" } },
|
||||
|
||||
// --- Чувства (острота = множитель радиуса восприятия) и заметность (как видят/слышат/чуют ЭТУ особь) ---
|
||||
// Острота работает вместе со способностью органа (глаза/уши/нос/кожа): ген × capacity × радиус чувства.
|
||||
{ "defName": "GeneHearing", "parent": "BaseNumericGene", "label": "gene.hearing",
|
||||
"default": 1.0, "min": 0.2, "max": 3.0, "tags": ["animal", "senses"],
|
||||
"effects": { "hearing": "value" } },
|
||||
{ "defName": "GeneSmell", "parent": "BaseNumericGene", "label": "gene.smell",
|
||||
"default": 1.0, "min": 0.2, "max": 3.0, "tags": ["animal", "senses"],
|
||||
"effects": { "smell": "value" } },
|
||||
{ "defName": "GeneTouch", "parent": "BaseNumericGene", "label": "gene.touch",
|
||||
"default": 1.0, "min": 0.2, "max": 3.0, "tags": ["animal", "senses"],
|
||||
"effects": { "touch": "value" } },
|
||||
// Заметность цели: камуфляж снижает обнаружение зрением (1−camouflage), запах повышает обонянием,
|
||||
// шум при движении повышает обнаружение слухом. См. формулу радиуса в системе восприятия.
|
||||
{ "defName": "GeneCamouflage", "parent": "BaseNumericGene", "label": "gene.camouflage",
|
||||
"default": 0.0, "min": 0.0, "max": 1.0, "tags": ["animal", "stealth"],
|
||||
"effects": { "camouflage": "value" } },
|
||||
{ "defName": "GeneScent", "parent": "BaseNumericGene", "label": "gene.scent",
|
||||
"default": 0.5, "min": 0.0, "max": 1.0, "tags": ["animal", "stealth"],
|
||||
"effects": { "scent": "value" } },
|
||||
{ "defName": "GeneNoise", "parent": "BaseNumericGene", "label": "gene.noise",
|
||||
"default": 0.5, "min": 0.0, "max": 1.0, "tags": ["animal", "stealth"],
|
||||
"effects": { "noise": "value" } },
|
||||
{ "defName": "GeneBrainSize", "parent": "BaseNumericGene", "label": "gene.brainSize",
|
||||
"default": 0.45, "min": 0.0, "max": 1.0, "spread": 0.03, "tags": ["animal", "brain"],
|
||||
"effects": { "brainSize": "value" } },
|
||||
|
||||
Reference in New Issue
Block a user