Skip to content

Commit

Permalink
Fixed Black Temple
Browse files Browse the repository at this point in the history
  • Loading branch information
Meivyn committed Apr 4, 2018
1 parent 7254945 commit f764752
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
### 1.0.2
- [x] Fixed Black Temple tracking

### 1.0.1
- [x] Fixed some Worldbosses typos

### 1.0.0
- [x] Initial fork commit
- [x] Fixed Sunwell, SSC and Tempest Keep instances
- [x] Fixed Sunwell, SSC and Tempest Keep tracking
- [x] Added LFR tracking
- [x] Added Worldbosses tracking
23 changes: 23 additions & 0 deletions EncounterJournalSavedInstances.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ local L = {
['Serpentshrine Cavern'] = 'Serpentshrine Cavern',
['Tempest Keep'] = 'Tempest Keep',
['The Eye'] = 'The Eye',
['Black Temple'] = 'Black Temple',
['The Black Temple'] = 'The Black Temple',
['The Sunwell'] = 'The Sunwell',
['Sunwell Plateau'] = 'Sunwell Plateau',
['Pandaria'] = 'Pandaria',
Expand All @@ -27,6 +29,8 @@ if locale == 'frFR' then
['Serpentshrine Cavern'] = 'Caverne du sanctuaire du Serpent',
['Tempest Keep'] = 'Donjon de la Tempête',
['The Eye'] = 'L’Œil',
['Black Temple'] = 'Temple noir',
['The Black Temple'] = 'Le Temple noir',
['The Sunwell'] = 'Le Puits de soleil',
['Sunwell Plateau'] = 'Plateau du Puits de soleil',
['Pandaria'] = 'Pandarie',
Expand Down Expand Up @@ -55,6 +59,9 @@ local function UpdateSavedInstances()
-- Fix for Tempest Keep
elseif instanceName == L['Tempest Keep'] then
savedInstances[L['The Eye']] = {}
-- Fix for Black Temple
elseif instanceName == L['Black Temple'] then
savedInstances[L['The Black Temple']] = {}
-- Fix for Sunwell
elseif instanceName == L['The Sunwell'] then
savedInstances[L['Sunwell Plateau']] = {}
Expand Down Expand Up @@ -163,6 +170,22 @@ local function UpdateSavedInstances()
complete = locked and defeatedBosses == maxBosses,
locked = locked
})
-- Fix for Black Temple
elseif locked and instanceName == L['Black Temple'] then
table.insert(savedInstances[L['The Black Temple']], {
instanceID = instanceID,
bosses = bosses,
instanceName = instanceName,
instanceDifficulty = instanceDifficulty,
difficulty = difficulty,
difficultyName = difficultyName,
maxBosses = maxBosses,
defeatedBosses = defeatedBosses,
instanceReset = instanceReset,
progress = defeatedBosses..'/'..maxBosses,
complete = locked and defeatedBosses == maxBosses,
locked = locked
})
-- Fix for Sunwell
elseif locked and instanceName == L['The Sunwell'] then
table.insert(savedInstances[L['Sunwell Plateau']], {
Expand Down

0 comments on commit f764752

Please sign in to comment.