From 1be502548a64c177fc38ef442463c310d335bd37 Mon Sep 17 00:00:00 2001
From: Brian Savage <savage13@gmail.com>
Date: Sun, 5 May 2024 10:08:45 -0400
Subject: [PATCH] Show all objects now pulls in Temples if within specific
 areas

---
 src/components/AppMap.ts | 16 ++++++++++++++--
 1 file changed, 14 insertions(+), 2 deletions(-)

diff --git a/src/components/AppMap.ts b/src/components/AppMap.ts
index 683c474..2b6a56d 100644
--- a/src/components/AppMap.ts
+++ b/src/components/AppMap.ts
@@ -1503,10 +1503,22 @@ export default class AppMap extends mixins(MixinUtil) {
       } else if (layer == 'Surface' || layer == 'Depths') {
         let mapType = (layer == "Surface") ? 'MainField' : 'MinusField';
         const quad = map.pointToMapUnit(xyz);
-        this.searchAddGroup(`map:"${mapType}/${quad}"`, `Map: ${layer} ${quad}`);
+        let query = `map:"${mapType}/${quad}"`
+        if (layer == 'Surface' && quad == 'A-8') { // Thunder Temple
+          query += " OR LargeDungeonThunder"
+        } else if (layer == 'Depths' && Math.abs(latlng.lat - -2800) < 350 && Math.abs(latlng.lng - 1325) < 250) {
+          // Box around Fire Temple as it spans two Quads
+          query += " OR LargeDungeonFire"
+        }
+        this.searchAddGroup(query, `Map: ${layer} ${quad}`);
       } else if (layer == 'Sky') {
         const regions = await MapMgr.getInstance().getRegionFromPoint(layer, xyz);
-        const query = regions.map(region => `map: "MainField/Sky__${region}"`).join(" OR ");
+        let query = regions.map(region => `map: "MainField/Sky__${region}"`).join(" OR ");
+        if (regions.includes("Pln_Fld_Rito_SkyField_Start_01")) { // Wind Temple
+          query += " OR LargeDungeonWind"
+        } else if (regions.includes("Pln_Fld_Zora_SkyField_Before_DungeonWay")) { // Water Temple
+          query += " OR LargeDungeonWater"
+        }
         const regionsStr = regions.join(" or ");
         this.searchAddGroup(query, `Map: ${regionsStr}`);
       }