Module:FisherList: Difference between revisions

add fish per hour column
(basic copy of FisherPassiveList, expect much work to get it to a useable state)
 
(add fish per hour column)
Line 20:
'?Activity XP = XP',
'?Activity duration = duration',
'?Activity coins = coins',
'?Skill node name = product',
'?Activity input #- = material',
Line 101 ⟶ 100:
:done()
:tag('th')
:attr{ colspan = '32' }
:wikitext('Fish')
:done()
:tag('tdth')
:wikitext('0.005 × Fish/hr')
:done()
:tag('th')
Line 152 ⟶ 154:
-- fish
:tag('td')
:css{ ['border-right'] = '0', ['text-align'] = 'right', ['max-width'] = '100px' }
:attr{ ['data-sort-value'] = item.product }
:wikitext('0.005 × ')
:done()
:tag('td')
:css{ ['border-right'] = '0', ['border-left'] = '0', ['text-align'] = 'center', ['max-width'] = '100px' }
:addClass('plinkt-link no-border')
:attr{ ['data-sort-value'] = item.product }
:wikitext('[[File:' .. item.product .. '.png|link=' .. item.product .. '|30x30px]]')
:done()
:tag('td')
:addClass('plinkt-link no-border')
:css{ ['border-left'] = '0', ['text-align'] = 'left' }
:wikitext('[[' .. item.product .. ']]')
:done()
-- fish/hr
:IF(item.productPerHour)
:tag('td')
:wikitext(item.productPerHour and math.floor(tonumber(item.productPerHour)*10)/10)
:done()
:ELSE()
:node(unknown_value_cell)
:END()
-- economics
10,567

edits