added production rate

This commit is contained in:
Baipyrus 2023-10-31 14:20:39 +01:00
parent 1d10be85a8
commit 0890625503

View File

@ -24,6 +24,7 @@ wait_for_components(options, system, 'BiggerReactors_Reactor', 'Bigger Reactor')
function generate_message(buffer)
-- read induction matrix values
local a_raw = system.main.active()
local p_raw = system.main.battery().producedLastTick()
local s_raw = system.main.battery().stored()
local m_raw = system.main.battery().capacity()
local f_raw = system.main.fuelTank().fuel()
@ -31,8 +32,9 @@ function generate_message(buffer)
local ft_raw = system.main.fuelTemperature()
local ct_raw = system.main.casingTemperature()
-- format and align reactor status
-- format and align reactor status and production
message_aligned(buffer, 'Status...:', a_raw and 'ACTIVE' or 'OFFLINE', system.width)
message_aligned(buffer, 'Stored...:', format_energy(options, s_raw, true), system.width)
-- format and align reactor internal battery
message(buffer, '\n')