X-Git-Url: https://ruin.nu/git/?a=blobdiff_plain;f=ND%2FIRC%2FPA.pm;h=ca73ea59030b818d885de1ea0a2ce300cb4faef7;hb=1f1d37b478dace4b2c2c8054fe6f7350bfb24ae9;hp=29bdb7722f647226b3f230d289ea7e0878682653;hpb=60f37638840d3cafaf159296e32164627a27d1eb;p=ndwebbie.git diff --git a/ND/IRC/PA.pm b/ND/IRC/PA.pm index 29bdb77..ca73ea5 100644 --- a/ND/IRC/PA.pm +++ b/ND/IRC/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);