]> iEval git - gruntmaster-page.git/blobdiff - lib/Gruntmaster/Page/St.pm
Merge branch 'master' into gruntmaster
[gruntmaster-page.git] / lib / Gruntmaster / Page / St.pm
index 02e377da57baad96bdaf98932da3f3501c007c55..3857c1ad22f991a6c5e5745b1ee5e6b9ef1a67d8 100644 (file)
@@ -1,11 +1,6 @@
 package Gruntmaster::Page::St;
 
-use 5.014000;
-use strict;
-use warnings;
 use Gruntmaster::Page::Base st => 'Standings';
-our @ISA = qw/Gruntmaster::Page::Base/;
-our $VERSION = '0.001';
 
 use constant LEVEL_VALUES => {
        beginner => 100,
@@ -24,7 +19,7 @@ sub calc_score{
        $score = ($totaltime - $timetaken) / $totaltime * $score;
        $score -= $tries / 10 * $mxscore;
        $score = $mxscore * 3 / 10 if $score < $mxscore * 3 / 10;
-       int $score
+       int $score + 0.5
 }
 
 sub _generate{
This page took 0.023464 seconds and 4 git commands to generate.