# Difficulty

Since version 0.20, Nilllzz added the option to increase the difficulty of the game.

## Effect

This option can change the difficulty from "0" (Normal), to "1" (Hard) or "2" (Very Hard).

The unique diference between theese difficulties are the levels of the Wild Pokémon and the Pokémon from the Trainers.

On difficulty 0, TMs are infinite use. On Difficulties 1 and 2, TMs break upon use.

## Formula

Difficulty Formula
0 Level = Level
1 Level + (int(Ceiling(Level / 10)) = Level
2 Level + (int(Ceiling(Level / 5)) = Level

"Int"(eger) tells to the computer to round the number inside the brackets and "ceiling" tells it to round up the number inside the brackets.

## Example

Say you are fighting a pokemon that is on normal lvl 15.

On difficulty level 1 this would be 15 + (15 / 10) rounded up

```15 / 10 = 1.5 but it rounds up (Ceiling) so it is 2

15 + 2 = 17
```

On difficulty level 2 this would be 15 + (15 / 5) rounded up

```15 / 5 = 3

15 + 3 = 18

```

Resume:

Difficulty Final Level
0 15
1 17
2 18