Menu

#254 custom hill or mountain tiles

Fixed_1.1.0
closed-fixed
None
5
2023-05-19
2023-01-13
artoo
No

I tried to add a tropicalHighlands tile, so far so good, all fine, it griows the coffee.
However, the mapgen will not generate custom hills or mountains, since the code is fixed to these two.

My question would be, what is the best approach to solve this? Patching source?
The need for a custom tile comes from coffee being highland grown, no temperatures below 20 and high humidity.
If I add coffee to the normal hills, it would grow in pretty cold regions, since hills can't be limited to a terrain.

Discussion

  • Stian Grenborgen

    • status: open --> pending-fixed
    • assigned_to: Stian Grenborgen
    • Group: Current --> Fixed_trunk
     
  • Stian Grenborgen

    I have just improved the map generator so that different types of hills/mountains can be defined (for example by having different latitudes).

    • Terrain that permits an altitude of 15 is counted as hills.
    • Terrain that permits an altitude of 25 is counted as mountains.
     
  • artoo

    artoo - 2023-01-14

    Nice, but one unintended side effect, generted tropicalHighland tiles have rivers, is-elevation is true.

     
  • Stian Grenborgen

    Are you saying that you want rivers to be generated on top of the rivers? ...or was there something wrong?

     
  • artoo

    artoo - 2023-01-16

    Reminds me, would you mind accepting the GH PR? Small change but big difference.
    I checked with and without mod, the train panel looks fine with default freecol rules.
    https://github.com/FreeCol/freecol/pull/131

     
  • Stian Grenborgen

    • status: pending-fixed --> closed-fixed
    • Group: Fixed_trunk --> Fixed_1.1.0
     

Log in to post a comment.