Skip to content

Production rate is not precise when displayed in per second #14

@starfi5h

Description

@starfi5h

https://github.com/mattsemar/dsp-bottleneck/blob/master/Stats/BetterStats.cs#L552-L553
The original production/consumption rate was obtained by reversing text, which loses precision.

A more precise method is to obtain the original values from entryData:

A more precise method is to obtain the original values from entryData:
float lvDivisor = isTotalTimeWindow ? 1f : (float)__instance.lvDivisors[__instance.productionStatWindow.timeLevel];
float originalProductValue = __instance.entryData.production / lvDivisor;
float originalConsumeValue = __instance.entryData.consumption / lvDivisor;

Changes: starfi5h@262ff3f
Fixed local mod package: Bottleneck.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions