Standardize frame reporting

This commit is contained in:
Kyle Coburn 2015-05-12 12:46:34 -07:00
parent 6b69a1a270
commit 925e6b30f7
1 changed files with 10 additions and 11 deletions

View File

@ -589,18 +589,17 @@ Strategies.functions = {
end
end,
startFrames = function()
Strategies.frames = 0
return true
end,
reportFrames = function()
print("FR "..Strategies.frames)
local repels = Memory.value("player", "repel")
if repels > 0 then
print("S "..repels)
frames = function(data)
if data.report then
print("FR "..Strategies.frames)
local repels = Memory.value("player", "repel")
if repels > 0 then
print("S "..repels)
end
Strategies.frames = nil
else
Strategies.frames = 0
end
Strategies.frames = nil
return true
end,