Editing Module:MinerPassiveList
Jump to navigation
Jump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 3: | Line 3: | ||
local lang = mw.getContentLanguage() |
local lang = mw.getContentLanguage() |
||
local plist = require('Module:ProfessionList') |
local plist = require('Module:ProfessionList') |
||
local |
local rts = require('Module:RecipeTreeSearch') |
||
local p = {} |
local p = {} |
||
Line 42: | Line 42: | ||
-- no downtime for passives |
-- no downtime for passives |
||
item.profit = item.sellPrice and item.sellPrice |
item.profit = item.sellPrice and item.sellPrice * 0.005 |
||
item.productPerHour = item.duration and 1 / item.duration * 3600 |
item.productPerHour = item.duration and 1 / item.duration * 3600 |
||
Line 63: | Line 63: | ||
local out = mw.html.create('table') |
local out = mw.html.create('table') |
||
:addClass('wikitable sortable') |
:addClass('wikitable sortable') |
||
:tag('caption') |
|||
:wikitext('This list is updated dynamically. '..purge()) |
|||
:done() |
|||
:tag('tr') |
:tag('tr') |
||
:tag('th') |
:tag('th') |
||
Line 110: | Line 107: | ||
-- products |
-- products |
||
:node(plist.three_column_image_text(item.product, |
:node(plist.three_column_image_text(item.product,0.005,'File:' .. item.product .. '.png',item.product,item.product)) |
||
-- products per hour |
-- products per hour |