-
Notifications
You must be signed in to change notification settings - Fork 99
Add limited extra harbor spots addon #1921
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
DevOpsOfChaos
wants to merge
14
commits into
Return-To-The-Roots:master
Choose a base branch
from
DevOpsOfChaos:sidequest/free-harbor-spots-addon
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
31aec23
Add optional free harbor spots addon
DevOpsOfChaos 7eb7728
Generate free harbor spots only during harbor init
DevOpsOfChaos 676ed66
Clarify free harbor spot review changes
DevOpsOfChaos 49cd227
gameplay: warn about free harbor spots addon risk
DevOpsOfChaos dfa8907
Merge branch 'master' into sidequest/free-harbor-spots-addon
DevOpsOfChaos 6d9f758
Merge upstream master into free harbor spots addon
DevOpsOfChaos 5694b35
Move extra harbor spot generation to map setup
DevOpsOfChaos 653fc4b
Merge remote-tracking branch 'upstream/master' into sidequest/free-ha…
DevOpsOfChaos a73ec9a
Merge remote-tracking branch 'upstream/master' into review/pr1921-spr…
DevOpsOfChaos 9baf098
Spread generated harbor spots deterministically
DevOpsOfChaos 83fda19
Enforce minimum distance for generated harbor spots
DevOpsOfChaos 03e7803
Address remaining harbor addon review comments
DevOpsOfChaos 24c2560
Fix additional harbor spots addon build and ordering issues
DevOpsOfChaos ecd3160
Make BQCalculator.h self-contained
DevOpsOfChaos File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| // Copyright (C) 2005 - 2026 Settlers Freaks (sf-team at siedler25.org) | ||
| // | ||
| // SPDX-License-Identifier: GPL-2.0-or-later | ||
|
|
||
| #pragma once | ||
|
|
||
| #include "AddonBool.h" | ||
| #include "mygettext/mygettext.h" | ||
|
|
||
| class AddonAdditionalHarborSpots : public AddonBool | ||
| { | ||
| public: | ||
| AddonAdditionalHarborSpots() | ||
| : AddonBool(AddonId::ADDITIONAL_HARBOR_SPOTS, AddonGroup::GamePlay, _("Dangerous: Add extra harbor spots"), | ||
| _("Advanced option. Converts a small set of suitable coastal castle sites to harbor spots. " | ||
| "Caution: May alter intended map seafaring design.")) | ||
| {} | ||
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
needs a comment on the !=NW
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added a comment explaining the
Direction::NorthWestexclusion. It mirrors the existing coast-assignment rule inInitSeasAndHarbors, keeping candidate collection and final harbor initialization consistent.