diff options
author | Adam Borowski <kilobyte@angband.pl> | 2013-04-28 04:04:17 +0200 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2013-04-28 20:26:33 +0200 |
commit | f40123031f16c4e72e03b82860d81e5a387840f1 (patch) | |
tree | 08e665c9c91cd1648f021e1495c38301b255bd82 /crawl-ref/source/skills2.cc | |
parent | 13e17859e1368329656faf463f29a68f7380b344 (diff) | |
download | crawl-ref-f40123031f16c4e72e03b82860d81e5a387840f1.tar.gz crawl-ref-f40123031f16c4e72e03b82860d81e5a387840f1.zip |
Djinn: their life is magic.
HP and MP are unified as "essence". Per elliptic's suggestion, 1MP=2EP,
to avoid chain-casting 30 Fire Storms (15 is still pretty good...). If
that's not enough, the rate can be modified easily.
The display looks iffy with a two-line bar, having it in one line would
require shifting the HUD -- and that would require massive changes to HUD
code (long overdue, though).
Balancing the healer god (and I'm not talking about Elyvilon) is another
issue. If messing with glow is not enough, perhaps MP gains should give
EP at 1:1 rather than 1:2?
Diffstat (limited to 'crawl-ref/source/skills2.cc')
-rw-r--r-- | crawl-ref/source/skills2.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/crawl-ref/source/skills2.cc b/crawl-ref/source/skills2.cc index 94a6c98ab6..908390f8f1 100644 --- a/crawl-ref/source/skills2.cc +++ b/crawl-ref/source/skills2.cc @@ -473,11 +473,19 @@ void init_skill_order(void) void calc_hp() { you.hp_max = get_real_hp(true, false); + if (you.species == SP_DJINNI) + you.hp_max += get_real_mp(true); deflate_hp(you.hp_max, false); } void calc_mp() { + if (you.species == SP_DJINNI) + { + you.magic_points = you.max_magic_points = 0; + return calc_hp(); + } + you.max_magic_points = get_real_mp(true); you.magic_points = min(you.magic_points, you.max_magic_points); you.redraw_magic_points = true; |