4,951
edits
Falterfire (talk | contribs) (Made the Equip Requirements section more flexible. Hopefully) |
Falterfire (talk | contribs) (Fixed some formatting on the weapon & armour stat blocks) |
||
Line 471: | Line 471: | ||
end | end | ||
table.insert(resultPart, '\r\n!style="text-align:right;"| Two Handed?') | table.insert(resultPart, '\r\n|-\r\n!style="text-align:right;"| Two Handed?') | ||
table.insert(resultPart, '\r\n|style="text-align:right;"| ' .. (p._getItemStat(item, 'isTwoHanded') and 'Yes' or 'No')) | table.insert(resultPart, '\r\n|style="text-align:right;"| ' .. (p._getItemStat(item, 'isTwoHanded') and 'Yes' or 'No')) | ||
if reqCount > 5 then | if reqCount > 5 then | ||
Line 482: | Line 482: | ||
if reqCount > 6 then | if reqCount > 6 then | ||
for i = 7, reqCount, 1 do | for i = 7, reqCount, 1 do | ||
table.insert(resultPart,"\r\n|-") | |||
table.insert(resultPart, emptyRow) | table.insert(resultPart, emptyRow) | ||
table.insert(resultPart, p.getEquipRequirementRow(item.equipRequirements[i])) | table.insert(resultPart, p.getEquipRequirementRow(item.equipRequirements[i])) | ||
Line 567: | Line 568: | ||
if reqCount > 3 then | if reqCount > 3 then | ||
for i = 4, reqCount, 1 do | for i = 4, reqCount, 1 do | ||
table.insert(resultPart, "\r\n|-") | |||
table.insert(resultPart, emptyRow) | table.insert(resultPart, emptyRow) | ||
table.insert(resultPart, p.getEquipRequirementRow(item.equipRequirements[i])) | table.insert(resultPart, p.getEquipRequirementRow(item.equipRequirements[i])) |