From 650de8476a252ea9150ffb6651e1ec589983555e Mon Sep 17 00:00:00 2001 From: dazedanon Date: Sun, 21 Dec 2025 13:05:23 -0600 Subject: [PATCH] fog of war off = enemies visible --- js/plugins/MinimapZoom.js | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/js/plugins/MinimapZoom.js b/js/plugins/MinimapZoom.js index c1bed41..83491bf 100644 --- a/js/plugins/MinimapZoom.js +++ b/js/plugins/MinimapZoom.js @@ -1360,12 +1360,21 @@ // Draw important events as markers (except transfers - those are drawn as numbered markers separately) const revealAllMarkers = ConfigManager.minimapRevealAll; + const fogOfWarEnabled = ConfigManager.minimapFogOfWar; + const mapId = $gameMap.mapId(); + for (const event of $gameMap.events()) { if (!event) continue; - // Only show markers in explored areas (unless revealAll is enabled) - if (!revealAllMarkers && !$gameSystem.isTileExplored($gameMap.mapId(), event.x, event.y)) { - continue; + const isExplored = $gameSystem.isTileExplored(mapId, event.x, event.y); + const isEnemy = this.isEnemyEvent(event); + + // Enemies: visible if fog of war is off OR tile is explored + // Other markers: visible if revealAll is on OR tile is explored + if (isEnemy) { + if (fogOfWarEnabled && !isExplored) continue; + } else { + if (!revealAllMarkers && !isExplored) continue; } const ex = event.x * tileWidth + tileWidth / 2;