Skip to content

Conversation

@adarshdotdev
Copy link
Contributor

What was wrong?

  • Experience (exp) was being incremented by the monster's name (a string), causing exp to become a string and break experience tracking.

What’s changed?

  • Now, exp is incremented by the monster's level (a number), as intended:
    exp += monsters[fighting].level;

Closes #4

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.

Experience is added as a string instead of a number

1 participant