From: Michael Andreen Date: Sat, 6 Oct 2018 07:49:32 +0000 (+0200) Subject: Stats are using EMP insted of Emp X-Git-Url: https://ruin.nu/git/?p=ndwebbie.git;a=commitdiff_plain;h=1645f2920350986aa64005704a841006a402f318 Stats are using EMP insted of Emp --- diff --git a/scripts/stats.pl b/scripts/stats.pl index 6e9c850..432a510 100755 --- a/scripts/stats.pl +++ b/scripts/stats.pl @@ -46,6 +46,8 @@ while ($file =~ /class="(\w+)">((?:\w| )+)<\/td>(\w+)<\/td>(\w+|-)<\ my $dmg = $10; $dmg = 0 if $dmg eq '-'; my $class = $classes{$3}; + my $type = $6; + $type = 'Emp' if $type eq 'EMP'; $st->execute($2,$class,$4,$5,'-',$6,$7,$8,$9,$dmg,$11,$12,$13,$14,$1) or die $dbh->errstr; print "$2,$class,$4,$5,'-',$6,$7,$dmg,$9,$10,$11,$12,$13,$14,$1\n"; }