diff options
author | Neil Moore <neil@s-z.org> | 2014-07-30 13:48:19 -0400 |
---|---|---|
committer | Neil Moore <neil@s-z.org> | 2014-07-30 13:48:19 -0400 |
commit | dfe5d2a04b5146e22cdb36d0e4bd5add76b7122a (patch) | |
tree | 0c0f5d9c30cba39ed7d7bb60a12a05665b4e18f4 /crawl-ref/source/util | |
parent | f45ab2234627885def50847d259abb07ae36609b (diff) | |
download | crawl-ref-dfe5d2a04b5146e22cdb36d0e4bd5add76b7122a.tar.gz crawl-ref-dfe5d2a04b5146e22cdb36d0e4bd5add76b7122a.zip |
Handle jewellery again in db_lint.
Diffstat (limited to 'crawl-ref/source/util')
-rwxr-xr-x | crawl-ref/source/util/gather_items | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/crawl-ref/source/util/gather_items b/crawl-ref/source/util/gather_items index 0764aa9110..04a00d1f81 100755 --- a/crawl-ref/source/util/gather_items +++ b/crawl-ref/source/util/gather_items @@ -2,6 +2,12 @@ my $db = grep /^-d$/, @ARGV; +sub amulet_name($) +{ + my $amu = shift; + return "amulet of " . ($amu eq "gourmand" ? "the $amu" : "$amu"); +} + open IN, "util/cpp_version itemname.cc|" or die "Can't read itemname.cc\n"; { undef local $/; $_ = <IN>; } close IN; @@ -9,8 +15,8 @@ close IN; $items{"wand of $_"} = 1 for /WAND_[A-Z_]+: *return "([^"]+)";/g; $items{"potion of $_"} = 1 for /POT_[A-Z_]+: *return "([^"]+)";/g; $items{"scroll of $_"} = 1 for /SCR_[A-Z_]+: *return "([^"]+)";/g; -$items{$_} = 1 for /RING_[A-Z_]+: *return "([^"]+)";/g; -$items{$_} = 1 for /AMU_[A-Z_]+: *return "([^"]+)";/g; +$items{"ring of $_"} = 1 for /RING_[A-Z_]+: *return "([^"]+)";/g; +$items{amulet_name($_) } = 1 for /AMU_[A-Z_]+: *return "([^"]+)";/g; unless ($db) { $items{"$_ rune of Zot"} = 1 for /RUNE_[A-Z_]+: *return "([^"]+)";/g; |