Android build v1.0.39

This commit is contained in:
Warren H
2026-06-20 20:09:57 -04:00
parent f8a1fbc5e2
commit 8f5a957963
11 changed files with 4311 additions and 2696 deletions
+10
View File
@@ -790,6 +790,15 @@ export function getProfile(database, characterId, accountId) {
WHERE rank <= 10
ORDER BY dungeonId, difficultyId, startPart, completedParts, rank
`).all()
const dungeonCompletionCounts = new Map(database.prepare(`
SELECT dungeon_id AS dungeonId, COUNT(*) AS count
FROM dungeon_runs
WHERE character_id = ?
AND result = 'victory'
AND start_part = 1
AND completed_parts >= 1
GROUP BY dungeon_id
`).all(characterId).map((row) => [row.dungeonId, row.count]))
const settings = Object.fromEntries(
database.prepare('SELECT key, value FROM game_settings').all()
@@ -869,6 +878,7 @@ export function getProfile(database, characterId, accountId) {
}),
dungeons: dungeons.map((dungeon) => ({
...dungeon,
completionCount: dungeonCompletionCounts.get(dungeon.id) ?? 0,
difficulties: dungeonDifficulties.filter(
(difficulty) => difficulty.dungeonId === dungeon.id,
),