fix: synergy block without header bullet, separated by blank line
Check Localization / Check Localization process (push) Canceled after 0s

This commit is contained in:
lzrdblzzrd committed 2026-09-22 14:35:13 +03:00
1 parent 474255bf66
commit 7585979a0d
1 file changed
+4 -1
+4 -1
View File
@@ -53,7 +53,10 @@ local function synergyCallback(desc)
end end
end end
if #lines == 0 then return desc end if #lines == 0 then return desc end
desc.Description = desc.Description .. "{{CR}}#Синергии:" -- NOTE: a line starting with "{{Blank}} " gets an invisible bullet (= no dot),
-- and a line containing only "{{Blank}} " renders as an empty paragraph
-- (printBulletPoints advances one lineHeight per #-segment unconditionally)
desc.Description = desc.Description .. "#{{Blank}} #{{Blank}} Синергии:"
for i = 1, math.min(#lines, MAX_SYNERGY_LINES) do for i = 1, math.min(#lines, MAX_SYNERGY_LINES) do
-- NOTE: {{CollectibleID}} already renders the item's icon AND its name, -- NOTE: {{CollectibleID}} already renders the item's icon AND its name,
-- so no explicit name is added here -- so no explicit name is added here