summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/util
diff options
context:
space:
mode:
authorNeil Moore <neil@s-z.org>2014-07-06 13:43:43 -0400
committerNeil Moore <neil@s-z.org>2014-07-06 14:21:57 -0400
commit43c28ef48d3c937d8c7fd0480aa3efcac5fce49b (patch)
treebeadcd91f89bf66d5e6b0a716838a4d833b22ce7 /crawl-ref/source/util
parent1569788093c33e383f7893c3daf7fea87c009499 (diff)
downloadcrawl-ref-43c28ef48d3c937d8c7fd0480aa3efcac5fce49b.tar.gz
crawl-ref-43c28ef48d3c937d8c7fd0480aa3efcac5fce49b.zip
Handle floor renames in db_lint.
Diffstat (limited to 'crawl-ref/source/util')
-rwxr-xr-xcrawl-ref/source/util/gather_features3
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/util/gather_features b/crawl-ref/source/util/gather_features
index e2661d6bad..dc3405f311 100755
--- a/crawl-ref/source/util/gather_features
+++ b/crawl-ref/source/util/gather_features
@@ -10,7 +10,8 @@ sub articled($)
return $_ if /^[A-Z]/ && !/ trap$/;
return "\u$_" if /^(?:the |an |a |some )/i;
return "A $_" if /^one-/i;
- return "The $_" if $_ eq "floor";
+ # Handle "rough-hewn floor" but not "escape hatch in the floor"
+ return "The $_" if $_ =~ /^(\S+\s+)?floor$/;
return /^[aeiou]/i ? "An $_" : "A $_";
}