17,101
edits
(mw.log(p.getShopMiscUpgradeTable())) Tag: Reverted |
Tag: Undo |
||
Line 183: | Line 183: | ||
return decorator(cost.initial) .. '<br/>+' .. decorator(cost.scaling) .. ' for each purchase' | return decorator(cost.initial) .. '<br/>+' .. decorator(cost.scaling) .. ' for each purchase' | ||
elseif cost.type == 'Glove' or cost.type == 'Fixed' and cost.cost > 0 then | elseif cost.type == 'Glove' or cost.type == 'Fixed' and cost.cost > 0 then | ||
-- Type Glove exists in game so the | -- Type Glove exists in game so the Merchan's Permit cost reduction can be applied, | ||
-- it makes no difference here | -- it makes no difference here | ||
return decorator(cost.cost) | return decorator(cost.cost) | ||
Line 543: | Line 543: | ||
function p.getShopMiscUpgradeTable() | function p.getShopMiscUpgradeTable() | ||
local purchList = p.getPurchases(function(purch) return (purch.category == 'melvorD:General' and string.find(purch.id, '^melvorD:Auto_Eat') == nil) or Shared.contains({'melvorTotH:SignOfTheStars', 'melvorTotH:SummonersAltar'}, purch.id) end) | |||
local purchList = p.getPurchases(function(purch) return purch.category == 'melvorD:General' and string.find(purch.id, '^melvorD:Auto_Eat') == nil end) | |||
return p._getShopTable(purchList, { columns = { 'Purchase', 'Description', 'Cost', 'Requirements | return p._getShopTable(purchList, { columns = { 'Purchase', 'Description', 'Cost', 'Requirements' }, purchaseHeader = 'Upgrade' }) | ||
end | end | ||
Line 874: | Line 873: | ||
{ name = 'increasedSurveyRange', header = 'Increased Survey Range', sign = '+', suffix = ''}, | { name = 'increasedSurveyRange', header = 'Increased Survey Range', sign = '+', suffix = ''}, | ||
} | } | ||
return p.getToolTable('Ship', 'Ship', modifiers, 'melvorAoD:Cartography') | return p.getToolTable('Ship', 'Ship', modifiers, 'melvorAoD:Cartography') | ||
end | end |