Android build v1.0.43

This commit is contained in:
Warren H
2026-06-20 22:34:38 -04:00
parent 5aac39c6c9
commit 6e10b37f8e
21 changed files with 2095 additions and 337 deletions
+41
View File
@@ -709,6 +709,7 @@ JOIN coin_sources
ON coin_sources.encounter_id = crafting_recipes.source_encounter_id
AND coin_sources.difficulty_id = crafting_recipes.difficulty_id;
DELETE FROM character_talents
WHERE talent_id IN (SELECT id FROM talents WHERE class_id = 1);
@@ -1906,3 +1907,43 @@ JOIN items ON items.id = crafting_recipes.item_id
JOIN coin_sources
ON coin_sources.encounter_id = crafting_recipes.source_encounter_id
AND coin_sources.difficulty_id = crafting_recipes.difficulty_id;
DELETE FROM gear_upgrade_paths;
INSERT INTO gear_upgrade_paths (from_item_id, to_item_id)
WITH gear_items AS (
SELECT
items.id,
items.slot,
items.item_level AS item_level
FROM items
WHERE items.slot <> 'component'
AND items.item_level IN (1, 5, 10, 15, 20, 25)
),
next_levels AS (
SELECT
source.id AS from_item_id,
source.slot,
MIN(target.item_level) AS next_item_level
FROM gear_items AS source
JOIN gear_items AS target
ON target.slot = source.slot
AND target.item_level > source.item_level
WHERE source.item_level < 25
GROUP BY source.id, source.slot
)
SELECT from_item_id, to_item_id
FROM (
SELECT
next_levels.from_item_id,
(
SELECT target.id
FROM gear_items AS target
WHERE target.slot = next_levels.slot
AND target.item_level = next_levels.next_item_level
ORDER BY target.id
LIMIT 1
) AS to_item_id
FROM next_levels
)
WHERE to_item_id IS NOT NULL;