summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/util/levcomp.lpp
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-01-29 16:57:10 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-01-29 16:57:10 +0000
commit1b87b6c8d4c8fb34b16eb8ddc4787f6421068222 (patch)
treecab50e8c0b765a98d81e577848ac230d058c64e1 /crawl-ref/source/util/levcomp.lpp
parent9295e4fb393749bedc6ccdbe99c5147435949d35 (diff)
downloadcrawl-ref-1b87b6c8d4c8fb34b16eb8ddc4787f6421068222.tar.gz
crawl-ref-1b87b6c8d4c8fb34b16eb8ddc4787f6421068222.zip
Allow maps to use SHUFFLE: directive to shuffle symbols in the map definition
(David). For instance, SHUFFLE: def will shuffle its argument (to "efd", for instance) and replace each occurrence of the symbols in its argument with the corresponding symbol in the shuffled list (so all d will be replaced with e, all e with f, and all f with d in the example). Multiple SHUFFLE: lines can be used, and each shuffle will be applied independently. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@906 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/util/levcomp.lpp')
-rw-r--r--crawl-ref/source/util/levcomp.lpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/crawl-ref/source/util/levcomp.lpp b/crawl-ref/source/util/levcomp.lpp
index 1c8f9b73af..3556c7cb87 100644
--- a/crawl-ref/source/util/levcomp.lpp
+++ b/crawl-ref/source/util/levcomp.lpp
@@ -121,6 +121,7 @@ TAGS: { BEGIN(KEYWORDS); return TAGS; }
SYMBOL: { BEGIN(ARGUMENT); return SYMBOL; }
MONS: { BEGIN(MNAME); return MONS; }
ITEM: { BEGIN(ITEM_LIST); return ITEM; }
+SHUFFLE: { BEGIN(ARGUMENT); return SHUFFLE; }
BRANCHDEF: return BRANCH;
DEFAULT return DEFAULT;