Skip to content

Commit

Permalink
Default choices to 0 to prevent NaN arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
sarimash committed Jun 21, 2023
1 parent 38ebcf6 commit 4b832e7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions server/src/modules/player/gameplay.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,22 +61,22 @@ export class GameplayService {
if (foundLocation) {
const choices = [
...createFilledArray(
this.constantsService.wavePercentBoost + foundLocation.baseStats.wave,
this.constantsService.wavePercentBoost + foundLocation.baseStats.wave | 0,
'Wave',
),
...createFilledArray(
this.constantsService.locationFindPercentBoost +
foundLocation.baseStats.locationFind,
foundLocation.baseStats.locationFind | 0,
'Discovery',
),
...createFilledArray(
this.constantsService.itemFindPercentBoost +
foundLocation.baseStats.itemFind,
foundLocation.baseStats.itemFind | 0,
'Item',
),
...createFilledArray(
this.constantsService.collectibleFindPercentBoost +
foundLocation.baseStats.collectibleFind,
foundLocation.baseStats.collectibleFind | 0,
'Collectible',
),
];
Expand Down

0 comments on commit 4b832e7

Please sign in to comment.