From b4c6f8dad8dd59c6f2e5131a583e99b8723735b2 Mon Sep 17 00:00:00 2001 From: Wofsauge Date: Sun, 2 Mar 2025 21:18:47 +0100 Subject: [PATCH] Abyss: Moved word seperation into the translation, instead of being handled via the code --- descriptions/rep/de.lua | 10 +++++----- descriptions/rep/en_us.lua | 10 +++++----- features/eid_modifiers.lua | 10 +++++----- 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/descriptions/rep/de.lua b/descriptions/rep/de.lua index f843b2bd..00063dc5 100644 --- a/descriptions/rep/de.lua +++ b/descriptions/rep/de.lua @@ -694,11 +694,11 @@ EID.descriptions[languageCode].AbyssTexts = { InfoText = "Eine {size}{speed}Heuschrecke ({dmg})", -- values inside {} brackets will be replaced with text parts below. InfoTextPlural = "{amount} {size}{speed}Heuschrecken ({dmg})", -- Will be shown when more than 1 locust will spawn Chance = " ({1}% Chance)", -- {1} will be replaced with the chance - SpeedSlow = "schnelle", -- Speed < 1 - SpeedFast = "langsame", -- Speed > 1 - SpeedDash = "flotte", -- Speed >= 6 - SizeSmall = "kleine", -- Size < 1 - SizeBig = "große", -- Size > 1 + SpeedSlow = "schnelle ", -- Speed < 1 + SpeedFast = "langsame ", -- Speed > 1 + SpeedDash = "flotte ", -- Speed >= 6 + SizeSmall = "kleine ", -- Size < 1 + SizeBig = "große ", -- Size > 1 DamageMult = "{1}x Isaac's Schaden", -- {1} will be replaced with the calculated damage multiplier } diff --git a/descriptions/rep/en_us.lua b/descriptions/rep/en_us.lua index fd532405..503ca0a2 100644 --- a/descriptions/rep/en_us.lua +++ b/descriptions/rep/en_us.lua @@ -653,11 +653,11 @@ EID.descriptions[languageCode].AbyssTexts = { InfoText = "{amount} {size}{speed}locust ({dmg})", -- values inside {} brackets will be replaced with text parts below InfoTextPlural = "{amount} {size}{speed}locusts ({dmg})", -- Will be shown when more than 1 locust will spawn Chance = " ({1}% Chance)", -- {1} will be replaced with the chance - SpeedSlow = "slow", -- Speed < 1 - SpeedFast = "fast", -- Speed > 1 - SpeedDash = "dashing", -- Speed >= 6 - SizeSmall = "small", -- Size < 1 - SizeBig = "big", -- Size > 1 + SpeedSlow = "slow ", -- Speed < 1 + SpeedFast = "fast ", -- Speed > 1 + SpeedDash = "dashing ", -- Speed >= 6 + SizeSmall = "small ", -- Size < 1 + SizeBig = "big ", -- Size > 1 DamageMult = "{1}x Isaac's damage", -- {1} will be replaced with the calculated damage multiplier } diff --git a/features/eid_modifiers.lua b/features/eid_modifiers.lua index e27fbb17..c7980fb6 100644 --- a/features/eid_modifiers.lua +++ b/features/eid_modifiers.lua @@ -1050,13 +1050,13 @@ if EID.isRepentance then -- size local scaleText = "" - if scale < 1 then scaleText = EID:getDescriptionEntry("AbyssTexts", "SizeSmall") .. " " - elseif scale > 1 then scaleText = EID:getDescriptionEntry("AbyssTexts", "SizeBig") .. " " end + if scale < 1 then scaleText = EID:getDescriptionEntry("AbyssTexts", "SizeSmall") + elseif scale > 1 then scaleText = EID:getDescriptionEntry("AbyssTexts", "SizeBig") end -- speed local speedText = "" - if speed < 1 then speedText = EID:getDescriptionEntry("AbyssTexts", "SpeedSlow") .. " " - elseif speed >=6 then speedText = EID:getDescriptionEntry("AbyssTexts", "SpeedDash") .. " " - elseif speed > 1 then speedText = EID:getDescriptionEntry("AbyssTexts", "SpeedFast") .. " " end + if speed < 1 then speedText = EID:getDescriptionEntry("AbyssTexts", "SpeedSlow") + elseif speed >=6 then speedText = EID:getDescriptionEntry("AbyssTexts", "SpeedDash") + elseif speed > 1 then speedText = EID:getDescriptionEntry("AbyssTexts", "SpeedFast") end -- overview / headline local infoText = EID:getDescriptionEntry("AbyssTexts", amount > 1 and "InfoTextPlural" or "InfoText")