Anonymous

Module:Calculator/AgilityObstacle: Difference between revisions

From Melvor Idle
no edit summary
No edit summary
No edit summary
Line 288: Line 288:
--== Parse optional parameters==--
--== Parse optional parameters==--
local showTotals = yesno(args['showtotals'], false)
local showTotals = yesno(args['showtotals'], false)
local showbonus = yesno(args['obstacleMastery'], true)
local showbonus = yesno(args['showbonus'], true)
local showrequirements = yesno(args['obstacleMastery'], true)
local showrequirements = yesno(args['showrequirements'], true)
local showcosts = yesno(args['obstacleMastery'], true)
local showcosts = yesno(args['showcosts'], true)
local obstacleMastery = yesno(args['obstacleMastery'], false)
local obstacleMastery = yesno(args['obstacleMastery'], false)


Line 344: Line 344:
:wikitext('Totals')
:wikitext('Totals')
if showbonus then
if showbonus then
tr:wikitext(getTotalBonuses(courseRequirements.Obstacles))
tr :tag('td')
:wikitext(getTotalBonuses(courseRequirements.Obstacles))
end
end
if showrequirements then
if showrequirements then
tr:wikitext(getRequirements(courseRequirements.CourseLevelRequirements))
tr :tag('td')
:wikitext(getRequirements(courseRequirements.CourseLevelRequirements))
end
end
if showcosts then
if showcosts then
tr:wikitext(getCosts(courseRequirements.CourseItemCosts))
tr :tag('td')
:wikitext(getCosts(courseRequirements.CourseItemCosts))
end
end
end
end
2,875

edits