17,105
edits
(_getEquipmentTable: Fix special attack chance) |
mNo edit summary |
||
Line 221: | Line 221: | ||
local attChance = spAtt.defaultChance | local attChance = spAtt.defaultChance | ||
if item.overrideSpecialChances ~= nil then | if item.overrideSpecialChances ~= nil then | ||
attChance = item.overrideSpecialChances | attChance = item.overrideSpecialChances[i] | ||
end | end | ||
table.insert(txtLines, attChance .. '% chance for ' .. spAtt.name .. ':') | table.insert(txtLines, attChance .. '% chance for ' .. spAtt.name .. ':') | ||
Line 265: | Line 265: | ||
local attChance = spAtt.defaultChance | local attChance = spAtt.defaultChance | ||
if item.overrideSpecialChances ~= nil then | if item.overrideSpecialChances ~= nil then | ||
attChance = item.overrideSpecialChances | attChance = item.overrideSpecialChances[i] | ||
end | end | ||
table.insert(txtLines, attChance .. '% chance for ' .. spAtt.name .. ':') | table.insert(txtLines, attChance .. '% chance for ' .. spAtt.name .. ':') |