From 3831f335aa36eda6b4d1a83c506f68b74c03f9d7 Mon Sep 17 00:00:00 2001 From: Austin Hicks Date: Wed, 6 Nov 2024 16:56:04 -0800 Subject: [PATCH] fa-info: fix some leftover fallout from moving to message-builder around power production reading --- locale/en/entity-info.cfg | 2 +- scripts/fa-info.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/locale/en/entity-info.cfg b/locale/en/entity-info.cfg index 9dc08dc9..5ad2915a 100644 --- a/locale/en/entity-info.cfg +++ b/locale/en/entity-info.cfg @@ -22,7 +22,7 @@ ent-info-gate-circuit-network-connection=gate control circuit ent-info-marked-for-upgrading=Marked for upgrading ent-info-marked-for-deconstruction=Marked for deconstruction -ent-info-generator-load=At __1__ load +ent-info-generator-load=At __1__ percent ent-info-generator-production-with-max=producing __2__ of __3__ max ent-info-generator-production=producing __1__ diff --git a/scripts/fa-info.lua b/scripts/fa-info.lua index df05fcf2..b053e39e 100644 --- a/scripts/fa-info.lua +++ b/scripts/fa-info.lua @@ -173,7 +173,7 @@ local function ent_info_power_production(ctx) local power2 = ent.prototype.get_max_energy_production(ent.quality) * 60 local power_load_pct = math.ceil(power1 / power2 * 100) if power2 ~= nil then - ctx.message:fragment(FaUtils.localise_cat_table({ "fa.ent-info-generator-load", power_load_pct })):fragment({ + ctx.message:fragment({ "fa.ent-info-generator-load", power_load_pct }):fragment({ "fa.ent-info-generator-production", Electrical.get_power_string(power1), Electrical.get_power_string(power2),