Expanded the replay speed range from 0.2-2 to 0.0625-16

This commit is contained in:
Christian 'ketura' McCarty
2025-05-08 20:43:37 -05:00
parent 75e6d5d17c
commit d87f23d6d3

View File

@@ -145,11 +145,11 @@ var GempLotrGameUI = Class.extend({
}); });
slowerBut.click( slowerBut.click(
function () { function () {
that.animations.replaySpeed = Math.min(2, that.animations.replaySpeed + 0.2); that.animations.replaySpeed = Math.min(16, that.animations.replaySpeed * 2);
}); });
fasterBut.click( fasterBut.click(
function () { function () {
that.animations.replaySpeed = Math.max(0.2, that.animations.replaySpeed - 0.2); that.animations.replaySpeed = Math.max(0.0625, that.animations.replaySpeed / 2);
}); });
replayDiv.append(slowerBut); replayDiv.append(slowerBut);
replayDiv.append(fasterBut); replayDiv.append(fasterBut);