aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/analyzers/fractals.rs10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/analyzers/fractals.rs b/src/analyzers/fractals.rs
index dd010ac..e3ebfc5 100644
--- a/src/analyzers/fractals.rs
+++ b/src/analyzers/fractals.rs
@@ -1,6 +1,6 @@
//! Analyzers for (challenge mote) fractal encounters.
use crate::{
- analyzers::{helpers, Analyzer},
+ analyzers::{helpers, Analyzer, Outcome},
Log,
};
@@ -30,6 +30,10 @@ impl<'log> Analyzer for Skorvald<'log> {
.map(|h| h >= SKORVALD_CM_HEALTH)
.unwrap_or(false)
}
+
+ fn outcome(&self) -> Option<Outcome> {
+ Outcome::from_bool(self.log.was_rewarded() || helpers::boss_is_dead(self.log))
+ }
}
#[derive(Debug, Clone, Copy)]
@@ -51,4 +55,8 @@ impl<'log> Analyzer for GenericFractal<'log> {
fn is_cm(&self) -> bool {
true
}
+
+ fn outcome(&self) -> Option<Outcome> {
+ Outcome::from_bool(self.log.was_rewarded() || helpers::boss_is_dead(self.log))
+ }
}