Browse Source

Fix: Only apply name prefix to 'anywhere' monsters

Location-specific monsters (like grocery-only spawns) don't need
the "Cart Wranglin'" prefix since they're already themed for that
location. The prefix now only applies to monsters that can spawn
anywhere but happen to be near a special location.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
master
HikeMap User 1 month ago
parent
commit
786d1c0792
  1. 4
      index.html

4
index.html

@ -13477,6 +13477,9 @@
}; };
// Check if spawning near a special location and set name prefix // Check if spawning near a special location and set name prefix
// 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); const spawnPos = L.latLng(monster.position.lat, monster.position.lng);
for (const cache of geocaches) { for (const cache of geocaches) {
// Use tags if available, fall back to icon check for backwards compatibility // Use tags if available, fall back to icon check for backwards compatibility
@ -13489,6 +13492,7 @@
} }
} }
} }
}
createMonsterMarker(monster); createMonsterMarker(monster);
monsterEntourage.push(monster); monsterEntourage.push(monster);

Loading…
Cancel
Save