-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Great Admiral: Add Repair Fleet ability #13751
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
base: master
Are you sure you want to change the base?
Conversation
…add-great-admiral
|
There's a little bit too much here |
|
Sounds good with me. I'll have this focus on an iterative trigger. |
Every adjacent [unitFilter] unit for Unit Triggers
|
Brought in the latest changes, seems to be working. |
Every adjacent [unitFilter] unit for Unit Triggers
core/src/com/unciv/models/ruleset/unique/UniqueTriggerActivation.kt
Outdated
Show resolved
Hide resolved
core/src/com/unciv/models/ruleset/unique/UniqueTriggerActivation.kt
Outdated
Show resolved
Hide resolved
|
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
|
Conflicts have been resolved. |
| override fun isInvisible(to: Civilization): Boolean = unit.isInvisible(to) | ||
| override fun canAttack(): Boolean = unit.canAttack() | ||
| override fun matchesFilter(filter: String, multiFilter: Boolean) = unit.matchesFilter(filter, multiFilter) | ||
| override fun matchesFilter(filter: String, multiFilter: Boolean) = unit.matchesFilter(filter, multiFilter=multiFilter) |
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.
Seem unnecessary to me
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.
Seems unnecessary, but is...
MapUnitCombatant.kt:22:99 Argument type mismatch: actual type is 'Boolean', but 'GameContext?' was expected.
The matchesFilter signature is...
fun matchesFilter(filter: String, state: GameContext? = cache.state, multiFilter: Boolean = true)Just looks weird because we're skipping the state.
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.
Gotcha 👍🏿
|
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
|
Conflicts have been resolved. |
|
This PR is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 10 days. |
This adds the Great Admiral Repair Fleet ability.
Rather than a special unique to heal adjacent units, it allows
unitTriggerTargetto take inEvery adjacent [mapUnitFilter] unit. When triggered, it invokes the trigger for all adjacent units matchingmapUnitFilter.It also adds the "Change Port" ability, which allows the Great Admiral to move to other coastal cities. Good for when they're blocked in a lake.
Screenshot
Save Game