diff --git a/Themed_Tracker/Themed_Tracker.xml b/Themed_Tracker/Themed_Tracker.xml index d0ac268..9d3301b 100644 --- a/Themed_Tracker/Themed_Tracker.xml +++ b/Themed_Tracker/Themed_Tracker.xml @@ -415,7 +415,7 @@ function QuestFail(z) local theme = tracker_db.themes[z] local brack, head, num, num2, num3, special, subtext, title, text = theme.bracket, theme.heading, theme.number, theme.number2, theme.number3, theme.special, theme.subtext, theme.title, theme.text - local total_q, total_qall = tracker_db.q_db.total_lost + tracker_db.q_db.total_won, tracker_db.q_db.q_cumulative.lost + tracker_db.q_db.q_cumulative.won + local total_q, total_qall = tracker_db.q_db.total_lost + tracker_db.q_db.total_won, tracker_db.q_cumulative.lost + tracker_db.q_cumulative.won tracker_db.q_db.total_wonpct = string.format("%0.1f", 100*(tonumber(tracker_db.q_db.total_won)/tonumber(total_q))) tracker_db.q_db.total_avgqp = (string.format("%0.1f", tonumber(tracker_db.q_db.total_qp)/tonumber(total_q)))