diff options
author | Jude Brown <bookofjude@users.sourceforge.net> | 2009-11-22 15:54:24 +1000 |
---|---|---|
committer | Jude Brown <bookofjude@users.sourceforge.net> | 2009-11-22 15:54:24 +1000 |
commit | ab3ea04380fd89fb89f061ca6611b6a7cf4f11e1 (patch) | |
tree | 33fc646d34ad0e18687bdddfe3c8e68713d82ca2 /crawl-ref/source/main.cc | |
parent | 15a43070d595df23a11d9f5b37114b15f1e32443 (diff) | |
download | crawl-ref-ab3ea04380fd89fb89f061ca6611b6a7cf4f11e1.tar.gz crawl-ref-ab3ea04380fd89fb89f061ca6611b6a7cf4f11e1.zip |
Stop Deep Dwarf MP from regenerating with spirit shield.
Don't allow Deep Dwarves to use spirit shields as a free source of
regenerating HP.
However, this simply stops natural regeneration. Potions of magic,
crystal balls, staffs of channeling, and other God powers (Makhleb,
Vehumet and Sif Muna) are still acceptable methods.
Diffstat (limited to 'crawl-ref/source/main.cc')
-rw-r--r-- | crawl-ref/source/main.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/crawl-ref/source/main.cc b/crawl-ref/source/main.cc index 0ec454e220..14704c6352 100644 --- a/crawl-ref/source/main.cc +++ b/crawl-ref/source/main.cc @@ -2739,6 +2739,10 @@ static void _regenerate_hp_and_mp(int delay) tmp -= 100; } + // XXX: Don't let DD use guardian spirit for free HP. (due, dpeg) + if (player_spirit_shield() && you.species == SP_DEEP_DWARF) + return; + ASSERT( tmp >= 0 && tmp < 100 ); you.hit_points_regeneration = static_cast<unsigned char>(tmp); |