summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/util/db_lint
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2014-01-07 02:20:33 +0100
committerAdam Borowski <kilobyte@angband.pl>2014-01-07 02:31:06 +0100
commit29d148a2b9f3889e6c9d05ba19f174e5271214da (patch)
tree3a3f2e8adb62b6d42248d5a35bcb6743a0a848f4 /crawl-ref/source/util/db_lint
parent070ca00bc40addad318a3d5d6f296cbceedd8542 (diff)
downloadcrawl-ref-29d148a2b9f3889e6c9d05ba19f174e5271214da.tar.gz
crawl-ref-29d148a2b9f3889e6c9d05ba19f174e5271214da.zip
Let db_lint check Xommy parts of godspeak.txt.
Diffstat (limited to 'crawl-ref/source/util/db_lint')
-rwxr-xr-xcrawl-ref/source/util/db_lint17
1 files changed, 17 insertions, 0 deletions
diff --git a/crawl-ref/source/util/db_lint b/crawl-ref/source/util/db_lint
index 99458a8139..f605cc2e2f 100755
--- a/crawl-ref/source/util/db_lint
+++ b/crawl-ref/source/util/db_lint
@@ -262,6 +262,23 @@ __________________________________________________________________________();
read_file("database/$_") for qw(monspeak monspell monflee wpnnoise insult godspeak);
check_db_locals();
#check_db_externs(@monspeak_at_at);
+
+{
+ undef local $/;
+ open F, "<xom.cc" or die "Can't read xom.cc\n";
+ $_ = <F>;
+ close F;
+ my %xom;
+ $xom{$_}=1 for (m{_get_xom_speech\("([^"]+)"\)}g, m{XOM_SPEECH\("([^"]+)"\)}g); #"
+ $keys{"Xom $_"} or err "godspeak: no speech for 'Xom $_'\n" for (keys %xom);
+ # game start messages use the same prefix of "Xom ", ignore them
+ $xom{$_}=1 for qw(bored newgame prayer generic);
+ for (grep /^Xom /, keys %keys)
+ {
+ s/^Xom //;
+ $xom{$_} or err "godspeak: unknown entry 'Xom $_'\n";
+ }
+}
__________________________________________________________________________();
read_file("database/$_") for qw(shout insult);
check_db_locals();