Closed Soul-Burn closed 7 months ago
get_energy_value is case sensitive and fails on certain values. Both "k" and "K" should be equal to 1000.
Specifically, the base game roboport-equipment.energy_source.input_flow_limit is equal to "3500KW".
roboport-equipment.energy_source.input_flow_limit
Call data_util.get_energy_value("1KW")
Expected result: 1 and "W".
Actual result: nil
nil
Description
get_energy_value is case sensitive and fails on certain values. Both "k" and "K" should be equal to 1000.
Specifically, the base game
roboport-equipment.energy_source.input_flow_limit
is equal to "3500KW".Reproduction
Call data_util.get_energy_value("1KW")
Expected result: 1 and "W".
Actual result:
nil