]> git.pond.sub.org Git - empserver/commitdiff
fairland: Prefer placing islands away from the edge of the sphere
authorMarkus Armbruster <armbru@pond.sub.org>
Mon, 14 Sep 2020 05:27:45 +0000 (07:27 +0200)
committerMarkus Armbruster <armbru@pond.sub.org>
Sun, 17 Jan 2021 20:24:28 +0000 (21:24 +0100)
When an island gets placed too close to the edge of the sphere of
influence, its side facing the edge will likely be formed by the edge.
Looks unnatural, and can give a clue on the location of the other
continent.

Make place_island() prefer sectors away from the edge: instead of
picking one of the admissible sectors with equal probability, reduce
the probability as we get closer to the edge.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>

No differences found