From b105d516b54d9315264628db84e831799a7cce35 Mon Sep 17 00:00:00 2001 From: Michael Andreen Date: Fri, 13 Apr 2007 15:19:20 +0000 Subject: [PATCH] pa_xp function --- PA.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PA.pm b/PA.pm index 29bdb77..ca73ea5 100644 --- 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); -- 2.39.2