diff options
author | David Lawrence Ramsey <dolorous@users.sourceforge.net> | 2009-11-21 19:09:35 -0600 |
---|---|---|
committer | David Lawrence Ramsey <dolorous@users.sourceforge.net> | 2009-11-21 19:09:35 -0600 |
commit | a8883544d50427a352ed18f95e4da45bd212a463 (patch) | |
tree | a960054a4c8c4a857482fd360e40dc4257d75ea1 /crawl-ref/source/colour.cc | |
parent | 84488d2b62b2bb1e16337031edcbee33886e2279 (diff) | |
download | crawl-ref-a8883544d50427a352ed18f95e4da45bd212a463.tar.gz crawl-ref-a8883544d50427a352ed18f95e4da45bd212a463.zip |
change the ETC_SHIMMER_BLUE color to use tmp_rand.
It doesn't quite match with the original random_choose_weighted()
values, but it should be close enough.
Diffstat (limited to 'crawl-ref/source/colour.cc')
-rw-r--r-- | crawl-ref/source/colour.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/crawl-ref/source/colour.cc b/crawl-ref/source/colour.cc index f9cd4ec8de..0ebd9dbc5f 100644 --- a/crawl-ref/source/colour.cc +++ b/crawl-ref/source/colour.cc @@ -241,7 +241,9 @@ int element_colour( int element, bool no_random ) break; case ETC_SHIMMER_BLUE: - ret = random_choose_weighted(80, BLUE, 20, LIGHTBLUE, 5, CYAN, 0); + ret = (tmp_rand < 90) ? BLUE : + (tmp_rand < 110) ? LIGHTBLUE + : CYAN; break; case ETC_DECAY: |