8,756
edits
(add variants) |
mNo edit summary |
||
Line 1: | Line 1: | ||
local p = {} | local p = {} | ||
local cargo = mw.ext.cargo | |||
function p.getMutCodes() | |||
local mutresult = cargo.query('Mutations', '_pageName=Name, CreationCode, Variants, Type', | |||
{where='_pageNamespace="0"', | |||
default=nil, | |||
orderBy='CreationCode ASC'} ) | |||
local resulttrue = 0 | |||
--[If there was no result, search by alias instead] | |||
if not next(mutresult) then | |||
error('There was no defined mutation table, or it wasn\'t found.') | |||
else | |||
return mutresult | |||
end | |||
end | |||
--[1 NAME, stats (2 STR, 3 AGI, 4 TUF, 5 INT, 6 WIL, 7 EGO),]-- | --[1 NAME, stats (2 STR, 3 AGI, 4 TUF, 5 INT, 6 WIL, 7 EGO),]-- | ||
Line 147: | Line 163: | ||
['16'] = { 'nocturnal apex', 'cherubic visage', 'air current microsensor', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } | ['16'] = { 'nocturnal apex', 'cherubic visage', 'air current microsensor', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } | ||
} | } | ||
local mutationVariants = { | local mutationVariants = { |