892
edits
m (rename) |
m (typo) |
||
Line 7: | Line 7: | ||
local icons = require("Module:Icons") | local icons = require("Module:Icons") | ||
local | local tiers = { | ||
{ tier = 1, name = 'obs1', icon = 'Agility', txt = 'I', link = 'Agility#Obstacle 1' }, | { tier = 1, name = 'obs1', icon = 'Agility', txt = 'I', link = 'Agility#Obstacle 1' }, | ||
{ tier = 2, name = 'obs2', icon = 'Agility', txt = 'II', link = 'Agility#Obstacle 2' }, | { tier = 2, name = 'obs2', icon = 'Agility', txt = 'II', link = 'Agility#Obstacle 2' }, | ||
Line 28: | Line 28: | ||
local number_of_possible_choices = 6 | local number_of_possible_choices = 6 | ||
-- Have to sort this table or else the order is messed up when you use it | -- Have to sort this table or else the order is messed up when you use it | ||
table.sort( | table.sort(tiers, function(a, b) return a.placement < b.placement end) | ||
local function make_row(slot, data, compact) | local function make_row(slot, data, compact) |
edits