Skip to content

Commit

Permalink
Ease the level difficulty
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikketer committed Jul 14, 2024
1 parent e39d0c7 commit f6cb179
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions island.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,8 @@ namespace Island {
// The number of enemies is based on the risk level of the island
// number of players AND segment level
// Start most enemies a bit from the left (avoiding starting ON the players)
const averageAmount = Math.floor(_island.risk + (1.5 * currentSegment))
const numberOfEnemies = Math.max(Math.randomRange(averageAmount - 2, averageAmount + 2), 1)
const averageAmount = Math.floor(_island.risk + (1 * currentSegment))
const numberOfEnemies = Math.max(Math.randomRange(averageAmount - 2, averageAmount), 1)
console.log('Enemies ' + currentSegment + ':' + _island.risk)
Utils.getArrayOfLength(numberOfEnemies).forEach(() => {
const locX = Math.randomRange(_boundingBox[0] + 20, _boundingBox[2])
Expand Down

0 comments on commit f6cb179

Please sign in to comment.