Skip to content

Implement spice of life upgrade#31

Open
ambrosia13 wants to merge 3 commits into
mainfrom
spiceoflife
Open

Implement spice of life upgrade#31
ambrosia13 wants to merge 3 commits into
mainfrom
spiceoflife

Conversation

@ambrosia13

Copy link
Copy Markdown
Collaborator
  • adds field "uniquePatterns" in Level_manager to track the total unique number of patterns found so far (hash set)
  • adds field "isDealtByPlayer" in Deal_damage component, and if this is true, and the spice of life modifier value is greater than zero, will multiply the damage dealt by the number of unique patterns and the modifier value

@Rockyd3 Rockyd3 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

2 things:

  1. When the upgrade isn't purchased and no patterns have been used yet, I believe the sword no longer does any damage. I assume it's getting multiplied by zero somewhere?
  2. This increments damage by 100% for each new pattern, not by 1%

If you could fix those that'd be much appreciated!

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.

2 participants