fix(curriculum): update wording of the lesson (#53749)

This commit is contained in:
Jose Bhrayn
2024-02-16 12:20:30 +07:00
committed by GitHub
parent d176ac7d5e
commit 696348953d
@@ -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.