Module:MinerPassiveList: Difference between revisions

Jump to navigation Jump to search
Content added Content deleted
(offload much of the search, screen, and format functions to the new ProfessionList module, so they work the same for all table)
m (helper modules were updates to include output quantity, so make use of that)
Line 42: Line 42:
-- no downtime for passives
-- no downtime for passives
item.profit = item.sellPrice and item.sellPrice * 0.005
item.profit = item.sellPrice and item.sellPrice
item.productPerHour = item.duration and 1 / item.duration * 3600
item.productPerHour = item.duration and 1 / item.duration * 3600


Line 107: Line 107:
-- products
-- products
:node(plist.three_column_image_text(item.product,0.005,'File:' .. item.product .. '.png',item.product,item.product))
:node(plist.three_column_image_text(item.product,item.output[1].quantity,'File:' .. item.product .. '.png',item.product,item.product))
-- products per hour
-- products per hour