diff options
author | Robert Vollmert <rvollmert@gmx.net> | 2010-02-24 09:17:52 +0100 |
---|---|---|
committer | Robert Vollmert <rvollmert@gmx.net> | 2010-02-24 09:17:52 +0100 |
commit | 3f2df81a22d414a95aff759c5891fa56d3b99eb0 (patch) | |
tree | 70da97b5291e587aa023a46e5cc9e22a41b5e602 /crawl-ref/source/util/gen-apt.pl | |
parent | c51bf27d80d1e344ffa5a3351c9509c18ff070f2 (diff) | |
download | crawl-ref-3f2df81a22d414a95aff759c5891fa56d3b99eb0.tar.gz crawl-ref-3f2df81a22d414a95aff759c5891fa56d3b99eb0.zip |
Show positive aptitudes with '+' in aptitudes.txt (except Exp).
Diffstat (limited to 'crawl-ref/source/util/gen-apt.pl')
-rwxr-xr-x | crawl-ref/source/util/gen-apt.pl | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/crawl-ref/source/util/gen-apt.pl b/crawl-ref/source/util/gen-apt.pl index 4ee798c270..38efdb4a65 100755 --- a/crawl-ref/source/util/gen-apt.pl +++ b/crawl-ref/source/util/gen-apt.pl @@ -127,7 +127,11 @@ sub aptitude_table { my $cwidth = length($abbr); $cwidth = 3 if $cwidth < 3; - $line .= sprintf("%*d", $cwidth, $skill); + my $fmt = "%+*d"; + if ($skill == 0 || $abbr eq "Exp") { + $fmt = "%*d"; + } + $line .= sprintf($fmt, $cwidth, $skill); } $text .= "$line\n"; } |