mirror of
https://github.com/tobspr/shapez.io.git
synced 2026-03-02 03:39:21 +00:00
Multiple fixes to the achievements
This commit is contained in:
@@ -273,7 +273,7 @@ export class HUDPinnedShapes extends BaseHUDPart {
|
||||
|
||||
if (handle.throughputOnly) {
|
||||
currentValue =
|
||||
this.root.productionAnalytics.getCurrentShapeRate(
|
||||
this.root.productionAnalytics.getCurrentShapeRateRaw(
|
||||
enumAnalyticsDataSource.delivered,
|
||||
handle.definition
|
||||
) / globalConfig.analyticsSliceDurationSeconds;
|
||||
|
||||
@@ -209,7 +209,9 @@ export class HUDStatistics extends BaseHUDPart {
|
||||
}
|
||||
case enumAnalyticsDataSource.produced:
|
||||
case enumAnalyticsDataSource.delivered: {
|
||||
entries = Object.entries(this.root.productionAnalytics.getCurrentShapeRates(this.dataSource));
|
||||
entries = Object.entries(
|
||||
this.root.productionAnalytics.getCurrentShapeRatesRaw(this.dataSource)
|
||||
);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -100,7 +100,7 @@ export class HUDShapeStatisticsHandle {
|
||||
case enumAnalyticsDataSource.delivered:
|
||||
case enumAnalyticsDataSource.produced: {
|
||||
let rate =
|
||||
this.root.productionAnalytics.getCurrentShapeRate(dataSource, this.definition) /
|
||||
this.root.productionAnalytics.getCurrentShapeRateRaw(dataSource, this.definition) /
|
||||
globalConfig.analyticsSliceDurationSeconds;
|
||||
|
||||
this.counter.innerText = T.ingame.statistics.shapesDisplayUnits[unit].replace(
|
||||
|
||||
Reference in New Issue
Block a user