Remove standalone building queue info
This commit is contained in:
		@@ -43,12 +43,4 @@ export class ActionController {
 | 
			
		||||
            throw new TryLaterError(aroundMinutes(1), 'Not same village');
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    ensureBuildingQueueIsEmpty() {
 | 
			
		||||
        const storage = new VillageStorage(grabActiveVillageId());
 | 
			
		||||
        const info = storage.getBuildingQueueInfo();
 | 
			
		||||
        if (info.seconds > 0) {
 | 
			
		||||
            throw new TryLaterError(info.seconds + 1, 'Building queue is full');
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -10,7 +10,6 @@ export class BuildBuildingAction extends ActionController {
 | 
			
		||||
    async run(args: Args, task: Task): Promise<any> {
 | 
			
		||||
        try {
 | 
			
		||||
            this.ensureSameVillage(args, task);
 | 
			
		||||
            this.ensureBuildingQueueIsEmpty();
 | 
			
		||||
            const buildTypeId = args.buildTypeId || taskError('Undefined build type id');
 | 
			
		||||
            clickBuildButton(buildTypeId);
 | 
			
		||||
        } catch (e) {
 | 
			
		||||
 
 | 
			
		||||
@@ -10,7 +10,6 @@ export class UpgradeBuildingAction extends ActionController {
 | 
			
		||||
    async run(args: Args, task: Task): Promise<any> {
 | 
			
		||||
        try {
 | 
			
		||||
            this.ensureSameVillage(args, task);
 | 
			
		||||
            this.ensureBuildingQueueIsEmpty();
 | 
			
		||||
            clickUpgradeButton();
 | 
			
		||||
        } catch (e) {
 | 
			
		||||
            if (e instanceof GrabError) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user