-
Notifications
You must be signed in to change notification settings - Fork 36
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
Shrieking hat #586
base: master
Are you sure you want to change the base?
Shrieking hat #586
Conversation
…nto shrieking-hat # Conflicts: # CHANGELOG.md
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.
Complex card, thank you for tackling this! A few comments inline.
return false; | ||
|
||
OldBookPower po = null; | ||
// requested that death preventing cards trigger in order of pickup. | ||
SortedSet<DeathPreventionCard> deathPreventionCards = new TreeSet<>(Comparator.comparingInt(DeathPreventionCard::getPriority)); |
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.
With the change suggested above, we should be able to loop the masterDeck
object first to determine "permanent" cards that were added to the deck that need to be consumed, and then pursue the "temporary" cards using your priority implemented.
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.
It added a little bit more complexity to the the logic, but I think it should work as expected.
…nto shrieking-hat
…or death prevention cards then add them to the sorted set.
… dies without shrieking hat in hand. Old book should trigger in that case.
…ombat (pots, discovery, nilry's, etc).
Shrieking Hat - Unplayable, Retain, When you die instead deal all damage taken while this was in your hand to all enemies and destroy this.
Upgrades to +3 damage
Shrieking Hat card art was already in the code base apparently.