Anonymous

Module:Attacks/Tables: Difference between revisions

From Melvor Idle
Update for v1.3
(_getSpecialAttackTable: Fix ancient magicks being unintentionally excluded from output)
(Update for v1.3)
Line 9: Line 9:


function p._getSpecialAttackTable(effectDefn, categories, sourceHeaderLabel, includeSource)
function p._getSpecialAttackTable(effectDefn, categories, sourceHeaderLabel, includeSource)
-- TODO needs fixing for V1.3
-- 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 217: Line 222:


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


Line 251: Line 257:
-- Generates a table showing the damage/DR multipliers for each combat triangle
-- Generates a table showing the damage/DR multipliers for each combat triangle
function p.getCombatTriangleTable()
function p.getCombatTriangleTable()
local triangleAttributes = {
-- TODO needs fixing for V1.3
return ''
--[==[local triangleAttributes = {
{
{
["name"] = 'damageModifier',
["name"] = 'damageModifier',
Line 321: Line 329:
table.insert(resultPart, '\r\n|}')
table.insert(resultPart, '\r\n|}')
return table.concat(resultPart)
return table.concat(resultPart)
--]==]
end
end


return p
return p