Skip to content
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

[18Norway] Only ships are allowed to use harbors #11427

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

patrikolesen
Copy link
Contributor

Only ships are allowed to use harbors

Before clicking "Create"

  • Branch is derived from the latest master
  • Add the pins or archive_alpha_games label if this change will break existing games
  • Code passes linter with docker compose exec rack rubocop -a
  • Tests pass cleanly with docker compose exec rack rake

Implementation Notes

Explanation of Change

Screenshots

Any Assumptions / Hacks

@@ -453,20 +453,19 @@ def for_graph_city_tokened_by?(city, entity, graph)
harbor_token?(city, entity)
end

def connected?(a, b, corporation)
def connected?(a, b, corporation, train)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"train" might not be a good name of this parameter, as it can be a ship.
How about train_or_ship? Or some other name that includes both? (moveable?)

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that naming is fine. The ships are being implemented as Train objects, so it will be a train that is passed as a parameter.

@ollybh ollybh added new games Issues relating to games that are not yet alpha test level 18Norway labels Jan 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
18Norway new games Issues relating to games that are not yet alpha test level
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants