Signed-off-by: His Dad <John@hisdad.org>
His Dad [10-16-16 - 17:38]
Signed-off-by: His Dad <John@hisdad.org>
diff --git a/HistOffline.lua b/HistOffline.lua
index 1cbdf3e..713b970 100644
--- a/HistOffline.lua
+++ b/HistOffline.lua
@@ -198,7 +198,7 @@ for acc,_ in pairs(History_SV["Default"]) do
if thischar.timeplayed == nil then
me.timeplayed = math.floor(thischar.levels[level].time/60) -- Old version compat
else
- me.timeplayed = thischar.timeplayed
+ me.timeplayed = math.floor(thischar.timeplayed/60)
end
end
diff --git a/history.lua b/history.lua
index febb5a2..660a37a 100644
--- a/history.lua
+++ b/history.lua
@@ -200,9 +200,9 @@ local function levelup(_, unitTag,_)
end
- if hist.me.veteran_level > 0 then return end
+-- if hist.me.veteran_level > 0 then return end
- hist.me.level = hist.me.base_level
+ hist.me.level = hist.me.base_level + hist.me.veteran_level
log("Level up to " .. hist.me.level)
hist.me.levels[hist.me.level] = {
@@ -244,8 +244,6 @@ local function CP_Levelup(_,unitTag, old, new)
hist.me.veteran_level = GetUnitVeteranRank("player")
hist.me.level = hist.me.base_level + hist.me.veteran_level
- if hist.debug then
- end
log("CP_Level up to " .. new)
end
@@ -298,8 +296,8 @@ end
local function Dead()
-- Per Level
- if hist.me.levels[hist.me.base_level] == nil then
- log("err: dead at " .. hist.me.base_level)
+ if hist.me.levels[hist.me.level] == nil then
+ log("err: dead at " .. hist.me.level)
return
end
hist.me.levels[hist.me.base_level].deaths = hist.me.levels[hist.me.base_level].deaths +1