Simplify warehouse capacity store

This commit is contained in:
2020-10-10 11:46:28 +03:00
parent 5b85f3fe18
commit 9531c7850a
6 changed files with 21 additions and 45 deletions

View File

@ -1,9 +1,9 @@
import { Grabber } from './Grabber';
import { grabVillageResources, grabVillageResourceStorage } from '../Page/ResourcesBlock';
import { grabVillageResources, grabVillageWarehouseCapacity } from '../Page/ResourcesBlock';
export class VillageResourceGrabber extends Grabber {
grab(): void {
this.storage.storeResources(grabVillageResources());
this.storage.storeResourceStorage(grabVillageResourceStorage());
this.storage.storeWarehouseCapacity(grabVillageWarehouseCapacity());
}
}