From cf9342cff2b07003767d7965679ddc315176fc09 Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Mon, 2 Apr 2007 12:32:45 +0000 Subject: Tweaked item colours and added special colouring to randarts. We might still have to exchange the grey/blue pairings but for now I've tried to keep as many settings as possible. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1188 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/dungeon.cc | 25 +++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) (limited to 'crawl-ref/source/dungeon.cc') diff --git a/crawl-ref/source/dungeon.cc b/crawl-ref/source/dungeon.cc index 524ab8c86d..caaea6892d 100644 --- a/crawl-ref/source/dungeon.cc +++ b/crawl-ref/source/dungeon.cc @@ -6542,9 +6542,26 @@ static void many_pools(unsigned char pool_type) while (pools < no_pools); } // end many_pools() +static int exciting_colour() +{ + switch(random2(4)) + { + case 0: return YELLOW; + case 1: return LIGHTGREEN; + case 2: return LIGHTRED; + case 3: return LIGHTMAGENTA; + default: return MAGENTA; + } +} + + static int newwave_weapon_colour(const item_def &item) { int item_colour = BLACK; + // unrandom artefacts get predefined colours + if ( is_random_artefact(item) ) + return exciting_colour(); + if (is_range_weapon( item )) { switch (range_skill(item)) @@ -6553,7 +6570,7 @@ static int newwave_weapon_colour(const item_def &item) item_colour = BLUE; break; case SK_CROSSBOWS: - item_colour = RED; + item_colour = LIGHTBLUE; break; case SK_DARTS: item_colour = WHITE; @@ -6584,7 +6601,7 @@ static int newwave_weapon_colour(const item_def &item) item_colour = LIGHTGREY; break; case SK_POLEARMS: - item_colour = LIGHTGREEN; + item_colour = RED; break; case SK_STAVES: item_colour = GREEN; @@ -6655,10 +6672,10 @@ static int newwave_missile_colour(const item_def &item) item_colour = WHITE; break; case MI_BOLT: - item_colour = RED; + item_colour = LIGHTBLUE; break; case MI_DART: - item_colour = LIGHTRED; + item_colour = CYAN; break; default: // huh? -- cgit v1.2.3-54-g00ecf