From cad4b5f38fe78f76a02910b8345b5be99a58c799 Mon Sep 17 00:00:00 2001 From: Leonid Pershin Date: Sun, 14 Jun 2026 23:24:19 +0300 Subject: [PATCH] Remove mountains from the map (forest covers the high band for now) Dropped the Mountain terrain def and extended Forest to maxHeight 1.01, so the former mountain elevations generate forest instead. No terrain blocks light now; the occluder mechanism stays generic (mature trees still cast shadows) -- updated the stale "mountain" comments. Removed the unused terrain.mountain localization. Build + --check-content clean. Co-Authored-By: Claude Opus 4.8 --- Mods/Core/Defs/Terrain/Terrain.json | 6 ++---- Mods/Core/Languages/en/ui.json | 1 - Mods/Core/Languages/ru/ui.json | 1 - src/LittleSim/Scenes/WorldScene.cs | 4 ++-- 4 files changed, 4 insertions(+), 8 deletions(-) diff --git a/Mods/Core/Defs/Terrain/Terrain.json b/Mods/Core/Defs/Terrain/Terrain.json index 36fb0fb..9acb1c9 100644 --- a/Mods/Core/Defs/Terrain/Terrain.json +++ b/Mods/Core/Defs/Terrain/Terrain.json @@ -19,7 +19,7 @@ { "chance": 0.20, "options": ["Strawberry", "Raspberry"] }, { "chance": 0.14, "options": ["DandelionA", "DandelionB", "DandelionC", "DaylilyA", "DaylilyB", "RoseA"] } ] }, - { "defName": "Forest", "label": "terrain.forest", "maxHeight": 0.85, "color": [44, 110, 50], + { "defName": "Forest", "label": "terrain.forest", "maxHeight": 1.01, "color": [44, 110, 50], "isLand": true, "surface": "terrain/surfaces/soil", "fertility": 1.6, "scatter": [ { "chance": 0.35, "options": ["TreeOakA", "TreeOakB", "TreeBirchA", "TreeGrayPineA", @@ -28,8 +28,6 @@ { "chance": 0.16, "options": ["BushA", "BushB", "BushC"] }, { "chance": 0.14, "options": ["Strawberry", "Raspberry"] }, { "chance": 0.16, "options": ["GlowstoolA", "GlowstoolB", "TimbershroomA", "TimbershroomB", "NutrifungusA"] } - ] }, - { "defName": "Mountain", "label": "terrain.mountain", "maxHeight": 1.01, "color": [136, 132, 128], - "surface": "terrain/surfaces/roughhewnrock", "fertility": 0.2, "blocksLight": true } + ] } ] } diff --git a/Mods/Core/Languages/en/ui.json b/Mods/Core/Languages/en/ui.json index a6fc144..85fe1ce 100644 --- a/Mods/Core/Languages/en/ui.json +++ b/Mods/Core/Languages/en/ui.json @@ -146,7 +146,6 @@ "terrain.sand": "sand", "terrain.grass": "grass", "terrain.forest": "forest", - "terrain.mountain": "mountains", "plant.oak": "oak", "plant.birch": "birch", "plant.pine": "pine", diff --git a/Mods/Core/Languages/ru/ui.json b/Mods/Core/Languages/ru/ui.json index ad384f2..fbe410d 100644 --- a/Mods/Core/Languages/ru/ui.json +++ b/Mods/Core/Languages/ru/ui.json @@ -146,7 +146,6 @@ "terrain.sand": "песок", "terrain.grass": "трава", "terrain.forest": "лес", - "terrain.mountain": "горы", "plant.oak": "дуб", "plant.birch": "берёза", "plant.pine": "сосна", diff --git a/src/LittleSim/Scenes/WorldScene.cs b/src/LittleSim/Scenes/WorldScene.cs index d0d694b..4412c46 100644 --- a/src/LittleSim/Scenes/WorldScene.cs +++ b/src/LittleSim/Scenes/WorldScene.cs @@ -70,8 +70,8 @@ public sealed class WorldScene : Scene private SkillSet _skills = null!; private float[] _cellFertility = []; private bool[] _cellLand = []; - private bool[] _cellOccluderBase = []; // горы (статично из террейна) - private bool[] _cellOccluder = []; // горы + зрелые деревья (пересобирается лайтмапом) + private bool[] _cellOccluderBase = []; // светонепроницаемый террейн (статично; сейчас такого нет) + private bool[] _cellOccluder = []; // террейн-окклюдеры + зрелые деревья (пересобирается лайтмапом) /// Новый мир из конфига. public WorldScene(WorldConfig config)