Small improvements

This commit is contained in:
Anton Vakhrushev 2020-06-06 21:07:14 +03:00
parent 7f5fa089aa
commit 2622d0cc6e
2 changed files with 2 additions and 9 deletions

View File

@ -63,14 +63,7 @@
<td></td>
</tr>
<resource-line :title="'Прирост:'" :resources="villageState.performance" />
<resource-line
v-if="isExtended(villageState.id)"
:title="'Баланс след.:'"
:hint="'Баланс следующей задачи'"
:resources="villageState.upperCriticalLevel"
/>
<resource-line :title="'Добыча:'" :resources="villageState.performance" />
<resource-line
v-if="villageState.required.active"

View File

@ -199,7 +199,7 @@ function createVillageOwnState(
const resourceStorage = storage.getResourceStorage();
const performance = storage.getResourcesPerformance();
const upperCriticalLevel = Resources.fromStorage(resourceStorage).sub(performance.scale(1));
const storageOptimumFullness = Resources.fromStorage(resourceStorage).sub(performance.scale(2));
const storageOptimumFullness = Resources.fromStorage(resourceStorage).sub(performance.scale(3));
const isOverflowing = upperCriticalLevel.anyLower(resources);
const requiredResources = taskCollection.getReadyTaskRequiredResources();
const frontierResources = taskCollection.getFrontierResources();