This repository has been archived by the owner on Jan 29, 2020. It is now read-only.
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.
These additions implement the missing framework events for the Conflict Phase.
Changed files:
conflicttracker.js: We need some way of tracking how many conflicts have been initiated or passed by a player. We can't count won, lost, or performed conflicts because when a conflict opportunity is passed it doesn't count as any of those.
conflictphase.js: I added the remaining framework steps once conflicts have been completed, and tidied up the current code a bit so the phase progresses through the conflict declaration steps. I also implemented a new way of changing players, as the conflict phase doesn't necessarily go back and forth from one player to the other (due to cards like e.g. Breakthrough)
player.js: I added functions and variables for tracking Imperial Favor