FIX: first explicit missing if it does not produce a modList (#8576)

The item parsing logic in WIKI mode seems to rely on finding a mod that
produces a modList to set the foundExplicit variable to true which then
allows mods that do not produce a modList to be added to lineList. This
causes issues with items such as Dialla's Malefaction where the first
explicit line does not have any parsing which causes it to not be added
to linesList. Interestingly enough other mods wihch are parsed
piece-wise work fine here as they produce and empty modList with the
extras paramter.
This commit is contained in:
Paliak
2025-06-06 15:12:28 +02:00
committed by GitHub
parent 479aab9ef7
commit e695808ca7

View File

@@ -813,7 +813,7 @@ function ItemClass:ParseRaw(raw, rarity, highQuality)
elseif gameModeStage == "FINDEXPLICIT" then
gameModeStage = "DONE"
end
elseif foundExplicit then
elseif foundExplicit or (not foundExplicit and gameModeStage == "EXPLICIT") then
modLine.modList = { }
modLine.extra = line
t_insert(modLines, modLine)