Truinto / ONI-Modloader-SimpleMods

OxygenNotIncluded Mods
MIT License
16 stars 6 forks source link

Better explanation for Air Conditioner Absolute Power Factor, please? #48

Closed TroublesomeCorvid closed 8 months ago

TroublesomeCorvid commented 8 months ago

Capture The tool tip for this feature is a bit difficult to understand, and there's nothing about it in the README text here on GitHub. Can we get a better explanation on how this works?

I mean, I think I get it? That it's a multiplier for how many watts it uses per kDPU of heat moved? But I can't figure out the math behind it. Probably because of the 1.2kW hard limit on the aquatuner?

Truinto commented 8 months ago

Math.Min(energyConsumer.WattsNeededWhenActive, 100f + (Math.Abs(CurrentDPU) * energyConsumer.WattsNeededWhenActive / (MaxDPU * CustomizeBuildingsState.StateManager.State.AirConditionerAbsolutePowerFactor)))

In text: Power consumption is 100W plus [heat transfered] 1200W / (10000 factor); but at most 1200W

Or simply: power from 0 to 100% of the base power consumption relative to the heat transfer up to 10kDPU. Plus 100 Watts base cost.

I did this because the factor felt always bad. An extra flat 100 Watt cost feels more natural, imo.

Truinto commented 8 months ago

Btw, if you set this to a large enough number, it will just work vanilla at 12kW.