From 9f27e3c90a2747f2242080db3a52ed0d1d88aba7 Mon Sep 17 00:00:00 2001 From: gered Date: Tue, 5 Apr 2016 19:56:47 -0400 Subject: [PATCH] set up some default values to avoid math errors ... properly not needed --- .../src/vwowrla/core/encounters/analysis.clj | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/vwowrla.core/src/vwowrla/core/encounters/analysis.clj b/vwowrla.core/src/vwowrla/core/encounters/analysis.clj index 49ca0d6..cbb4177 100644 --- a/vwowrla.core/src/vwowrla/core/encounters/analysis.clj +++ b/vwowrla.core/src/vwowrla/core/encounters/analysis.clj @@ -26,8 +26,10 @@ {:name entity-name :added-at timestamp :last-activity-at timestamp - :damage {:in {} - :out {}} + :damage {:in {:total 0} + :out {:total 0}} + :healing {:in {:total 0} + :out {:total 0}} :skill-uses {} :alive-dps 0 :encounter-dps 0 @@ -380,11 +382,13 @@ (assoc data :active-encounter {:name encounter-name :started-at timestamp + :duration 0 :entities {} :skills {} - :damage {:in {} - :out {}} - :healing {} + :damage {:in {:total 0} + :out {:total 0}} + :healing {:hostile {:total 0} + :friendly {:total 0}} :trigger-entities (get-in defined-encounters [encounter-name :entities])})) (s/defn end-encounter :- RaidAnalysis