Module:CombatAreas/AreaTables: Difference between revisions

m
added option to getDungeonDRTable to disable agility (should default to false)
m (Correct case)
m (added option to getDungeonDRTable to disable agility (should default to false))
Line 167: Line 167:
end
end


function p._getDungeonDRTable(dung, mode, doStuns)
function p._getDungeonDRTable(dung, mode, doStuns, disableAgilityObstacles)
local AutoEatVals = {T1 = 0.2, T2 = 0.3, T3 = 0.4, T3W = 0.45}  
local AutoEatVals = {T1 = 0.2, T2 = 0.3, T3 = 0.4, T3W = 0.45}
if disableAgilityObstacles ~= nil then
AutoEatVals = {T1 = 0.2, T2 = 0.3, T3 = 0.4}
else
end
--NOTE: Due to Agility Obstacles, this value is a tad arbitrary
--NOTE: Due to Agility Obstacles, this value is a tad arbitrary
local MaxViableHP = 1120
local MaxViableHP = 1120
Line 239: Line 244:
local mode = frame.args ~= nil and frame.args[2] or frame[2]
local mode = frame.args ~= nil and frame.args[2] or frame[2]
local doStuns = frame.args ~= nil and frame.args[3] or frame[3]
local doStuns = frame.args ~= nil and frame.args[3] or frame[3]
local disableAgilityObstacles = frame.args ~= nil and frame.args[4] or frame[4]
local dung = CombatAreas.getArea(dungName)
local dung = CombatAreas.getArea(dungName)


Line 245: Line 251:
end
end


return p._getDungeonDRTable(dung, mode, doStuns)
return p._getDungeonDRTable(dung, mode, doStuns, disableAgilityObstacles)
end
end


return p
return p
892

edits