diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-09-17 20:56:13 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-09-17 20:56:13 +0000 |
commit | 04a7ba1ee47556dcdf4d7ce56ebb7596f66cebfb (patch) | |
tree | 03d6ad1322f538de67aa90f73fe595e6e6399284 /crawl-ref/source | |
parent | 2c81cf635de0477233ed2fa4f6b96f6e4350dce0 (diff) | |
download | crawl-ref-04a7ba1ee47556dcdf4d7ce56ebb7596f66cebfb.tar.gz crawl-ref-04a7ba1ee47556dcdf4d7ce56ebb7596f66cebfb.zip |
Simplify.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10699 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source')
-rw-r--r-- | crawl-ref/source/ghost.cc | 4 | ||||
-rw-r--r-- | crawl-ref/source/mon-util.cc | 6 |
2 files changed, 6 insertions, 4 deletions
diff --git a/crawl-ref/source/ghost.cc b/crawl-ref/source/ghost.cc index a92e1fa1c2..52fd438f26 100644 --- a/crawl-ref/source/ghost.cc +++ b/crawl-ref/source/ghost.cc @@ -387,6 +387,8 @@ void ghost_demon::init_player_ghost() best_skill_level = you.skills[best_skill]; xl = you.experience_level; + fly = mons_class_flies(MONS_PLAYER_GHOST); + add_spells(); } @@ -572,7 +574,7 @@ void ghost_demon::find_extra_ghosts( std::vector<ghost_demon> &gs, int n ) { // Bingo! announce_ghost(*menv[i].ghost); - gs.push_back( *menv[i].ghost ); + gs.push_back(*menv[i].ghost); --n; } } diff --git a/crawl-ref/source/mon-util.cc b/crawl-ref/source/mon-util.cc index 5cbe5008c8..80fa813597 100644 --- a/crawl-ref/source/mon-util.cc +++ b/crawl-ref/source/mon-util.cc @@ -1553,7 +1553,7 @@ flight_type mons_flies(const monsters *mon, bool randarts) if (mons_enslaved_twisted_soul(mon)) return (FL_LEVITATE); - if (mon->type == MONS_PANDEMONIUM_DEMON && mon->ghost->fly) + if (mon->type == MONS_PLAYER_GHOST || mon->type == MONS_PANDEMONIUM_DEMON) return (mon->ghost->fly); const int montype = mons_is_zombified(mon) ? mons_zombie_base(mon) @@ -3907,8 +3907,8 @@ int monsters::damage_brand(int which_attack) { if (type == MONS_PLAYER_GHOST || type == MONS_PANDEMONIUM_DEMON) return (ghost->brand); - else - return (SPWPN_NORMAL); + + return (SPWPN_NORMAL); } return (!is_range_weapon(*mweap) ? get_weapon_brand(*mweap) : SPWPN_NORMAL); |