17,101
edits
(Use tabs instead of spaces for indentation) |
(Update for v1.1) |
||
Line 3: | Line 3: | ||
local p = {} | local p = {} | ||
local | local GameData = require('Modules:GameData') | ||
local Shared = require('Module:Shared') | local Shared = require('Module:Shared') | ||
Line 73: | Line 72: | ||
function p.getAttackByID(ID) | function p.getAttackByID(ID) | ||
return GameData.getEntityByID('attacks', ID) | |||
end | end | ||
Line 80: | Line 79: | ||
name = string.gsub(name, "'", "'") | name = string.gsub(name, "'", "'") | ||
name = string.gsub(name, "'", "'") | name = string.gsub(name, "'", "'") | ||
return GameData.getEntityByName('attacks', name) | |||
end | end | ||
function p.getAttacks(checkFunc) | function p.getAttacks(checkFunc) | ||
return GameData.getEntities('attacks', checkFunc) | |||
end | end | ||