diff options
author | Daniel Schadt <kingdread@gmx.de> | 2021-11-17 00:01:59 +0100 |
---|---|---|
committer | Daniel Schadt <kingdread@gmx.de> | 2021-11-17 00:01:59 +0100 |
commit | 08e686a5161d3baf1eb25014721147bb4e17a54d (patch) | |
tree | 8131e5213cd5cb98069a073a949f5f531df8413d /src/main.rs | |
parent | 0c634d3c2d279ef75347ac635b69d396d5bf695a (diff) | |
download | raidgrep-08e686a5161d3baf1eb25014721147bb4e17a54d.tar.gz raidgrep-08e686a5161d3baf1eb25014721147bb4e17a54d.tar.bz2 raidgrep-08e686a5161d3baf1eb25014721147bb4e17a54d.zip |
Better output for World vs. World logs
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs index b35f769..8bde143 100644 --- a/src/main.rs +++ b/src/main.rs @@ -17,7 +17,7 @@ use structopt::StructOpt; use walkdir::{DirEntry, WalkDir}; use evtclib::raw::parser::PartialEvtc; -use evtclib::{Encounter, EventKind, Log, Outcome}; +use evtclib::{Encounter, EventKind, GameMode, Log, Outcome}; mod fexpr; mod filters; @@ -180,6 +180,8 @@ pub struct LogResult { outcome: FightOutcome, /// Whether the fight had the Challenge Mote turned on. is_cm: bool, + /// The game mode of the fight. + game_mode: Option<GameMode>, } /// A player. @@ -578,6 +580,7 @@ fn extract_info(path: &Path, log: &Log) -> LogResult { players, outcome: get_fight_outcome(log), is_cm: log.is_cm(), + game_mode: log.game_mode(), } } |