From: Michael Andreen Date: Mon, 4 Jun 2007 10:54:50 +0000 (+0000) Subject: possible to hide targets below bash limits, if we chose to X-Git-Url: https://ruin.nu/git/?a=commitdiff_plain;h=99ea1738beb3fd8eba6a016cbb4d5c95fa6834e2;p=ndwebbie.git possible to hide targets below bash limits, if we chose to --- diff --git a/ND/Web/Pages/Raids.pm b/ND/Web/Pages/Raids.pm index 8381f84..afb91c1 100644 --- a/ND/Web/Pages/Raids.pm +++ b/ND/Web/Pages/Raids.pm @@ -203,6 +203,14 @@ sub render_body { my @targets; while (my $target = $targetquery->fetchrow_hashref){ my %target; + if ($planet){ + if ($planet->{x} == $target->{x}){ + $target{style} = 'incluster'; + } + $target{ScoreBash} = 'bash' if ($target->{score}/$planet->{score} < 0.4); + $target{ValueBash} = 'bash' if ($target->{value}/$planet->{value} < 0.4); + #next if ($target->{score}/$planet->{score} < 0.4) && ($target->{value}/$planet->{value} < 0.4); + } $target{Id} = $target->{id}; $target{Race} = $target->{race}; my $num = pow(10,length($target->{score})-2); @@ -243,13 +251,6 @@ sub render_body { } $target{Scans} = \@scans; - if ($planet){ - if ($planet->{x} == $target->{x}){ - $target{style} = 'incluster'; - } - $target{ScoreBash} = 'bash' if ($target->{score}/$planet->{score} < 0.4); - $target{ValueBash} = 'bash' if ($target->{value}/$planet->{value} < 0.4); - } my @roids; my @claims;