]> ruin.nu Git - ndwebbie.git/commitdiff
Parse structure killers properly
authorMichael Andreen <harv@ruin.nu>
Tue, 5 Feb 2008 10:04:55 +0000 (11:04 +0100)
committerMichael Andreen <harv@ruin.nu>
Tue, 5 Feb 2008 10:04:55 +0000 (11:04 +0100)
NDWeb/Pages/LaunchConfirmation.pm

index 92217db36443a0bf2aaed9ec0ace2af5b82b0bbf..8c94dae1823e24a606f4f1bee2cdaeddce739089 100644 (file)
@@ -108,7 +108,7 @@ sub render_body {
                        my $ships = $11;
                        my @ships;
                        my $amount = 0;
-                       while ($ships =~ m/((?:\w+ )*\w+)\s+\w+\s+(?:(?:\w+|-)\s+){3}(?:Steal|Normal|Emp|Normal\s+Cloaked|Pod|Struc)\s+(\d+)/g){
+                       while ($ships =~ m/((?:\w+ )*\w+)\s+\w+\s+(?:(?:\w+|-)\s+){3}(?:Steal|Normal|Emp|Normal\s+Cloaked|Pod|Structure Killer)\s+(\d+)/g){
                                $amount += $2;
                                push @ships,{Ship => $1, Amount => $2};
                        }