From 5f9ceda8e93c94b2ce22988670ad867cdbaa70bf Mon Sep 17 00:00:00 2001 From: grilledham Date: Sat, 2 Mar 2019 14:16:54 +0000 Subject: [PATCH] fix localised string to not exceed limit --- map_gen/maps/crash_site/outpost_builder.lua | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/map_gen/maps/crash_site/outpost_builder.lua b/map_gen/maps/crash_site/outpost_builder.lua index 3413702a..2b58c06b 100644 --- a/map_gen/maps/crash_site/outpost_builder.lua +++ b/map_gen/maps/crash_site/outpost_builder.lua @@ -947,10 +947,7 @@ local function update_market_upgrade_description(outpost_data) end end - str[#str + 1] = ': ' - str[#str + 1] = format('%.2f', current_rate) - str[#str + 1] = ' -> ' - str[#str + 1] = format('%.2f / sec', next_rate) + str[#str + 1] = concat {': ', format('%.2f', current_rate), ' -> ', format('%.2f / sec', next_rate)} str[#str + 1] = '\n' end str[#str] = nil