Replay Speed

This commit is contained in:
ckcz123 2018-03-15 15:48:40 +08:00
parent a551311051
commit b82c24ec06

View File

@ -1382,7 +1382,7 @@ control.prototype.resumeReplay = function () {
control.prototype.forwardReplay = function () {
if (!core.status.replay.replaying) return;
core.status.replay.speed = parseInt(10*core.status.replay.speed + 1)/10;
if (core.status.replay.speed>2.5) core.status.replay.speed=2.5;
if (core.status.replay.speed>3.0) core.status.replay.speed=3.0;
core.drawTip("x"+core.status.replay.speed+"倍");
}
@ -1440,7 +1440,7 @@ control.prototype.replay = function () {
core.useItem(itemId, function () {
core.replay();
});
}, 750);
}, 750 / Math.sqrt(core.status.replay.speed));
}
return;
}