summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/util/gen-apt.pl
diff options
context:
space:
mode:
authorRobert Vollmert <rvollmert@gmx.net>2010-02-24 09:17:52 +0100
committerRobert Vollmert <rvollmert@gmx.net>2010-02-24 09:17:52 +0100
commit3f2df81a22d414a95aff759c5891fa56d3b99eb0 (patch)
tree70da97b5291e587aa023a46e5cc9e22a41b5e602 /crawl-ref/source/util/gen-apt.pl
parentc51bf27d80d1e344ffa5a3351c9509c18ff070f2 (diff)
downloadcrawl-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-xcrawl-ref/source/util/gen-apt.pl6
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";
}