Closed chaosvolt closed 2 years ago
Okay I just tested this in said build again and I'm getting the expected power draw now:
It was definitely broken in a previous build, let me make sure to grab latest build and test it some more.
Closing as this was evidently an old-build issue, it's working fine now.
Describe the bug
As noted in testing of https://github.com/cataclysmbnteam/Cataclysm-BN/issues/1165, the
power_draw
function is broken in an unusual way, consuming roughly 10% the power it implies it's supposed to.Power is supposed to be in milliwatts according to the documentation, so I would assume this is an unexpected consequence of https://github.com/cataclysmbnteam/Cataclysm-BN/pull/1071. Problems here are:
power_draw
to the joule units.You would expect that telling it "1 millijoule = 1 joule now literally only for save compatibility because characters with zero power stored it as 0 mJ for some awful reason" would make it try to consume 1 watt for every milliwatt specified.
Steps To Reproduce
Expected behavior
For it to either:
Screenshots
Versions and configuration
EDIT: On further testing this problem seemed to crop up with an earlier build and not the one initially posted here, will likely close this if I can't reproduce this with most recent build.
Additional context
Dropping
power_draw
in favor of the normal turns per charge method might be a viable quickfix sincepower_draw
is only used by a handful of items, and the whole "in the neighborhood of X kJ eaten up" indicates it isn't any less wonky thanturns_per_charge
even when it works right.Alternatively, tacking an extra zero onto every instance of
power_draw
in use would also be a quickfix, and keeping thepower_draw
function does have the sole advantage of letting use specify usage higher than a kilowatt (as by definitionturns_per_charge
limits it to 1 kJ burned every second, or 1 kW).On the other hand, large space heaters cap out at 1 kW despite 1500-watt heaters being ubiquitous in the US, and autoclaves should get their power consumption toned down to something less wacky eventually anyway...