mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
fix(curriculum): expand description (#53260)
This commit is contained in:
+1
-1
@@ -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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user