-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
clear user action prompt during AI's choice if getHideAiActionPrompt(…
…) is enabled, removes need for clearUserActionPrompt
- Loading branch information
1 parent
33e580e
commit e23debb
Showing
1 changed file
with
4 additions
and
16 deletions.
There are no files selected for viewing
This file contains 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
e23debb
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.
Nice work, it certainly is much simpler. The only problem with this specific commit is that the prompt is not immediately cleared after the user makes their decision, hence the original clearing of the prompt straight after
input.take()
.e23debb
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.
Priority always alternates between human and AI, during the AI's turn it will be cleared if CONFIG.getHideAiActionPrompt() is true. It doesn't occur immediately as before but it avoids the problem with complex choices that requires multiple waitForInput using the same message. Is there a specific situation where the prompt persists visibly longer?
e23debb
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.
As soon as I click the land it should disappear as before because I have done what it has asked.
e23debb
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.
Ah, I see that's where the player continue to have priority. Think I found a good place to clear the prompt, in clearValidChoices. The purpose of this method is to remove the highlighted cards, seems reasonable that when we clear the highlighted cards we should also clear the question in the user action prompt. Implemented in e94b547
e23debb
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.
Excellent.