X-Git-Url: https://ruin.nu/git/?a=blobdiff_plain;f=lib%2FNDWeb%2FController%2FRaids.pm;h=998f3293386b4235526708777bba59d6afb6b665;hb=ec198a21465e578fe2f2a49c4ece32ad78d2d4d5;hp=ae9c7a61a7c8eb4a632dcbcb62785741edb75106;hpb=607f8612d35df5fbac0217d8a6946f01b7e5d33d;p=ndwebbie.git diff --git a/lib/NDWeb/Controller/Raids.pm b/lib/NDWeb/Controller/Raids.pm index ae9c7a6..998f329 100644 --- a/lib/NDWeb/Controller/Raids.pm +++ b/lib/NDWeb/Controller/Raids.pm @@ -114,7 +114,7 @@ sub view : Local { $c->stash(message => parseMarkup($raid->{message})); $c->stash(landingtick => $raid->{tick}); my $targetquery = $dbh->prepare(q{SELECT r.id, pid AS planet, size, score, value - , p.x,p.y,p.z, race + , p.pid, p.x,p.y,p.z, race , p.value - p.size*200 - COALESCE(ps.metal+ps.crystal+ps.eonium,0)/150 - COALESCE(ds.total ,(SELECT @@ -136,9 +136,9 @@ sub view : Local { my @targets; while (my $target = $targetquery->fetchrow_hashref){ if ($planet && $planet->{x}){ - if ($planet->{x} == $target->{x}){ - $target->{style} = 'incluster'; - } + #if ($planet->{x} == $target->{x}){ + # $target->{style} = 'incluster'; + #} $target->{cap} = min(0.25,0.25 * pow($target->{value}/$planet->{value} , 0.5)); $target->{scorebash} = 'bash' if ($target->{score}/$planet->{score} < 0.6); $target->{valuebash} = 'bash' if ($target->{value}/$planet->{value} < 0.4);