Module:Sandbox/User:Alsang: Difference between revisions

set up for passive LW, with both recipes and activities
(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:
--'[[Uses facility::Goblin Forge||Gnome Forge (skill node)]]', -- blacksmith active
--'[[Uses facility::Jewelry Bench]]', -- blacksmith passive, no non-recipe
'[[-Sold item.Sold by::Leather stallGoods]] OR [[RecipeVariant JSONof::~*Upholstery]]', -- leatherworker activepassive, thebut stall sells scrapsthe andUpholstery weactivities needdont tohave ignorepages thoseyet
'?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',
'? #- = name',
Line 41 ⟶ 40:
-- criterion for if an entry is a recipe, or a passive activity
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 = not(item.facilityvariant=='Upholstery station') -- leatherworker has not got upholstery implemented yet, do not use
end
Line 215 ⟶ 214:
:wikitext('Materials')
:done()
-- :tag('th')
-- :attr{ colspan = '10' }
-- :wikitext('Buy Value')
-- :done()
-- :tag('th')
-- :attr{ colspan = '10' }
-- :wikitext('Sell Value')
-- :done()
:tag('th')
:attr{ colspan = '10' }
:wikitext('Profit/itemBuy Value')
:done()
:tag('th')
:attr{ colspan = '10' }
:wikitext('Profit/hrSell Value')
:done()
:tag('th')
-- :attr{ colspan = '10' }
:wikitext('[[File:Merchant_small_icon.png|18px]] level<br>for discount')
-- :wikitext('Buy ValueProfit')
:done()
:tag('th')
:attr{ colspan = '10' }
:wikitext('Profit/hr with [[File:Merchant_small_icon.png|18px]] discount')
:done()
-- :tag('th')
-- :wikitext('[[File:Merchant_small_icon.png|18px]] level<br>for discount')
-- :done()
-- :tag('th')
-- :attr{ colspan = '10' }
-- :wikitext('Profit/hr with [[File:Merchant_small_icon.png|18px]] discount')
-- :done()
:tag('th')
:wikitext('XP')
Line 244 ⟶ 243:
:wikitext('XP/hr')
:done()
-- :tag('th')
-- :attr{ colspan = '10' }
-- :wikitext('Coins/XP')
-- :done()
-- :tag('th')
-- :attr{ colspan = '10' }
Line 294 ⟶ 293:
row
-- :node(currency_cell(item.buy))
-- :node(currency_cell(item.sell))
:ELSE()
Line 309 ⟶ 308:
:node(currency_cell(item.profitPerHour))
-- :tag('td')
-- :css{ ['text-align'] = 'center' }
-- :wikitext(item.discountLevel)
-- :done()
-- :node(currency_cell(item.profitPerHourDiscount))
 
:IF(item.XP)
Line 331 ⟶ 330:
:END()
 
-- :node(currency_cell(item.profitPerXP))
-- :node(currency_cell(item.profitPerXPDiscount))
 
11,257

edits