diff options
author | David Lawrence Ramsey <dolorous@users.sourceforge.net> | 2009-10-31 08:56:30 -0500 |
---|---|---|
committer | David Lawrence Ramsey <dolorous@users.sourceforge.net> | 2009-10-31 09:00:43 -0500 |
commit | ebd817b97aee46e383185f99d022fb9c559033d9 (patch) | |
tree | 68957d69448760dc6b55a5b9286f3b6283ce6bbe /crawl-ref/source/ghost.cc | |
parent | a6fe99646bdf76151337e2217a26f6b9839510fc (diff) | |
download | crawl-ref-ebd817b97aee46e383185f99d022fb9c559033d9.tar.gz crawl-ref-ebd817b97aee46e383185f99d022fb9c559033d9.zip |
Implement [2889948]: In the console version, make (very) ugly thing
corpses randomly cycle through all their available colors instead of
always being (light)red.
Diffstat (limited to 'crawl-ref/source/ghost.cc')
-rw-r--r-- | crawl-ref/source/ghost.cc | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/crawl-ref/source/ghost.cc b/crawl-ref/source/ghost.cc index 72f9d8733e..5735eb9134 100644 --- a/crawl-ref/source/ghost.cc +++ b/crawl-ref/source/ghost.cc @@ -18,6 +18,7 @@ #include "ng-input.h" #include "random.h" #include "skills2.h" +#include "mon-util.h" #include "mtransit.h" #include "place.h" #include "player.h" @@ -399,16 +400,6 @@ void ghost_demon::init_player_ghost() add_spells(); } -unsigned char ugly_thing_random_colour() -{ - const unsigned char colours[] = - { - RED, BROWN, GREEN, CYAN, MAGENTA, LIGHTGREY - }; - - return (RANDOM_ELEMENT(colours)); -} - static unsigned char _ugly_thing_assign_colour(unsigned char force_colour, unsigned char force_not_colour) { |