Apply suggestions from code review

Co-Authored-By: Andrei Andreev <Razenpok@outlook.com>
This commit is contained in:
cyip92 2019-08-29 13:36:47 -05:00 committed by GitHub
parent ac39d536d6
commit e52609e23f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -202,7 +202,7 @@ class AchievementTimer {
advance() {
const addedTime = this.realTime
? Time.unscaledDeltaTime.milliseconds / 1000
? Time.unscaledDeltaTime.totalSeconds
: Time.deltaTime;
this.time += addedTime;
}

View File

@ -60,7 +60,8 @@ Autobuyer.galaxy = new class GalaxyAutobuyerState extends IntervaledAutobuyerSta
}
tick() {
if (Galaxy.requirement.isSatisfied) super.tick();
if (!Galaxy.requirement.isSatisfied) return;
super.tick();
else return;
if (this.limitGalaxies && player.galaxies >= this.maxGalaxies) return;
if (this.isBuyMaxActive) {