Skip to content

Commit 32cd829

Browse files
Search: Add sentinels (#10)
1 parent 8fde2db commit 32cd829

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

index.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
fetch("https://browse.wf/warframe-public-export-plus/ExportFlavour.json").then(res => res.json()),
4747
fetch("https://browse.wf/warframe-public-export-plus/ExportCustoms.json").then(res => res.json()),
4848
fetch("https://browse.wf/warframe-public-export-plus/ExportGear.json").then(res => res.json()),
49+
fetch("https://browse.wf/warframe-public-export-plus/ExportSentinels.json").then(res => res.json()),
4950
fetch("https://browse.wf/warframe-public-export-plus/ExportRewards.json").then(res => res.json()),
5051
fetch("https://browse.wf/warframe-public-export-plus/ExportRegions.json").then(res => res.json()),
5152
fetch("https://browse.wf/warframe-public-export-plus/ExportEnemies.json").then(res => res.json()),
@@ -62,6 +63,7 @@
6263
ExportFlavour,
6364
ExportCustoms,
6465
ExportGear,
66+
ExportSentinels,
6567
ExportRewards,
6668
ExportRegions,
6769
ExportEnemies,
@@ -80,6 +82,7 @@
8082
window.ExportFlavour_entries = Object.entries(ExportFlavour);
8183
window.ExportCustoms_entries = Object.entries(ExportCustoms);
8284
window.ExportGear_entries = Object.entries(ExportGear);
85+
window.ExportSentinels_entries = Object.entries(ExportSentinels)
8386
window.ExportRewards_entries = Object.entries(ExportRewards);
8487
window.ExportRegions = ExportRegions;
8588
window.ExportEnemies = ExportEnemies;
@@ -493,6 +496,7 @@ function doQuery(query)
493496
|| result.type == "upgrade"
494497
|| result.type == "arcane"
495498
|| result.type == "resource"
499+
|| result.type == "sentinel"
496500
)
497501
{
498502
const dropType = itemToRecipeMap[result.key] ?? result.key;
@@ -664,6 +668,11 @@ function resolveTagsToUses(results)
664668
res.push({ type: "gear", key: entry[0], value: entry[1] });
665669
continue;
666670
}
671+
entry = ExportSentinels_entries.find(([uniqueName, item]) => item.name == result.key);
672+
if (entry)
673+
{
674+
res.push({ type: "sentinel", key: entry[0], value: entry[1] });
675+
}
667676
}
668677
res.push(result);
669678
}

0 commit comments

Comments
 (0)