summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/util/gather_mons
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2012-08-17 02:20:13 +0200
committerAdam Borowski <kilobyte@angband.pl>2012-08-17 11:02:57 +0200
commita60ea91a2b430ae48b7b4ff4e2747998dce071af (patch)
tree921907c05039e6a5c8646f33855a98422192de65 /crawl-ref/source/util/gather_mons
parent677207328a1f3ce4ca06e4a20c5f458c33c6321e (diff)
downloadcrawl-ref-a60ea91a2b430ae48b7b4ff4e2747998dce071af.tar.gz
crawl-ref-a60ea91a2b430ae48b7b4ff4e2747998dce071af.zip
Fetch custom monsters from the Arena Sprint.
Diffstat (limited to 'crawl-ref/source/util/gather_mons')
-rwxr-xr-xcrawl-ref/source/util/gather_mons11
1 files changed, 11 insertions, 0 deletions
diff --git a/crawl-ref/source/util/gather_mons b/crawl-ref/source/util/gather_mons
index 030028a8f6..8456b37ca6 100755
--- a/crawl-ref/source/util/gather_mons
+++ b/crawl-ref/source/util/gather_mons
@@ -35,6 +35,9 @@ sub vault_mon()
$_=$tags{'dbname'} if $db && $tags{'dbname'};
s/_/ /g;
+ # The Arena Sprint has teams, sometimes even on a place:X (ie, no name).
+ return if (s/ \((?:green|purple) team\)$//) && /^$/;
+
$mons{$_} = 1;
}
@@ -56,7 +59,15 @@ for (grep /\.des$/, `git ls-files`)
s/"[^"]*"/LUA/g;
s/"$//;
s/"[^"]*$/LUA/;
+ vault_mon() for split m{/|,}; #/
+ }
+ for (/mon_set\s+=\s+\{([^}]+)}/sg)
+ {
+ s/^\s*"//s;
+ s/"\s*,\s*$//sg;
s/\\\n *//g;
+ s/--[^\n]*\n//sg;
+ s|"\s*,\s*"|/|sg;
vault_mon() for split m{/|,}; #/
}
}