summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/player.cc
diff options
context:
space:
mode:
authorharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2006-12-05 11:41:45 +0000
committerharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2006-12-05 11:41:45 +0000
commitf2fa5bda853c07cca05490f4b6d5d9dd2aec1608 (patch)
treea19c7cc6d57f48dab785c501d4d21648dcf672e3 /crawl-ref/source/player.cc
parentf79914cddad049fc82f6dd3d4ff9dd34e4246f31 (diff)
downloadcrawl-ref-f2fa5bda853c07cca05490f4b6d5d9dd2aec1608.tar.gz
crawl-ref-f2fa5bda853c07cca05490f4b6d5d9dd2aec1608.zip
More abilities to permamutations.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@575 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/player.cc')
-rw-r--r--crawl-ref/source/player.cc30
1 files changed, 6 insertions, 24 deletions
diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc
index 304bb408d2..3b4f44b370 100644
--- a/crawl-ref/source/player.cc
+++ b/crawl-ref/source/player.cc
@@ -966,9 +966,7 @@ int player_res_cold(bool calc_unid)
rc += scan_randarts(RAP_COLD, calc_unid);
// species:
- if (you.species == SP_MUMMY || you.species == SP_GHOUL)
- rc++;
- else if (you.species == SP_WHITE_DRACONIAN && you.experience_level > 17)
+ if (you.species == SP_WHITE_DRACONIAN && you.experience_level > 17)
rc++;
// mutations:
@@ -1144,12 +1142,8 @@ int player_res_poison(bool calc_unid)
rp += scan_randarts(RAP_POISON, calc_unid);
// species:
- if (you.species == SP_MUMMY || you.species == SP_NAGA
- || you.species == SP_GHOUL
- || (you.species == SP_GREEN_DRACONIAN && you.experience_level > 6))
- {
+ if (you.species == SP_GREEN_DRACONIAN && you.experience_level > 6)
rp++;
- }
// mutations:
rp += you.mutation[MUT_POISON_RESISTANCE];
@@ -1400,16 +1394,7 @@ int player_movement_speed(void)
else
{
/* transformations */
- if (!player_is_shapechanged())
- {
- // Centaurs and spriggans are only fast in their regular
- // shape (ie untransformed, blade hands, lich form)
- if (you.species == SP_CENTAUR)
- mv = 8;
- else if (you.species == SP_SPRIGGAN)
- mv = 6;
- }
- else if (you.attribute[ATTR_TRANSFORMATION] == TRAN_SPIDER)
+ if (you.attribute[ATTR_TRANSFORMATION] == TRAN_SPIDER)
mv = 8;
/* armour */
@@ -1424,8 +1409,9 @@ int player_movement_speed(void)
if (you.duration[DUR_SWIFTNESS] > 0 && !player_in_water())
mv -= (player_is_levitating() ? 4 : 2);
- /* Mutations: -2, -3, -4 */
- if (you.mutation[MUT_FAST] > 0)
+ /* Mutations: -2, -3, -4, unless innate and shapechanged */
+ if (you.mutation[MUT_FAST] > 0 &&
+ (!you.demon_pow[MUT_FAST] || !player_is_shapechanged()))
mv -= (you.mutation[MUT_FAST] + 1);
// Burden
@@ -1984,10 +1970,6 @@ unsigned char player_see_invis(bool calc_unid)
/* armour: (checks head armour only) */
si += player_equip_ego_type( EQ_HELMET, SPARM_SEE_INVISIBLE );
- /* Nagas & Spriggans have good eyesight */
- if (you.species == SP_NAGA || you.species == SP_SPRIGGAN)
- si++;
-
if (you.mutation[MUT_ACUTE_VISION] > 0)
si += you.mutation[MUT_ACUTE_VISION];