mirror of
https://codeberg.org/icewind/tf-log-parser.git
synced 2026-11-30 12:50:49 +01:00
fix underscore weapons
This commit is contained in:
parent
8ad2dfa1b6
commit
b38b5773cb
1 changed files with 7 additions and 2 deletions
|
|
@ -58,7 +58,12 @@ impl Kill {
|
||||||
) -> Option<Self> {
|
) -> Option<Self> {
|
||||||
let victim = event.target.id().ok()?;
|
let victim = event.target.id().ok()?;
|
||||||
// mallformed log line
|
// mallformed log line
|
||||||
if event.weapon.contains(' ') || event.weapon.chars().any(|c| !c.is_ascii_lowercase()) {
|
if event.weapon.contains(' ')
|
||||||
|
|| event
|
||||||
|
.weapon
|
||||||
|
.chars()
|
||||||
|
.any(|c| !(c.is_ascii_lowercase() || c == '_'))
|
||||||
|
{
|
||||||
return None;
|
return None;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -98,7 +103,7 @@ impl Kill {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn add_medic_info(&mut self, event: &MedicDeathExEvent) {
|
fn add_medic_info(&mut self, event: &MedicDeathExEvent) {
|
||||||
self.charge = dbg!(event.charge_percentage);
|
self.charge = event.charge_percentage;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue