]> ruin.nu Git - ndwebbie.git/commitdiff
using new xp formula
authorMichael Andreen <harv@ruin.nu>
Fri, 13 Apr 2007 15:49:18 +0000 (15:49 +0000)
committerMichael Andreen <harv@ruin.nu>
Fri, 13 Apr 2007 15:49:18 +0000 (15:49 +0000)
ND/Web/Pages/Raids.pm

index 7bcb1f4e633d0ce13a4498c056cdbb10f4c6508c..8381f84ea65488d76b5caa31a299996a95818b59 100644 (file)
@@ -259,7 +259,7 @@ sub render_body {
                                $size -= $roids;
                                my $xp = 0;
                                if ($planet){
-                                       $xp = max(0,floor($roids * 10 * (min(2,$target{Score}/$planet->{score}) + min(2,$target{Value}/$planet->{value})-1)));
+                                       $xp = pa_xp($roids,$planet->{score},$planet->{value},$target{Score},$target{Value});
                                }
                                push @roids,{Wave => $i, Roids => $roids, XP => $xp};
                                if ($self->{AJAX}){