mirror of
https://github.com/Steffo99/iiiiil-gioco.git
synced 2024-11-21 15:34:19 +00:00
Non è più garantita una pozione ogni piano
This commit is contained in:
parent
0fe6fb351e
commit
bf4b6643d9
1 changed files with 1 additions and 1 deletions
2
main.cpp
2
main.cpp
|
@ -481,7 +481,7 @@ void generate(Enemy* list[ENEMIES_IN_LEVEL])
|
|||
}
|
||||
//Posizionamento pozioni di vita
|
||||
int placed_potions = 0;
|
||||
int potions_in_floor = rand() % MAX_POTIONS_PER_FLOOR + 1;
|
||||
int potions_in_floor = rand() % MAX_POTIONS_PER_FLOOR;
|
||||
while(placed_potions < potions_in_floor)
|
||||
{
|
||||
int x = rand() % (X_MAX - 1) + 1;
|
||||
|
|
Loading…
Reference in a new issue