Abyss: Added pluralization and default text for normal items

This commit is contained in:
Wofsauge committed 2025-03-02 21:14:13 +01:00
1 parent 4b625d9262
commit 096c202b18
4 files changed
+19 -15

No files matched your search

+2 -1
View File
@@ -691,7 +691,8 @@ EID.descriptions[languageCode].bookOfVirtuesWisps = {
---------- Abyss Locust description parts ---------- ---------- Abyss Locust description parts ----------
EID.descriptions[languageCode].AbyssTexts = { EID.descriptions[languageCode].AbyssTexts = {
InfoText = "{amount} x{size}{speed} Heuschrecke ({dmg})", -- values inside {} brackets will be replaced with text parts below 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 Chance = " ({1}% Chance)", -- {1} will be replaced with the chance
SpeedSlow = "schnelle", -- Speed < 1 SpeedSlow = "schnelle", -- Speed < 1
SpeedFast = "langsame", -- Speed > 1 SpeedFast = "langsame", -- Speed > 1
+2 -1
View File
@@ -650,7 +650,8 @@ EID.descriptions[languageCode].bookOfVirtuesWisps = {
---------- Abyss Locust description parts ---------- ---------- Abyss Locust description parts ----------
EID.descriptions[languageCode].AbyssTexts = { EID.descriptions[languageCode].AbyssTexts = {
InfoText = "{amount} x{size}{speed} locust ({dmg})", -- values inside {} brackets will be replaced with text parts below 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 Chance = " ({1}% Chance)", -- {1} will be replaced with the chance
SpeedSlow = "slow", -- Speed < 1 SpeedSlow = "slow", -- Speed < 1
SpeedFast = "fast", -- Speed > 1 SpeedFast = "fast", -- Speed > 1
+1
View File
@@ -749,6 +749,7 @@ EID.descriptions[languageCode].bookOfVirtuesWisps = {
-- Special Locust effects when Item was eaten by Abyss -- Special Locust effects when Item was eaten by Abyss
EID.descriptions[languageCode].AbyssTexts = { EID.descriptions[languageCode].AbyssTexts = {
InfoText = "{speed}{size}파리 x{amount} ({dmg})", -- values inside {} brackets will be replaced with text parts below InfoText = "{speed}{size}파리 x{amount} ({dmg})", -- values inside {} brackets will be replaced with text parts below
InfoTextPlural = "{speed}{size}파리 x{amount} ({dmg})", -- Will be shown when more than 1 locust will spawn
Chance = " ({1}% 확률)", -- {1} will be replaced with the chance Chance = " ({1}% 확률)", -- {1} will be replaced with the chance
SpeedSlow = "느린 ", -- Speed < 1 SpeedSlow = "느린 ", -- Speed < 1
SpeedFast = "빠른 ", -- Speed > 1 SpeedFast = "빠른 ", -- Speed > 1
+14 -13
View File
@@ -1017,14 +1017,14 @@ if EID.isRepentance then
EID:appendToDescription(descObj, "#{{Collectible706}} " .. textColor .. overrideDesc) EID:appendToDescription(descObj, "#{{Collectible706}} " .. textColor .. overrideDesc)
return descObj return descObj
end end
-- Display default description, if no XML entry exists -- Display automatically generated description
if not EID.XMLLocusts or not EID.XMLLocusts[descObj.ObjSubType] then
return descObj
end
-- Display automatically generated description otherwise
-- Get locust Data. Format: {Color, numLocusts, size, speed, locustFlags1, locustFlags2, tearFlags1, tearFlags2, procChance} -- Default locust Data
local locustData = EID.XMLLocusts[descObj.ObjSubType] local locustData = { "default", 1, 1, 1, { -1 }, { -1 }, { -1 }, { -1 }, { -1 }, { -1 }, 1, 1, 1, 1, 1, 0 }
-- Check if an XML entry exists and load if exists
if EID.XMLLocusts and EID.XMLLocusts[descObj.ObjSubType] then
locustData = EID.XMLLocusts[descObj.ObjSubType]
end
local descriptionText = "" local descriptionText = ""
--local colors = locustData[1] -- colors flag: useless info right now --local colors = locustData[1] -- colors flag: useless info right now
local amount = locustData[2] local amount = locustData[2]
@@ -1050,16 +1050,17 @@ if EID.isRepentance then
-- size -- size
local scaleText = "" local scaleText = ""
if scale < 1 then scaleText = " " .. EID:getDescriptionEntry("AbyssTexts", "SizeSmall") if scale < 1 then scaleText = EID:getDescriptionEntry("AbyssTexts", "SizeSmall") .. " "
elseif scale > 1 then scaleText = " " .. EID:getDescriptionEntry("AbyssTexts", "SizeBig") end elseif scale > 1 then scaleText = EID:getDescriptionEntry("AbyssTexts", "SizeBig") .. " " end
-- speed -- speed
local speedText = "" local speedText = ""
if speed < 1 then speedText = " " .. EID:getDescriptionEntry("AbyssTexts", "SpeedSlow") if speed < 1 then speedText = EID:getDescriptionEntry("AbyssTexts", "SpeedSlow") .. " "
elseif speed >=6 then speedText = " " .. EID:getDescriptionEntry("AbyssTexts", "SpeedDash") elseif speed >=6 then speedText = EID:getDescriptionEntry("AbyssTexts", "SpeedDash") .. " "
elseif speed > 1 then speedText = " " .. EID:getDescriptionEntry("AbyssTexts", "SpeedFast") end elseif speed > 1 then speedText = EID:getDescriptionEntry("AbyssTexts", "SpeedFast") .. " " end
-- overview / headline -- overview / headline
descriptionText = "#{{Collectible706}} " .. textColor .. EID:getDescriptionEntry("AbyssTexts", "InfoText") local infoText = EID:getDescriptionEntry("AbyssTexts", amount > 1 and "InfoTextPlural" or "InfoText")
descriptionText = "#{{Collectible706}} " .. textColor .. infoText
descriptionText = EID:ReplaceVariableStr(descriptionText, "amount", amount) descriptionText = EID:ReplaceVariableStr(descriptionText, "amount", amount)
descriptionText = EID:ReplaceVariableStr(descriptionText, "size", scaleText) descriptionText = EID:ReplaceVariableStr(descriptionText, "size", scaleText)
descriptionText = EID:ReplaceVariableStr(descriptionText, "speed", speedText) descriptionText = EID:ReplaceVariableStr(descriptionText, "speed", speedText)