diff options
author | Shmuale Mark <shm.mark@gmail.com> | 2014-06-08 14:50:17 -0400 |
---|---|---|
committer | Shmuale Mark <shm.mark@gmail.com> | 2014-06-08 14:52:10 -0400 |
commit | cb6117e5bdae3761c800086d137525f7c86f66c0 (patch) | |
tree | 92efe3aa0adfb66e5728726c2f1cc93260eed19d /crawl-ref/source/util | |
parent | b9ebe9259bf82c511ff15a01987f8568c8611481 (diff) | |
download | crawl-ref-cb6117e5bdae3761c800086d137525f7c86f66c0.tar.gz crawl-ref-cb6117e5bdae3761c800086d137525f7c86f66c0.zip |
Display HP/MP as percentages, rather than fake aptitudes.
Also cut away some obsolete (?) information in the aptitudes file.
Diffstat (limited to 'crawl-ref/source/util')
-rwxr-xr-x | crawl-ref/source/util/gen-apt.pl | 5 |
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"; |