From a8883544d50427a352ed18f95e4da45bd212a463 Mon Sep 17 00:00:00 2001 From: David Lawrence Ramsey Date: Sat, 21 Nov 2009 19:09:35 -0600 Subject: 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. --- crawl-ref/source/colour.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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: -- cgit v1.2.3-54-g00ecf