diff options
author | zelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-05-31 09:46:45 +0000 |
---|---|---|
committer | zelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-05-31 09:46:45 +0000 |
commit | 02e7394788cbf2791604f7f9ef4e1b7c2869824f (patch) | |
tree | 3f2a7b782087757a2c469552aefda65ce1cca261 /crawl-ref/source/player.cc | |
parent | fccafaa9559184dd0b757ed8bc476f14d673ee17 (diff) | |
download | crawl-ref-02e7394788cbf2791604f7f9ef4e1b7c2869824f.tar.gz crawl-ref-02e7394788cbf2791604f7f9ef4e1b7c2869824f.zip |
Merge r9855 from trunk: Stricter sanity checking of player ghosts.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/branches/stone_soup-0.5@9857 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 |