---
id: 5d7f3b6c7c4263f469c36b17
title: Part 105
challengeType: 0
isHidden: true
---
## Description
In the `defeatMonster` function, set `gold` to equal `gold` plus the monster's level times 6.7. You can get the monster's level with `monsters[fighting].level`.
Here is how you would set `num` to equal `num` plus five times eight: `num += 5 * 8`. Remember that `Math.floor()` rounds any number passed to it down to the nearest whole number.
## Instructions
## Tests
```yml
tests:
- text: See description above for instructions.
testString: gold = 10, fightSlime(), defeatMonster(), assert(gold === 23);
```
## Challenge Seed
```html
```
### Before Test
```html
RPG - Dragon Repeller
XP: 0Health: 100Gold: 50
Monster Name: Health:
Welcome to Dragon Repeller. You must defeat the dragon that is preventing people from leaving the town. You are in the town square. Where do you want to go? Use the buttons above.