Skip to content

Avoid hugging territory in boat pathfinding #17

@platz1de

Description

@platz1de

Summary

Boats should prefer routes a few pixels away from territories where applicable

Justification

Boats are (and will always be) larger than one pixel, so rendering them directly next too a landmass can look confusing. We want to avoid auch clipping where possible

Proposed Solution

The data needed to give paths along territory is already fully calculated ("distance" in territory manager), so it is enough to increase expansion cost in the pathfinding algorithms accordingly. This increase should be minor (e.g. from 1 10+ tiles from territory, to ~2 max).

We currently achieve a similar effect by giving "free-water" areas lower costs. This bonus could be removed if it provides better results

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions