Skip to content

Commit

Permalink
small refacto
Browse files Browse the repository at this point in the history
  • Loading branch information
BastLast committed Sep 4, 2023
1 parent 593a4a1 commit db7053e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/commands/player/ReportCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {MissionsController} from "../../core/missions/MissionsController";
import {Constants} from "../../core/Constants";
import {
getTimeFromXHoursAgo,
millisecondsToMinutes,
millisecondsToMinutes, millisecondsToSeconds,
minutesDisplay,
printTimeBeforeDate
} from "../../core/utils/TimeUtils";
Expand Down Expand Up @@ -554,7 +554,7 @@ async function doPVEBoss(
language: string,
player: Player
): Promise<void> {
const seed = player.experience + player.startTravelDate.valueOf() / 1000;
const seed = player.experience + millisecondsToSeconds(player.startTravelDate.valueOf());
const monsterObj = await MonsterLocations.getRandomMonster((await player.getDestination()).id, seed);
const tr = Translations.getModule("commands.report", language);
const randomLevel = player.level - PVEConstants.MONSTER_LEVEL_RANDOM_RANGE / 2 + seed % PVEConstants.MONSTER_LEVEL_RANDOM_RANGE;
Expand Down

0 comments on commit db7053e

Please sign in to comment.