diff --git a/index.html b/index.html index 31b984a..03947d6 100644 --- a/index.html +++ b/index.html @@ -13477,15 +13477,19 @@ }; // Check if spawning near a special location and set name prefix - const spawnPos = L.latLng(monster.position.lat, monster.position.lng); - for (const cache of geocaches) { - // Use tags if available, fall back to icon check for backwards compatibility - const isGrocery = (cache.tags && cache.tags.includes('grocery')) || cache.icon === 'cart'; - if (isGrocery) { - const dist = spawnPos.distanceTo(L.latLng(cache.lat, cache.lng)); - if (dist <= 400) { - monster.namePrefix = "Cart Wranglin' "; - break; + // Only apply prefix to "anywhere" monsters - location-specific monsters don't need it + const monsterSpawnLoc = monsterType.spawnLocation || 'anywhere'; + if (monsterSpawnLoc === 'anywhere') { + const spawnPos = L.latLng(monster.position.lat, monster.position.lng); + for (const cache of geocaches) { + // Use tags if available, fall back to icon check for backwards compatibility + const isGrocery = (cache.tags && cache.tags.includes('grocery')) || cache.icon === 'cart'; + if (isGrocery) { + const dist = spawnPos.distanceTo(L.latLng(cache.lat, cache.lng)); + if (dist <= 400) { + monster.namePrefix = "Cart Wranglin' "; + break; + } } } }