Fix Current Chain reward being calculated wrong, tooltips being buggy, and needing to click a little above santa/dragon icon

This commit is contained in:
Aktanusa
2016-02-05 23:37:15 -05:00
parent 0ea31f6e94
commit 85ed508010
4 changed files with 36 additions and 10 deletions

View File

@@ -37,6 +37,19 @@ CM.ReplaceNative = function() {
CM.Disp.UpdateTooltipLocation();
}
CM.Backup.UpdateSpecial = Game.UpdateSpecial;
Game.UpdateSpecial = function() {
if (CM.Config.TimerBar == 1 && CM.Config.TimerBarPos == 0) {
var timerBarHeight = parseInt(CM.Disp.TimerBar.style.height);
Game.mouseY -= timerBarHeight;
CM.Backup.UpdateSpecial();
Game.mouseY += timerBarHeight;
}
else {
CM.Backup.UpdateSpecial();
}
}
CM.Backup.RebuildUpgrades = Game.RebuildUpgrades;
Game.RebuildUpgrades = function() {
CM.Backup.RebuildUpgrades();