summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/player.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2007-10-26 22:38:21 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2007-10-26 22:38:21 +0000
commitf3f93a328f7c076f46be200133af034e42956f6d (patch)
treed8491cc9b08a1f830c7479cca3146da2387bab49 /crawl-ref/source/player.cc
parent96d6e3e9f85e3be686bd1a0c56436affb0014365 (diff)
downloadcrawl-ref-f3f93a328f7c076f46be200133af034e42956f6d.tar.gz
crawl-ref-f3f93a328f7c076f46be200133af034e42956f6d.zip
Adding two new mutations for the heck of it:
* MUT_PAWS: "You have soft paws in place of feet." Similar to HOOVES and TALONS - incidentally, I resorted a few mutations for better grouping - but increases stealth. * MUT_EXTRA_EYES: grow up to three extra eyes that increase depth perception and thus accuracy. I'm still looking for a drawback to this mutation (other than looking weird). Also, could be related to ACUTE/BLURRY VISION somehow. Breaks saves, or at least mutations. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2606 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/player.cc')
-rw-r--r--crawl-ref/source/player.cc24
1 files changed, 22 insertions, 2 deletions
diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc
index 5fa78b1ce5..f067794e77 100644
--- a/crawl-ref/source/player.cc
+++ b/crawl-ref/source/player.cc
@@ -459,6 +459,20 @@ bool you_can_wear(int eq, bool special_armour)
return true;
}
+bool player_has_feet()
+{
+ if (you.species == SP_NAGA || player_genus(GENPC_DRACONIAN))
+ return false;
+
+ if (you.mutation[MUT_HOOVES] || you.mutation[MUT_TALONS]
+ || you.mutation[MUT_PAWS])
+ {
+ return false;
+ }
+
+ return true;
+}
+
bool you_tran_can_wear(int eq, bool check_mutation)
{
// not a transformation, but also temporary -> check first
@@ -469,7 +483,8 @@ bool you_tran_can_wear(int eq, bool check_mutation)
if (eq == EQ_BOOTS
&& (player_is_swimming() && you.species == SP_MERFOLK
- || (you.mutation[MUT_HOOVES] || you.mutation[MUT_TALONS])))
+ || you.mutation[MUT_HOOVES] || you.mutation[MUT_TALONS]
+ || you.mutation[MUT_PAWS]))
{
return false;
}
@@ -3267,7 +3282,12 @@ int check_stealth(void)
stealth /= 2; // splashy-splashy
}
else
- stealth -= you.mutation[MUT_HOOVES] * 10; // clippety-clop
+ {
+ if (you.mutation[MUT_HOOVES])
+ stealth -= 10; // clippety-clop
+ else if (you.mutation[MUT_PAWS])
+ stealth += 10;
+ }
// Radiating silence is the negative complement of shouting all the
// time... a sudden change from background noise to no noise is going