diff options
author | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-05-28 11:28:11 +0000 |
---|---|---|
committer | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-05-28 11:28:11 +0000 |
commit | d4065da159cb407f1680de9f03596cd397ded525 (patch) | |
tree | fc32656471babe9ddeb97e6cd8937adcd6b760a0 /crawl-ref/source/Kills.cc | |
parent | 20a6609453ee2b51c388c296516c1abc1beab1d2 (diff) | |
download | crawl-ref-d4065da159cb407f1680de9f03596cd397ded525.tar.gz crawl-ref-d4065da159cb407f1680de9f03596cd397ded525.zip |
Added new orc entries and vaults (Lemuel).
Added support to the map designer for specifying the monster-type for zombies,
skeletons, simulacra and spectral things. Also allow specifying the number of
heads for hydras ("12-headed hydra").
Fixed lexer rule bug (IDENTIFIER).
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1490 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/Kills.cc')
-rw-r--r-- | crawl-ref/source/Kills.cc | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/crawl-ref/source/Kills.cc b/crawl-ref/source/Kills.cc index 272d91be61..b8da6d4b82 100644 --- a/crawl-ref/source/Kills.cc +++ b/crawl-ref/source/Kills.cc @@ -329,24 +329,6 @@ kill_def::kill_def(const struct monsters *mon) : kills(0), exp(0) add_kill(mon, get_packed_place()); } -static bool ends_with(const std::string &s, const char *suffix) -{ - std::string other = suffix; - if (s.length() < other.length()) return false; - return (s.substr(s.length() - other.length()) == other); -} - -static bool ends_with(const std::string &s, const char *suffixes[]) -{ - if (!suffixes) return false; - for ( ; *suffixes; suffixes++) - { - if (ends_with(s, *suffixes)) - return true; - } - return false; -} - std::string apostrophise(const std::string &name) { if (name.empty()) |