]> ruin.nu Git - NDIRC.git/blobdiff - PA.pm
pa_xp function
[NDIRC.git] / PA.pm
diff --git a/PA.pm b/PA.pm
index 29bdb7722f647226b3f230d289ea7e0878682653..ca73ea59030b818d885de1ea0a2ce300cb4faef7 100644 (file)
--- a/PA.pm
+++ b/PA.pm
@@ -166,7 +166,7 @@ sub calcXp {
                $ND::server->command("notice $ND::target Doesn't seem to be a planet at $x:$y:$z");
                return;
        }
-       my $xp = int(max($roids * 10 * (min(2,$tscore/$ascore) + min(2,$tvalue/$avalue) - 1),0));
+       my $xp = pa_xp($roids,$ascore,$avalue,$tscore,$tvalue);
        my $score = 60 * $xp;
        my $value = $roids*200;
        my $totscore = prettyValue($score + $value);