diff options
author | Pekka Lampila <pekka.lampila@iki.fi> | 2014-01-30 05:48:14 +0200 |
---|---|---|
committer | Pekka Lampila <pekka.lampila@iki.fi> | 2014-01-30 05:51:24 +0200 |
commit | 1019b623cb85326572a571fcc55b018ee120a4cd (patch) | |
tree | 7a6947495057b9613aa6b3cc18fee6d19957c4ea /crawl-ref/source/colour.cc | |
parent | 26bf1382e75a2696280a8c4619817e2a8881d033 (diff) | |
download | crawl-ref-1019b623cb85326572a571fcc55b018ee120a4cd.tar.gz crawl-ref-1019b623cb85326572a571fcc55b018ee120a4cd.zip |
Add a coloured flash when picking up a rune
Diffstat (limited to 'crawl-ref/source/colour.cc')
-rw-r--r-- | crawl-ref/source/colour.cc | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/crawl-ref/source/colour.cc b/crawl-ref/source/colour.cc index 870f127242..bd4846fd5f 100644 --- a/crawl-ref/source/colour.cc +++ b/crawl-ref/source/colour.cc @@ -314,6 +314,31 @@ int dam_colour(const monster_info& mi) } } +colour_t rune_colour(int type) +{ + switch (type) + { + case RUNE_SWAMP: return GREEN; + case RUNE_SNAKE: return GREEN; + case RUNE_SHOALS: return LIGHTBLUE; + case RUNE_SLIME: return LIGHTGREEN; + case RUNE_VAULTS: return WHITE; + case RUNE_TOMB: return YELLOW; + case RUNE_DIS: return CYAN; + case RUNE_GEHENNA: return RED; + case RUNE_COCYTUS: return LIGHTCYAN; + case RUNE_TARTARUS: return LIGHTMAGENTA; + case RUNE_ABYSSAL: return MAGENTA; + case RUNE_DEMONIC: return MAGENTA; + case RUNE_MNOLEG: return LIGHTGREEN; + case RUNE_LOM_LOBON: return BLUE; + case RUNE_CEREBOV: return RED; + case RUNE_GLOORX_VLOQ: return DARKGRAY; + case RUNE_SPIDER: return BROWN; + default: return GREEN; + } +} + static int _etc_random(int, const coord_def&) { return random_colour(); |