@@ -57,14 +57,14 @@ local portalSpellIds = {
57
57
[375 ] = 354464 , -- Mists of Tirna Scithe - 348533
58
58
[376 ] = 354462 , -- The Necrotic Wake - 348529
59
59
-- TWW S2
60
- [500 ] = 445443 , -- The Rookery - 445443
61
- [525 ] = 1218105 , -- Floodgate - 1218105
62
- [247 ] = 272268 , -- The MOTHERLODE!! - 272268
63
- [370 ] = 373274 , -- Mechagon - Workshop - 373274
64
- [504 ] = 445441 , -- Darkflame Cleft - 445441
65
- [382 ] = 354467 , -- Theater of Pain - 354467
66
- [506 ] = 445440 , -- Cinderbrew Meadery - 445440
67
- [499 ] = 445444 -- Priory of the Sacred Flame - 445444
60
+ [500 ] = 445443 , -- The Rookery
61
+ [525 ] = 1216786 , -- Floodgate
62
+ [247 ] = 467553 , -- The MOTHERLODE!!
63
+ [370 ] = 373274 , -- Mechagon - Workshop
64
+ [504 ] = 445441 , -- Darkflame Cleft
65
+ [382 ] = 354467 , -- Theater of Pain
66
+ [506 ] = 445440 , -- Cinderbrew Meadery
67
+ [499 ] = 445444 -- Priory of the Sacred Flame
68
68
}
69
69
70
70
-- add only horde specific portals here.
@@ -388,6 +388,26 @@ local function getRatingCalcValues()
388
388
twoChestSpeed = 0.8 , -- timer % at which a dungeon is 2 chested.
389
389
threeChestSpeed = 0.6 , -- timer % at which a dungeon is 3 chested
390
390
bonusTimerRating = 15 -- Bonus/Penalty for timers
391
+ },
392
+ [14 ] = { -- TWW S2 --- TO BE VERIFIED ------
393
+ baseRating = 125 , -- Base score for dungeon completion
394
+ firstAffixLevel = 4 , -- lowest M+ Key possible
395
+ fistAffixValue = 15 , -- Value of the first affix
396
+ secondAffixLevel = 7 , -- Key level the second affix is added
397
+ secondAffixValue = 15 , -- Value of the second affix
398
+ thirdAffixLevel = 10 , -- Key level the third affix is added
399
+ thirdAffixValue = 15 , -- Value of the thrid affix
400
+ fourthAffixLevel = 12 , -- Key level the third affix is added
401
+ fourthAffixValue = 15 , -- Value of the thrid affix
402
+ fifthAffixLevel = 12 , -- Key level the third affix is added
403
+ fifthAffixValue = 0 , -- Value of the thrid affix
404
+ thresholdLevel = 1 , -- Threshold after which the value of the key changes due to level
405
+ preThresholdValue = 15 , -- Value of the pre-threshold levels
406
+ postThresholdValue = 15 , -- Value of the post threshold levels
407
+ untimedBaseLevel = 10 , -- The level after which untimed keys have no additional value
408
+ twoChestSpeed = 0.8 , -- timer % at which a dungeon is 2 chested.
409
+ threeChestSpeed = 0.6 , -- timer % at which a dungeon is 3 chested
410
+ bonusTimerRating = 15 -- Bonus/Penalty for timers
391
411
}
392
412
}
393
413
@@ -434,9 +454,9 @@ function DungeonTools:CalculateChest(dungeonID, keyLevel, timeCompleted)
434
454
end
435
455
local timeLimit = currentSeasonMaps [dungeonID ].timeLimit
436
456
if keyLevel >= seasonVars .thirdAffixLevel then
437
- if (timeCompleted <= (timeLimit * seasonVars .threeChestSpeed )+ 90 ) then return " +++" end
438
- if (timeCompleted <= (timeLimit * seasonVars .twoChestSpeed )+ 90 ) then return " ++" end
439
- if (timeCompleted <= timeLimit + 90 ) then return " +" end
457
+ if (timeCompleted <= (timeLimit * seasonVars .threeChestSpeed )) then return " +++" end
458
+ if (timeCompleted <= (timeLimit * seasonVars .twoChestSpeed )) then return " ++" end
459
+ if (timeCompleted <= timeLimit ) then return " +" end
440
460
else
441
461
if (timeCompleted <= (timeLimit * seasonVars .threeChestSpeed )) then return " +++" end
442
462
if (timeCompleted <= (timeLimit * seasonVars .twoChestSpeed )) then return " ++" end
@@ -531,18 +551,17 @@ function DungeonTools:CalculateRating(dungeonID, keyLevel, runTime)
531
551
return 0
532
552
end
533
553
534
- if (keyLevel < seasonVars .firstAffixLevel ) then
554
+ -- In Season 2 of TWW they moved based affix to level 4. So this is removed.
555
+ --[[ if (keyLevel < seasonVars.firstAffixLevel) then
535
556
return 0
536
- end
557
+ end ]]
537
558
538
559
if currentSeasonMaps == nil then
539
560
currentSeasonMaps = DungeonTools :GetCurrentSeasonMaps ()
540
561
end
541
562
local bonusRating = 0
542
563
local dungeonTimeLimit = currentSeasonMaps [dungeonID ].timeLimit
543
- if keyLevel >= seasonVars .thirdAffixLevel then
544
- dungeonTimeLimit = dungeonTimeLimit + 90
545
- end
564
+
546
565
-- Runs over time by 40% are a 0 score.
547
566
if (runTime > (dungeonTimeLimit + (dungeonTimeLimit * maxModifier ))) then
548
567
return 0
0 commit comments