diff options
author | Stefan O'Rear <stefanor@cox.net> | 2009-11-04 21:36:26 -0800 |
---|---|---|
committer | Stefan O'Rear <stefanor@cox.net> | 2009-11-04 21:36:26 -0800 |
commit | 1c4f4dd987fdfe1462aef78550f46ac1f46adf26 (patch) | |
tree | 66da0cdfb301dfe28624716b75d31509619bc497 /crawl-ref/source/monster.cc | |
parent | 48ab3b1a8d6b8849ffc90bde7ffa2ee0c7ba0aeb (diff) | |
download | crawl-ref-1c4f4dd987fdfe1462aef78550f46ac1f46adf26.tar.gz crawl-ref-1c4f4dd987fdfe1462aef78550f46ac1f46adf26.zip |
Allow each dancing weapon to have its own stats
Diffstat (limited to 'crawl-ref/source/monster.cc')
-rw-r--r-- | crawl-ref/source/monster.cc | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/crawl-ref/source/monster.cc b/crawl-ref/source/monster.cc index 376e660b81..58b4f53462 100644 --- a/crawl-ref/source/monster.cc +++ b/crawl-ref/source/monster.cc @@ -3424,6 +3424,19 @@ void monsters::uglything_init(bool only_mutate) colour = ghost->colour; } +void monsters::dancing_weapon_init() +{ + hit_dice = ghost->xl; + max_hit_points = ghost->max_hp; + + hit_points = max_hit_points; + ac = ghost->ac; + ev = ghost->ev; + speed = ghost->speed; + speed_increment = 70; + colour = ghost->colour; +} + void monsters::uglything_mutate(unsigned char force_colour) { ghost->init_ugly_thing(type == MONS_VERY_UGLY_THING, true, force_colour); |