From: Michael Andreen Date: Fri, 13 Apr 2007 15:19:20 +0000 (+0000) Subject: pa_xp function X-Git-Url: https://ruin.nu/git/?a=commitdiff_plain;h=b105d516b54d9315264628db84e831799a7cce35;hp=2d63dadea0c5b15232ea5d7a1767a7fecdf6ac48;p=NDIRC.git pa_xp function --- 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);