mirror of
https://codeberg.org/icewind/tf-log-parser.git
synced 2026-11-30 04:40:47 +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> {
|
||||
let victim = event.target.id().ok()?;
|
||||
// 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;
|
||||
}
|
||||
|
||||
|
|
@ -98,7 +103,7 @@ impl Kill {
|
|||
}
|
||||
|
||||
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