summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/util
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/util')
-rwxr-xr-xcrawl-ref/source/util/gen-apt.pl5
1 files changed, 5 insertions, 0 deletions
diff --git a/crawl-ref/source/util/gen-apt.pl b/crawl-ref/source/util/gen-apt.pl
index fe7477aed9..166924241b 100755
--- a/crawl-ref/source/util/gen-apt.pl
+++ b/crawl-ref/source/util/gen-apt.pl
@@ -146,6 +146,11 @@ sub aptitude_table
my $fmt = "%+3d";
$fmt = "%3d" if $skill == 0;
$fmt = " NA" if $skill == -99;
+ if ($abbr eq 'HP' || $abbr eq 'MP')
+ {
+ $skill = 100 + $skill * 10;
+ $fmt = "%3d%%";
+ }
$line .= sprintf($fmt, $skill);
}
$text .= "$line\n";