Skip to content

Commit

Permalink
fix(curriculum): update wording of the lesson (#53749)
Browse files Browse the repository at this point in the history
  • Loading branch information
JBhrayn committed Feb 16, 2024
1 parent d176ac7 commit 6963489
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ dashedName: step-141

# --description--

While your game is feature complete at this stage, there are things you can do to make it more fun and engaging. To get started, you'll give `monsters` a dynamic attack value.
While your game is feature-complete at this stage, there are things you can do to make it more fun and engaging. To get started, you'll give `monsters` a dynamic attack value.

Inside your `attack` function, change your `health -= monsters[fighting].level;` line to `health -= getMonsterAttackValue(monsters[fighting].level);`. This sets `health` equal to `health` minus the return value of the `getMonsterAttackValue` function, and passes the `level` of the monster as an argument.

Expand Down

0 comments on commit 6963489

Please sign in to comment.