Module:MinerList: Difference between revisions

149 bytes added ,  Yesterday at 18:36
xp per hour when dropping deathstone doesnt work as you need to get more explosives anyway
(Add materials used (explosives) column)
(xp per hour when dropping deathstone doesnt work as you need to get more explosives anyway)
Line 95:
item.productPerHour = item.durationEffective and math.floor(1 / (item.durationEffective + item.downtime / item.batch) * 3600)
item.productPerHourDropping = item.durationEffective and 1 / (item.durationEffective) * 3600
 
-- properties per hour
item.xpPerHour = item.xp and item.productPerHour and math.floor(item.xp * item.productPerHour)
Line 221:
:END()
-- XP per hour discarding
:IF(not item.xpPerHourDroppingusesExplosives)
:IF(item.xpPerHourDropping)
:tag('td')
:wikitext(item.xpPerHourDropping and lang:formatNum(tonumber(item.xpPerHourDropping)))
:ELSEdone()
:ELSE()
:node(plist.unknown_value_cell(1))
:END()
:ELSE()
:tag('td')
:addClass('table-na')
:wikitext(item.xpPerHourDropping and lang:formatNum(tonumber(item.xpPerHourDropping)))
:wikitext('N/A')
:done()
:ELSE()
:node(plist.unknown_value_cell(1))
:END()
 
13,097

edits