mirror of
https://github.com/tobspr/shapez.io.git
synced 2025-06-13 13:04:03 +00:00
Revert was halfway
This commit is contained in:
parent
4ccde9ebaf
commit
1ca96e121c
@ -84,7 +84,10 @@ export class HUDShapeStatisticsHandle {
|
|||||||
case enumAnalyticsDataSource.delivered:
|
case enumAnalyticsDataSource.delivered:
|
||||||
case enumAnalyticsDataSource.produced: {
|
case enumAnalyticsDataSource.produced: {
|
||||||
let rate =
|
let rate =
|
||||||
(this.root.productionAnalytics.getCurrentShapeRate(dataSource, this.shapeKey) /
|
(this.root.productionAnalytics.getCurrentShapeRate(
|
||||||
|
dataSource,
|
||||||
|
this.definition.getHash()
|
||||||
|
) /
|
||||||
globalConfig.analyticsSliceDurationSeconds) *
|
globalConfig.analyticsSliceDurationSeconds) *
|
||||||
60;
|
60;
|
||||||
this.counter.innerText = T.ingame.statistics.shapesPerMinute.replace(
|
this.counter.innerText = T.ingame.statistics.shapesPerMinute.replace(
|
||||||
@ -133,7 +136,7 @@ export class HUDShapeStatisticsHandle {
|
|||||||
for (let i = 0; i < globalConfig.statisticsGraphSlices - 2; ++i) {
|
for (let i = 0; i < globalConfig.statisticsGraphSlices - 2; ++i) {
|
||||||
const value = this.root.productionAnalytics.getPastShapeRate(
|
const value = this.root.productionAnalytics.getPastShapeRate(
|
||||||
dataSource,
|
dataSource,
|
||||||
this.shapeKey,
|
this.definition.getHash(),
|
||||||
globalConfig.statisticsGraphSlices - i - 2
|
globalConfig.statisticsGraphSlices - i - 2
|
||||||
);
|
);
|
||||||
if (value > maxValue) {
|
if (value > maxValue) {
|
||||||
|
Loading…
Reference in New Issue
Block a user