set up some default values to avoid math errors ... properly not needed
This commit is contained in:
parent
761051c132
commit
9f27e3c90a
|
@ -26,8 +26,10 @@
|
||||||
{:name entity-name
|
{:name entity-name
|
||||||
:added-at timestamp
|
:added-at timestamp
|
||||||
:last-activity-at timestamp
|
:last-activity-at timestamp
|
||||||
:damage {:in {}
|
:damage {:in {:total 0}
|
||||||
:out {}}
|
:out {:total 0}}
|
||||||
|
:healing {:in {:total 0}
|
||||||
|
:out {:total 0}}
|
||||||
:skill-uses {}
|
:skill-uses {}
|
||||||
:alive-dps 0
|
:alive-dps 0
|
||||||
:encounter-dps 0
|
:encounter-dps 0
|
||||||
|
@ -380,11 +382,13 @@
|
||||||
(assoc data :active-encounter
|
(assoc data :active-encounter
|
||||||
{:name encounter-name
|
{:name encounter-name
|
||||||
:started-at timestamp
|
:started-at timestamp
|
||||||
|
:duration 0
|
||||||
:entities {}
|
:entities {}
|
||||||
:skills {}
|
:skills {}
|
||||||
:damage {:in {}
|
:damage {:in {:total 0}
|
||||||
:out {}}
|
:out {:total 0}}
|
||||||
:healing {}
|
:healing {:hostile {:total 0}
|
||||||
|
:friendly {:total 0}}
|
||||||
:trigger-entities (get-in defined-encounters [encounter-name :entities])}))
|
:trigger-entities (get-in defined-encounters [encounter-name :entities])}))
|
||||||
|
|
||||||
(s/defn end-encounter :- RaidAnalysis
|
(s/defn end-encounter :- RaidAnalysis
|
||||||
|
|
Reference in a new issue