]> ruin.nu Git - ndwebbie.git/commitdiff
Stats are using EMP insted of Emp
authorMichael Andreen <harv@ruin.nu>
Sat, 6 Oct 2018 07:49:32 +0000 (09:49 +0200)
committerMichael Andreen <harv@ruin.nu>
Sat, 6 Oct 2018 07:49:32 +0000 (09:49 +0200)
scripts/stats.pl

index 6e9c8508e2332ca393162e366cc6b0392f781c5b..432a5105b3761105f4bfe26272101e5f9b050079 100755 (executable)
@@ -46,6 +46,8 @@ while ($file =~ /class="(\w+)"><td>((?:\w| )+)<\/td><td>(\w+)<\/td><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";
 }