Reformat code
This commit is contained in:
@ -30,6 +30,9 @@ export class ForgePageGrabber extends Grabber {
|
||||
|
||||
private grabTimer(): void {
|
||||
const seconds = grabRemainingSeconds();
|
||||
this.storage.storeQueueTaskEnding(ProductionQueue.UpgradeUnit, seconds ? seconds + timestamp() : 0);
|
||||
this.storage.storeQueueTaskEnding(
|
||||
ProductionQueue.UpgradeUnit,
|
||||
seconds ? seconds + timestamp() : 0
|
||||
);
|
||||
}
|
||||
}
|
||||
|
@ -11,6 +11,9 @@ export class GuildHallPageGrabber extends Grabber {
|
||||
}
|
||||
|
||||
const seconds = grabRemainingSeconds();
|
||||
this.storage.storeQueueTaskEnding(ProductionQueue.Celebration, seconds ? seconds + timestamp() : 0);
|
||||
this.storage.storeQueueTaskEnding(
|
||||
ProductionQueue.Celebration,
|
||||
seconds ? seconds + timestamp() : 0
|
||||
);
|
||||
}
|
||||
}
|
||||
|
@ -16,7 +16,9 @@ export class VillageOverviewPageGrabber extends Grabber {
|
||||
this.storage.storeBuildingQueueInfo(this.grabBuildingQueueInfoOrDefault());
|
||||
|
||||
const buildingQueueInfo = this.grabBuildingQueueInfoOrDefault();
|
||||
const buildingEndTime = buildingQueueInfo.seconds ? buildingQueueInfo.seconds + timestamp() : 0;
|
||||
const buildingEndTime = buildingQueueInfo.seconds
|
||||
? buildingQueueInfo.seconds + timestamp()
|
||||
: 0;
|
||||
this.storage.storeQueueTaskEnding(ProductionQueue.Building, buildingEndTime);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user