Add crop buildings planning

This commit is contained in:
2020-07-01 13:36:09 +03:00
parent 48bfed5f01
commit 7653c7b6e7
10 changed files with 120 additions and 30 deletions

View File

@ -4,6 +4,7 @@ import { parseLocation, timestamp } from '../utils';
import { GrabError } from '../Errors';
import { BuildingQueueInfo } from '../Game';
import { ProductionQueue } from '../Core/ProductionQueue';
import { grabResourceSlots } from '../Page/SlotBlock';
export class VillageOverviewPageGrabber extends Grabber {
grab(): void {
@ -13,6 +14,7 @@ export class VillageOverviewPageGrabber extends Grabber {
}
this.storage.storeResourcesPerformance(grabResourcesPerformance());
this.storage.storeResourceSlots(grabResourceSlots());
const buildingQueueInfo = this.grabBuildingQueueInfoOrDefault();
const buildingEndTime = buildingQueueInfo.seconds