17,105
edits
(Implement _getPetSkill(); Amend getPetTable()/getPetTableBySkill() to handle multiple pets) |
(getPetBySkill: Remove obsolete function; getPetPageTable: Center align images) |
||
Line 32: | Line 32: | ||
result.id = i - 1 | result.id = i - 1 | ||
result.skill = p._getPetSkill(result) | result.skill = p._getPetSkill(result) | ||
break | break | ||
end | end | ||
Line 152: | Line 137: | ||
return table.concat(resultPart, '\r\n') | return table.concat(resultPart, '\r\n') | ||
end | end | ||
Line 212: | Line 196: | ||
for i, thisPet in pairs(petList) do | for i, thisPet in pairs(petList) do | ||
result = result..'\r\n|-\r\n|[['..thisPet.name..']]' | result = result..'\r\n|-\r\n|[['..thisPet.name..']]' | ||
result = result..'||'..Icons.Icon({thisPet.name, size='60', type='pet', notext=true}) | result = result..'||style="text-align: center;"|'..Icons.Icon({thisPet.name, size='60', type='pet', notext=true}) | ||
result = result..'||'..p._getPetSource(thisPet) | result = result..'||'..p._getPetSource(thisPet) | ||
result = result..'||'..p._getPetEffect(thisPet) | result = result..'||'..p._getPetEffect(thisPet) |