================================================================
  Plant Trees on Any Terrain  -  v1.0.0
  by Piccinator
================================================================


----------------------------------------------------------------
  ENGLISH
----------------------------------------------------------------

WHAT IT DOES
    Trees can be planted on ANY ground - rock, gravel, sand and
    everything else - instead of only on fertile soil. This works
    for trees placed manually (Tree Planter + Tree Sapling) as
    well as for automatic planting by the Forestry Control Tower.

WHAT IT DOES NOT DO
    Collision handling stays fully intact. Tiles already occupied
    by a building, conveyor, pipe, ramp etc. still reject trees.
    The minimum spacing between trees is also unchanged.

HOW IT WORKS
    A single Harmony postfix on

        Mafi.Core.Terrain.Trees.TreesManager
            .IsGroundFertileAtPosition(Tile2i)

    In the game code the planting check runs as three separate
    steps:

        1. IsBlockedOrOccupied(tile)              -> building / occupied tile
        2. IsGroundFertileAtPosition(tile)        -> terrain        <-- patched
        3. HasEnoughSpacingToOtherTrees(tile, d)  -> minimum spacing

    Only step 2 is forced to "always true". Steps 1 and 3 are not
    touched. The same three checks are used by
    TreePlantingValidator.CanAdd(...) for manually placed trees,
    so both paths are covered by the one patch.

INSTALLATION
    Place this folder - containing manifest.json, 0Harmony.dll and
    AllTerrainTreePlanting.dll - into:

        %APPDATA%\Captain of Industry\Mods\AllTerrainTreePlanting\

    Then enable modding in the game under
    Settings -> Misc -> Modding, and tick the mod when starting or
    loading a save.

SAVES
    The mod can be added to and removed from existing saves at any
    time. Trees already planted on rock stay where they are.

COMPATIBILITY
    Built and tested against game version 0.8.6c.
    Bundles Harmony 2.4.2.
    If a game update renames TreesManager.IsGroundFertileAtPosition,
    the patch stops applying and reports an error in the log:

        %APPDATA%\Captain of Industry\Logs


----------------------------------------------------------------
  DEUTSCH
----------------------------------------------------------------

WAS DIE MOD MACHT
    Baeume koennen auf JEDEM Untergrund gepflanzt werden - Fels,
    Kies, Sand und alles andere - statt nur auf fruchtbarer Erde.
    Das gilt sowohl fuer manuell gesetzte Baeume (Tree Planter +
    Tree Sapling) als auch fuer die automatische Bepflanzung durch
    den Forstturm (Forestry Control Tower).

WAS DIE MOD NICHT MACHT
    Die Kollisionspruefung bleibt vollstaendig erhalten. Auf
    Kacheln, die bereits von einem Gebaeude, Foerderband, Rohr,
    einer Rampe usw. belegt sind, laesst sich weiterhin kein Baum
    pflanzen. Auch der Mindestabstand zwischen Baeumen bleibt
    unveraendert.

WIE ES FUNKTIONIERT
    Ein einziger Harmony-Postfix auf

        Mafi.Core.Terrain.Trees.TreesManager
            .IsGroundFertileAtPosition(Tile2i)

    Im Spielcode laeuft die Pflanzpruefung in drei getrennten
    Schritten ab:

        1. IsBlockedOrOccupied(tile)              -> Gebaeude / belegte Kachel
        2. IsGroundFertileAtPosition(tile)        -> Terrain      <-- gepatcht
        3. HasEnoughSpacingToOtherTrees(tile, d)  -> Mindestabstand

    Nur Schritt 2 wird auf "immer erfuellt" gesetzt. Die Schritte 1
    und 3 bleiben unangetastet. Dieselben drei Pruefungen nutzt auch
    TreePlantingValidator.CanAdd(...) fuer manuell gesetzte Baeume,
    daher deckt der eine Patch beide Wege ab.

INSTALLATION
    Diesen Ordner - mit manifest.json, 0Harmony.dll und
    AllTerrainTreePlanting.dll - ablegen unter:

        %APPDATA%\Captain of Industry\Mods\AllTerrainTreePlanting\

    Danach im Spiel unter Einstellungen -> Sonstiges -> Modding das
    Modding aktivieren und die Mod beim Starten bzw. Laden eines
    Spielstands anhaken.

SPIELSTAENDE
    Die Mod laesst sich jederzeit zu einem laufenden Spielstand
    hinzufuegen und wieder entfernen. Bereits auf Fels gepflanzte
    Baeume bleiben erhalten.

KOMPATIBILITAET
    Gebaut und getestet gegen Spielversion 0.8.6c.
    Enthaelt Harmony 2.4.2.
    Sollte ein Spiel-Update TreesManager.IsGroundFertileAtPosition
    umbenennen, greift der Patch nicht mehr und meldet einen Fehler
    im Log unter:

        %APPDATA%\Captain of Industry\Logs
