From bd7a961334fbcc180bfb39501bd7948dc961868c Mon Sep 17 00:00:00 2001 From: Johanna Ploog Date: Mon, 11 Jan 2010 20:46:21 +0100 Subject: 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.) --- crawl-ref/source/rltiles/dc-dngn.txt | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'crawl-ref/source/rltiles/dc-dngn.txt') 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 -- cgit v1.2.3-54-g00ecf