summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mon-abil.h
diff options
context:
space:
mode:
authorDavid Lawrence Ramsey <dolorous@users.sourceforge.net>2010-10-11 19:24:08 -0500
committerDavid Lawrence Ramsey <dolorous@users.sourceforge.net>2010-10-11 19:24:08 -0500
commit87f0dd4a7d72c010b9a9578992541a64f3db05c3 (patch)
tree21b72910cf0176fe1155d94394cd8c746f770672 /crawl-ref/source/mon-abil.h
parent89ac9cc44240178f6c220c91cadf5e88ad7956fe (diff)
downloadcrawl-ref-87f0dd4a7d72c010b9a9578992541a64f3db05c3.tar.gz
crawl-ref-87f0dd4a7d72c010b9a9578992541a64f3db05c3.zip
Clean up Tiamat's color-changing routine.
Move it into its own function, and have it set the base type associated with the color. This means that the hacks in draco_subspecies() to get Tiamat's base type and resistances based on color are no longer necessary, so they're removed. As a side effect, Tiamat is now always initialized to one of her random colors instead of always starting out as a purple draconian; if this were not the case, her base type would be the base draconian until her first color change, since her genus and species are both set to MONS_DRACONIAN.
Diffstat (limited to 'crawl-ref/source/mon-abil.h')
-rw-r--r--crawl-ref/source/mon-abil.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/crawl-ref/source/mon-abil.h b/crawl-ref/source/mon-abil.h
index c04399ce35..2a3028a0da 100644
--- a/crawl-ref/source/mon-abil.h
+++ b/crawl-ref/source/mon-abil.h
@@ -13,6 +13,8 @@ struct bolt;
bool mon_special_ability(monster* mons, bolt & beem);
void mon_nearby_ability(monster* mons);
+void draconian_change_colour(monster* drac);
+
bool ugly_thing_mutate(monster* ugly, bool proximity = false);
void ballisto_on_move(monster* mons, const coord_def & pos);