mirror of
https://codeberg.org/icewind/tf-log-parser.git
synced 2026-11-30 04:40:47 +01:00
fix medic data
This commit is contained in:
parent
f05433724c
commit
8aa8ae6e3f
2 changed files with 46 additions and 14 deletions
|
|
@ -2,7 +2,7 @@ use main_error::MainError;
|
|||
use std::env::args;
|
||||
use std::fs;
|
||||
use tf_log_parser::module::Kills;
|
||||
use tf_log_parser::{parse_with_handler, Class};
|
||||
use tf_log_parser::parse_with_handler;
|
||||
|
||||
fn main() -> Result<(), MainError> {
|
||||
let path = args().nth(1).expect("No path provided");
|
||||
|
|
@ -11,9 +11,6 @@ fn main() -> Result<(), MainError> {
|
|||
let kills = parse_with_handler::<Kills>(&content)?.0;
|
||||
|
||||
for kill in kills {
|
||||
if kill.victim.class == Class::Medic && kill.charge.is_none() {
|
||||
panic!("medic death without charge");
|
||||
}
|
||||
println!("{}", serde_json::to_string(&kill)?);
|
||||
}
|
||||
Ok(())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue