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

[211] Added shuffling when drawing curses and blessings #215

Merged
merged 1 commit into from
Mar 2, 2022
Merged

Conversation

orichalque
Copy link
Owner

@orichalque orichalque commented Feb 28, 2022

@orichalque orichalque linked an issue Feb 28, 2022 that may be closed by this pull request
@@ -191,6 +195,7 @@ var modifiersManagement = {
.filter(element => !this.modifiersDrawPile.includes(element))

if(availableCurses.length > 0) this.addModifier(availableCurses[0])
this.shuffle();
},
resetModifiers: function() {
this.shuffleModifiersDeck()
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you remember what the commented line below is about? Should we remove it or was it something important?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Github doesnt show it in the preview, but line 202 is :
//this.modifiersDrawPile.forEach(card => {if(this.checkIfCurseOrBless(card)) this.removeModifier(card)})

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was related to the changes I had to do when updating the cookie saving system. It implied a consequent refactoring of the curse/blessing system. I kept this line for legacy purposes only :)

Copy link
Collaborator

@RaphaelPage0110 RaphaelPage0110 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added a question on a commented line. You can merge this whenever you want :)

@orichalque orichalque merged commit bacd4d0 into dev Mar 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Quick curse button not working properly
2 participants