Module:Skills/Summoning: Difference between revisions

m
Add function to get Synergies (for use in ModifierTables
(Include enemyModifiers when creating descriptions from modifiers)
m (Add function to get Synergies (for use in ModifierTables)
Line 12: Line 12:
local Shop = require('Module:Shop')
local Shop = require('Module:Shop')
local Num = require('Module:Number')
local Num = require('Module:Number')
function p.getSynergies(checkFunc)
local result = {}
for i, synergy in pairs(SkillData.Summoning.synergies) do
if checkFunc(synergy) then
table.insert(result, synergy)
end
end
return result
end


local function getSummonModifierText(summonItem, maxVisible)
local function getSummonModifierText(summonItem, maxVisible)