Module:Calculator/AgilityObstacle: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 1: Line 1:
local p = {}
local p = {}


local yesno = require('Module:Yesno')
local Num = require('Module:Number')
local Num = require('Module:Number')
local Constants = require('Module:Constants')
local Constants = require('Module:Constants')
Line 147: Line 148:
function p._getCourseList(args)
function p._getCourseList(args)
-- Parse optional parameters
-- Parse optional parameters
local includeItems = args['includeitems'] or true
local includeItems = yesno(args['includeitems'], true)
local includeSkills = args['includeskills'] or true
local includeSkills = yesno(args['includeskills'], true)
local includeObstacles = args['includeObstacles'] or true
local includeObstacles = yesno(args['includeObstacles'], true)
local costReduction = {
local costReduction = {
Line 294: Line 295:


--== Parse optional parameters==--
--== Parse optional parameters==--
local showTotals = args['showtotals'] or true
local showTotals = yesno(args['showtotals'], true)
local obstacleMastery = args['obstacleMastery'] or false
local obstacleMastery = yesno(args['obstacleMastery'], false)
local costReduction = {
local costReduction = {
1,027

edits