Module:Attacks/Tables: Difference between revisions

Uncommented the Monster and Item categories as they seem to work properly
(Removed getCombatTriangleTable as this table can be found in-game and an image can be used in place of this function)
(Uncommented the Monster and Item categories as they seem to work properly)
Line 10: Line 10:


function p._getSpecialAttackTable(effectDefn, categories, sourceHeaderLabel, includeSource)
function p._getSpecialAttackTable(effectDefn, categories, sourceHeaderLabel, includeSource)
-- TODO needs fixing for V1.3
-- TODO Spells and Familiars need fixing for V1.3
-- Is going to be incredibly broken following combat effects & modifiers overhaul
-- Is going to be incredibly broken following combat effects & modifiers overhaul
return ''
 
--[==[
local spAttTable = {}
local spAttTable = {}
local attacks = Attacks.getAttacks(function(attack)
local attacks = Attacks.getAttacks(function(attack)
Line 70: Line 68:
         end
         end
     end
     end
 
--[[
     -- Spells
     -- Spells
     if includeCat['Spell'] then
     if includeCat['Spell'] then
Line 124: Line 122:
end
end
end
end
 
--]]
-- Nothing to output if there are no row definitions
-- Nothing to output if there are no row definitions
if Shared.tableIsEmpty(spAttTable) then
if Shared.tableIsEmpty(spAttTable) then
Line 223: Line 221:


return table.concat(resultPart)
return table.concat(resultPart)
--]==]
end
end