diff options
author | zelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-05-30 22:51:06 +0000 |
---|---|---|
committer | zelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-05-30 22:51:06 +0000 |
commit | ab9e5b3a883d8b42d96e76b1540c333f59400dd8 (patch) | |
tree | 091bd23e0d1d873cd2648a0684987311e7cbdf91 /crawl-ref/source/player.cc | |
parent | f4bb02dd66fdf77bfd0ec304e4ae160a27916f42 (diff) | |
download | crawl-ref-0e20e706dba2b04f2ac7975a0d318ff5a2fe0ff6.tar.gz crawl-ref-0e20e706dba2b04f2ac7975a0d318ff5a2fe0ff6.zip |
Stricter sanity checking of player ghosts.0.6.0-a0
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9855 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/player.cc')
-rw-r--r-- | crawl-ref/source/player.cc | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc index f0c4d437c7..d986ff62be 100644 --- a/crawl-ref/source/player.cc +++ b/crawl-ref/source/player.cc @@ -1876,28 +1876,6 @@ int player_prot_life(bool calc_unid, bool temp, bool items) return (pl); } -// Returns the movement speed for a player ghost. Note that this is a real -// speed, not a movement cost, so higher is better. -int player_ghost_base_movement_speed() -{ - int speed = (you.species == SP_NAGA ? 8 : 10); - - if (player_mutation_level(MUT_FAST)) - speed += player_mutation_level(MUT_FAST) + 1; - - if (player_equip_ego_type(EQ_BOOTS, SPARM_RUNNING)) - speed += 2; - - // Cap speeds. - if (speed < 6) - speed = 6; - - if (speed > 13) - speed = 13; - - return (speed); -} - // New player movement speed system... allows for a bit more that // "player runs fast" and "player walks slow" in that the speed is // actually calculated (allowing for centaurs to get a bonus from |