Skip to content

Commit

Permalink
Fix: Eslinter-format dungeon class
Browse files Browse the repository at this point in the history
  • Loading branch information
agustincarriso committed Jun 19, 2024
1 parent e45697d commit 27c3337
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions scene/src/realms/dungeon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -468,15 +468,17 @@ export class Dungeon {
// build desert dungeon
}

async updateBoard():Promise<void> {
async updateBoard(): Promise<void> {
const scoreData: any = await GetPlayerDungeonEasyLeaderBoard()
console.log('dng easy leaderboard', scoreData)
const data = [...scoreData.dungeon_action_easy]
data.sort((a, b) => b.dungeons_completed - a.dungeons_completed)
const topTen = data.slice(0, 10)
this.leaderBoard.buildLeaderBoard(topTen, this.boardParent, 10).catch((error: Error) => {
console.log(error)
})
this.leaderBoard
.buildLeaderBoard(topTen, this.boardParent, 10)
.catch((error: Error) => {
console.log(error)
})
}

createResourceHub(): void {}
Expand Down

0 comments on commit 27c3337

Please sign in to comment.