mirror of
https://github.com/IvarK/AntimatterDimensionsSourceCode.git
synced 2024-11-26 14:12:22 +00:00
Apply suggestions from code review
Co-Authored-By: Andrei Andreev <Razenpok@outlook.com>
This commit is contained in:
parent
ac39d536d6
commit
e52609e23f
@ -202,7 +202,7 @@ class AchievementTimer {
|
||||
|
||||
advance() {
|
||||
const addedTime = this.realTime
|
||||
? Time.unscaledDeltaTime.milliseconds / 1000
|
||||
? Time.unscaledDeltaTime.totalSeconds
|
||||
: Time.deltaTime;
|
||||
this.time += addedTime;
|
||||
}
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user