fix(curriculum): expand description (#53260)

This commit is contained in:
Vedang Sardessai
2024-01-18 17:02:42 +05:30
committed by GitHub
parent 48d4d2f27a
commit e9b04b645f
@@ -7,7 +7,7 @@ dashedName: step-141
# --description--
Your game could be complete now, but you can also make it more interesting.
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.