summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/rltiles/dc-dngn.txt
diff options
context:
space:
mode:
authorJohanna Ploog <j-p-e-g@users.sourceforge.net>2010-01-11 20:46:21 +0100
committerJohanna Ploog <j-p-e-g@users.sourceforge.net>2010-01-11 21:33:48 +0100
commitbd7a961334fbcc180bfb39501bd7948dc961868c (patch)
treea6bc822837eb555e4a1ff34327af47cd8389f327 /crawl-ref/source/rltiles/dc-dngn.txt
parent04163afa8a2c64c15323834a89e2425cc7f4b126 (diff)
downloadcrawl-ref-bd7a961334fbcc180bfb39501bd7948dc961868c.tar.gz
crawl-ref-bd7a961334fbcc180bfb39501bd7948dc961868c.zip
Implement rltiles %weight command and skewed dngn tile probabilities.
In dc-dngn.txt you can now use the %weight command to specify the probability of a given tile whenever a variant is chosen randomly from a set of variant tiles. Example: %weight 5 floor/floor_sand_stone0 FLOOR_SAND_STONE floor/floor_sand_stone1 floor/floor_sand_stone2 floor/floor_sand_stone3 %weight 2 floor/floor_sand_stone4 floor/floor_sand_stone5 floor/floor_sand_stone7 %weight 1 floor/floor_sand_stone6 ... will make plain sand more likely than the rocky versions and the big rock rarer than the smaller ones. This is not visible from the dngn.png but you can check the (cumulative) weights in tiledef-dngn.cc. Aside from the above, this is also used for the brick wall in all its colorations. (The repeat command also repeats the weight settings.)
Diffstat (limited to 'crawl-ref/source/rltiles/dc-dngn.txt')
-rw-r--r--crawl-ref/source/rltiles/dc-dngn.txt10
1 files changed, 8 insertions, 2 deletions
diff --git a/crawl-ref/source/rltiles/dc-dngn.txt b/crawl-ref/source/rltiles/dc-dngn.txt
index ef8e062e57..ed69c900b6 100644
--- a/crawl-ref/source/rltiles/dc-dngn.txt
+++ b/crawl-ref/source/rltiles/dc-dngn.txt
@@ -9,13 +9,16 @@ dngn_unseen DNGN_UNSEEN
# Multiple tile definitions are STATIC, that is they may change between
# saves but are otherwise fixed.
+%weight 5
wall/brick_brown0 WALL_NORMAL WALL_BRICK WALL_BRICK_BROWN
wall/brick_brown1
wall/brick_brown2
-wall/brick_brown3
wall/brick_brown4
wall/brick_brown5
+%weight 2
+wall/brick_brown3
wall/brick_brown6
+%weight 1
wall/brick_brown7
%variation WALL_BRICK blue
@@ -604,14 +607,17 @@ floor/rough_red3
%repeat FLOOR_ROUGH FLOOR_ROUGH_WHITE
%resetcol
+%weight 5
floor/floor_sand_stone0 FLOOR_SAND_STONE
floor/floor_sand_stone1
floor/floor_sand_stone2
floor/floor_sand_stone3
+%weight 2
floor/floor_sand_stone4
floor/floor_sand_stone5
-floor/floor_sand_stone6
floor/floor_sand_stone7
+%weight 1
+floor/floor_sand_stone6
wall/wall_yellow_rock0 WALL_YELLOW_ROCK
wall/wall_yellow_rock1