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

Normal trains should be able to capture or remove undefended trains #6

Open
jdimeo opened this issue Dec 22, 2020 · 1 comment
Open
Labels
Blocked Blocked by something in the TripleA game engine

Comments

@jdimeo
Copy link
Collaborator

jdimeo commented Dec 22, 2020

Ideally, undefended trains would be capturable like trenches during combat move since they are infrastructure. But if they can't be captured they should be able to "push out" enemy trains blocking their path without a fight (or always lose if there is an armored train)

@jdimeo
Copy link
Collaborator Author

jdimeo commented Dec 26, 2020

Using isInfrastructure for trains would be an elegant/easy way of solving this (so normal combat if armored trains are present, immediate capture of railguns and trains if not), but I found on line 545 of BattleTracker:

    // This could be NULL if unowned water
    final TerritoryAttachment ta = TerritoryAttachment.get(territory);
    if (ta == null) {
      // TODO: allow capture/destroy of infrastructure on unowned water
      return;
    }

jdimeo added a commit that referenced this issue Dec 27, 2020
…t (train) + destroyer (armored train) logic, giving armored train strong attack to win most battles.

Tweak train prices.
@jdimeo jdimeo added the Blocked Blocked by something in the TripleA game engine label Dec 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Blocked Blocked by something in the TripleA game engine
Projects
None yet
Development

No branches or pull requests

1 participant