Skip to content

Commit

Permalink
time
Browse files Browse the repository at this point in the history
  • Loading branch information
AshHarikrishna committed Oct 17, 2024
1 parent c479b6e commit 9d6b61f
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public DayNightService(EventHandler enddayEventHandler, EventHandler docketServi
day = 1;
}

randomChoice = random.nextInt(10) * 1000;
randomChoice = random.nextInt(60) * 1000;

create();
}
Expand Down Expand Up @@ -140,7 +140,8 @@ public void update() {
if (currentTime - lastUpgradeCheck >= randomChoice && !pastUpgrade) {
pastUpgrade = true;
enddayEventHandler.trigger("upgrade");
randomChoice = random.nextInt((int) SEVENTY_FIVE_PERCENT);
// randomChoice = random.nextInt((int) SEVENTY_FIVE_PERCENT);
randomChoice = random.nextInt(60) * 1000;
}

if (this.timeRemaining <= 0 && !endOfDayTriggered) {
Expand Down

0 comments on commit 9d6b61f

Please sign in to comment.