Update plant definitions and localization. Adjusted GrassA sizeCells from 1.2 to 1.5 and added new plant types including BaseWarmTree, BaseColdTree, and various cacti. Enhanced terrain definitions with scatter probabilities for new plants. Updated product definitions to include fiber and mushrooms, and localized new plant and product names in English and Russian. Updated engine subproject commit to 08381703f79377a5bc48fc0745620f8815695b05-dirty.

This commit is contained in:
Leonid Pershin
2026-06-13 06:55:43 +03:00
parent b9bb7006be
commit 9c9502414b
7 changed files with 189 additions and 14 deletions
+16 -2
View File
@@ -45,6 +45,15 @@ public sealed class WorldScene : Scene
/// <summary>Максимум растений на клетку — потолок плотности для размножения.</summary>
public const int DensityCap = 4;
/// <summary>
/// День года, с которого начинается мир — тёплая весна (~16 °C), а не холодный рубеж года.
/// Сдвигает сезонную фазу климата, давая длинный тёплый сезон роста до первой зимы.
/// </summary>
public const int StartDayOfYear = 10;
/// <summary>Час суток на старте мира — утро (07:00), а не полночь.</summary>
public const int StartHour = 7;
private readonly WorldConfig _config;
private readonly WorldSave? _save;
private readonly RectF _bounds;
@@ -89,8 +98,13 @@ public sealed class WorldScene : Scene
GameLayers.EnsureRegistered(renderer);
this.UseTilemaps();
var calendar = Context.UseCalendar(SecondsPerDay);
var climate = Context.UseClimate(ClimateSettings.Default);
var calendar = Context.UseCalendar(SecondsPerDay, StartHour / 24.0);
var climate = Context.UseClimate(
ClimateSettings.Default with
{
StartDayOfYear = StartDayOfYear,
}
);
var dayNight = new DayNight(calendar, DayNightSettings.Default);
// Рельеф детерминирован сидом. Растения: новый мир — скаттер из сида; загрузка — из сейва.