aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorDaniel <kingdread@gmx.de>2020-05-12 13:45:06 +0200
committerDaniel <kingdread@gmx.de>2020-05-12 13:45:06 +0200
commitf2f2582d546327be9e0254dea8370a9bb6b749f7 (patch)
tree24b1805f98fb6b955dcb989bb2c362385065b04f /src/main.rs
parent77eccb7359b0962f34459bb0a8d78e6cd15431fd (diff)
downloadraidgrep-f2f2582d546327be9e0254dea8370a9bb6b749f7.tar.gz
raidgrep-f2f2582d546327be9e0254dea8370a9bb6b749f7.tar.bz2
raidgrep-f2f2582d546327be9e0254dea8370a9bb6b749f7.zip
display if a fight had CM activated
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs
index bf4c472..74fcf7f 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -139,6 +139,8 @@ pub struct LogResult {
players: Vec<Player>,
/// The outcome of the fight.
outcome: FightOutcome,
+ /// Whether the fight had the Challenge Mote turned on.
+ is_cm: bool,
}
/// A player.
@@ -495,6 +497,7 @@ fn extract_info(entry: &DirEntry, log: &Log) -> LogResult {
boss_name,
players,
outcome: get_fight_outcome(log),
+ is_cm: log.is_cm(),
}
}