diff options
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 24 |
1 files changed, 21 insertions, 3 deletions
diff --git a/src/main.rs b/src/main.rs index c4f4e0a..81ab36c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -143,11 +143,16 @@ pub fn main() -> Result<(), evtclib::raw::parser::ParseError> { let my_addr = me(&processed); let mine = stats.agent_stats.get(&my_addr).expect("My stats not found"); - let my_damage = stats.damage_log.damage(|m| m.source == my_addr && processed.is_boss(m.target)); + let my_damage = stats + .damage_log + .damage(|m| m.source == my_addr && processed.is_boss(m.target)); - let combat_time = (mine.exit_combat - mine.enter_combat) as f32/ 1000.; + let combat_time = (mine.exit_combat - mine.enter_combat) as f32 / 1000.; println!("Damages: {:?}", stats.damage_log); - println!("Combat time: {} ({} till {})", combat_time, mine.enter_combat, mine.exit_combat); + println!( + "Combat time: {} ({} till {})", + combat_time, mine.enter_combat, mine.exit_combat + ); println!("My boss dps: {:?}", my_damage.0 as f32 / combat_time); for boon in evtclib::statistics::gamedata::BOONS { @@ -157,6 +162,19 @@ pub fn main() -> Result<(), evtclib::raw::parser::ParseError> { println!("{}: {}", boon.1, avg); } + for agent in processed.players() { + println!("{:?}", agent.name()); + for mechanic in evtclib::statistics::gamedata::get_mechanics(processed.boss_id()) { + println!( + "{}: {}", + mechanic.2, + stats + .mechanic_log + .count(|m, a| m == mechanic && a == *agent.addr()) + ); + } + } + //println!("NPCs: {:#?}", processed.npcs().collect::<Vec<_>>()); println!("Bosses: {:#?}", processed.boss_agents()); |