Module:Sandbox/User:Alsang: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
(rather than making a bunch of different modules under my name, I'll just use this space) |
(set up for passive LW, with both recipes and activities) |
||
Line 24: | Line 24: | ||
--'[[Uses facility::Goblin Forge||Gnome Forge (skill node)]]', -- blacksmith active |
--'[[Uses facility::Goblin Forge||Gnome Forge (skill node)]]', -- blacksmith active |
||
--'[[Uses facility::Jewelry Bench]]', -- blacksmith passive, no non-recipe |
--'[[Uses facility::Jewelry Bench]]', -- blacksmith passive, no non-recipe |
||
'[[-Sold item.Sold by::Leather |
'[[-Sold item.Sold by::Leather Goods]] OR [[Variant of::Upholstery]]', -- leatherworker passive, but the Upholstery activities dont have pages yet |
||
'?Variant of #- = variant', |
|||
--'[[-Sold item.Sold by::Leather Goods]] OR [[Variant of::Upholstery]]', -- leatherworker passive, but the Upholstery activities dont have pages yet |
|||
'?Uses facility #- = facility', |
|||
'?Profession Level A = lvl', |
'?Profession Level A = lvl', |
||
'? #- = name', |
'? #- = name', |
||
Line 41: | Line 40: | ||
-- criterion for if an entry is a recipe, or a passive activity |
-- criterion for if an entry is a recipe, or a passive activity |
||
for _, item in ipairs(results) do |
for _, item in ipairs(results) do |
||
item.passiveActivity = false -- can delete this entire FOR statement unless there are non-recipe passive activities on the table |
--item.passiveActivity = false -- can delete this entire FOR statement unless there are non-recipe passive activities on the table |
||
item.passiveActivity = (item.variant=='Upholstery') -- leatherworker has not got upholstery implemented yet, do not use |
|||
end |
end |
||
Line 215: | Line 214: | ||
:wikitext('Materials') |
:wikitext('Materials') |
||
:done() |
:done() |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
-- :wikitext('Sell Value') |
|||
⚫ | |||
:tag('th') |
:tag('th') |
||
:attr{ colspan = '10' } |
:attr{ colspan = '10' } |
||
:wikitext(' |
:wikitext('Buy Value') |
||
:done() |
:done() |
||
:tag('th') |
:tag('th') |
||
:attr{ colspan = '10' } |
:attr{ colspan = '10' } |
||
:wikitext(' |
:wikitext('Sell Value') |
||
:done() |
:done() |
||
:tag('th') |
:tag('th') |
||
⚫ | |||
⚫ | |||
⚫ | |||
:done() |
:done() |
||
:tag('th') |
:tag('th') |
||
:attr{ colspan = '10' } |
:attr{ colspan = '10' } |
||
:wikitext('Profit/hr |
:wikitext('Profit/hr') |
||
:done() |
:done() |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
-- :wikitext('Profit/hr with [[File:Merchant_small_icon.png|18px]] discount') |
|||
⚫ | |||
:tag('th') |
:tag('th') |
||
:wikitext('XP') |
:wikitext('XP') |
||
Line 244: | Line 243: | ||
:wikitext('XP/hr') |
:wikitext('XP/hr') |
||
:done() |
:done() |
||
:tag('th') |
|||
:attr{ colspan = '10' } |
|||
:wikitext('Coins/XP') |
|||
:done() |
|||
-- :tag('th') |
-- :tag('th') |
||
-- :attr{ colspan = '10' } |
-- :attr{ colspan = '10' } |
||
Line 294: | Line 293: | ||
row |
row |
||
:node(currency_cell(item.buy)) |
|||
:node(currency_cell(item.sell)) |
|||
:ELSE() |
:ELSE() |
||
Line 309: | Line 308: | ||
:node(currency_cell(item.profitPerHour)) |
:node(currency_cell(item.profitPerHour)) |
||
:tag('td') |
-- :tag('td') |
||
:css{ ['text-align'] = 'center' } |
-- :css{ ['text-align'] = 'center' } |
||
:wikitext(item.discountLevel) |
-- :wikitext(item.discountLevel) |
||
:done() |
-- :done() |
||
:node(currency_cell(item.profitPerHourDiscount)) |
-- :node(currency_cell(item.profitPerHourDiscount)) |
||
:IF(item.XP) |
:IF(item.XP) |
||
Line 331: | Line 330: | ||
:END() |
:END() |
||
:node(currency_cell(item.profitPerXP)) |
|||
-- :node(currency_cell(item.profitPerXPDiscount)) |
-- :node(currency_cell(item.profitPerXPDiscount)) |
||