Cities next to Ponds Shouldn't Build Navies

Open
#355 2 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
30/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
csharp, godot
Domain
game-dev

Research direction

Start by reading the AI city-production logic that decides whether a city should build naval units, then check how it distinguishes a usable water body from a coast or small lake. The issue names no files or tests, so locate the relevant entry point and existing AI tests first. Done means a city next to a small, unusable lake no longer chooses a navy; the issue also raises, but does not define, making the lake-size threshold configurable.

Written by the indexing model from the issue text.

Description

bug low priority

In Civ, there's a minimum size, I think it's 21, for lakes to support navies. This should probably be configurable, as sometimes it would be nice to do a stealth invasion across a small lake.

But right now, the C7 AI just looks at the presence of a coast:

image

That navy is never going to be useful; Croton should be building something else.

Marking as a bug but also as low-priority since this is a rare and not super consequential occurrence. You can still fix it if you want though.

Dominant language
C#
Stars
662
Forks
67
Avg merge
5d 19h
Merged PRs (30d)
27

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from C7-Game/OpenCiv3

All issues in C7-Game/OpenCiv3

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.