mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-02-23 17:10:25 -05:00
fix(curriculum): update wording for RPG project (#53635)
This commit is contained in:
@@ -7,7 +7,7 @@ dashedName: step-127
|
||||
|
||||
# --description--
|
||||
|
||||
In your `defeatMonster` function, set `gold` equal to `gold` plus the monster's level times `6.7`. You can get the monster's level with the `level` property.
|
||||
In your `defeatMonster` function, set `gold` equal to `gold` plus the monster's level times `6.7`. Remember you can get the monster's level by using `monsters[fighting].level`.
|
||||
|
||||
Here is an example of setting `num` to `num` plus `5` * `8`: `num += 5 * 8`. Use `Math.floor()` to round the result down.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user