Module:Sandbox/User:Artoire/1: Difference between revisions
m
no edit summary
mNo edit summary |
mNo edit summary Tag: Manual revert |
||
Line 318:
:td{ '[[' .. weapon.name .. ']]', addClass = 'plinkt-link no-border' }
local cost = needed_ores * lookup_price(ingot.ore)[buying_ores and 'buy' or 'sell']
if chopping_logs then
if needed_logs then
cost = cost + needed_logs * lookup_price(pole_info.log).sell
end
elseif buying_logs then
if needed_logs then
cost = cost + needed_logs * lookup_price(pole_info.log).buy
end
else
if weapon.pole then
cost = cost + needed_poles * lookup_price(weapon.pole.name).buy
end
end
▲ row:node(currency._cell(cost, { html = 'yes' }))
end
end
|