diff --git a/poeCustomSoundtrack.js b/poeCustomSoundtrack.js index 93a4070..bc19f39 100644 --- a/poeCustomSoundtrack.js +++ b/poeCustomSoundtrack.js @@ -116,6 +116,13 @@ function parseLogLine(line) { // watch log file for area changes let newArea = line.match(/You have entered ([^.]*)./); + // POE2 support + if (settings.get('poePath').includes('Path of Exile 2')) + { + let newLevel = line.match(/Generating level \d+ area "(.*?)" with seed \d+/); + newArea = newLevel; + } + // also watch for poe to boot up and play login window music const loginWindow = line.match(/LOG FILE OPENING/);