diff options
author | Nicholas Feinberg <pleasingfung@gmail.com> | 2014-07-24 23:25:21 -0700 |
---|---|---|
committer | Nicholas Feinberg <pleasingfung@gmail.com> | 2014-07-24 23:31:57 -0700 |
commit | cc8d6ef1a9a08f1e3ddb6d5f29ab5323a9f79d0d (patch) | |
tree | 10d9e7b867c6432191ce7fef90cd756efef6d5f3 /crawl-ref/source/player.cc | |
parent | f11e77305c2c7c242be67821183def72ec7b1b90 (diff) | |
download | crawl-ref-cc8d6ef1a9a08f1e3ddb6d5f29ab5323a9f79d0d.tar.gz crawl-ref-cc8d6ef1a9a08f1e3ddb6d5f29ab5323a9f79d0d.zip |
Make Ice/Statue Form use spellpower instead of Ice/Earth
Also adjusts max power (Ice Form 200->100, Statue Form 200->150)
to get roughly the same scaling as before; statue form now scales
slightly more slowly, but caps out at 1.5 ac higher, if you can
eke out enough spellpower.
AC from non-spell-caused polymorphs will be based on the power
of the polymorph.
Diffstat (limited to 'crawl-ref/source/player.cc')
-rw-r--r-- | crawl-ref/source/player.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc index 2420f86d71..e2c1f649f4 100644 --- a/crawl-ref/source/player.cc +++ b/crawl-ref/source/player.cc @@ -6532,8 +6532,8 @@ int player::armour_class() const case SP_GARGOYLE: AC += 200 + 100 * experience_level * 2 / 5 // max 20 + 100 * (max(0, experience_level - 7) * 2 / 5); - if (form == TRAN_STATUE) - AC += 1300 + skill(SK_EARTH_MAGIC, 50); + if (form == TRAN_STATUE) // max 28 + AC += 1300 + you.props[TRANSFORM_POW_KEY].get_int() * 10; break; default: @@ -6566,10 +6566,10 @@ int player::armour_class() const break; case TRAN_ICE_BEAST: - AC += 500 + skill(SK_ICE_MAGIC, 25) + 25; // max 12 + AC += 500 + you.props[TRANSFORM_POW_KEY].get_int() * 7; // max 12 if (duration[DUR_ICY_ARMOUR]) - AC += 100 + skill(SK_ICE_MAGIC, 25); // max +7 + AC += 100 + you.props[ICY_ARMOUR_KEY].get_int() * 6; // max +7 break; case TRAN_WISP: @@ -6583,7 +6583,7 @@ int player::armour_class() const break; case TRAN_STATUE: // main ability is armour (high bonus) - AC += 1700 + skill(SK_EARTH_MAGIC, 50);// max 30 + AC += 1700 + you.props[TRANSFORM_POW_KEY].get_int() * 10; // max 32 // Stoneskin bonus already accounted for. break; |