summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/ghost.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-03-26 00:33:26 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-03-26 00:33:26 +0000
commit9c10577f124eba5a33a0a4b318b9ab93d3aba2fd (patch)
tree6ac164466e0298a634b28b0f427757220164e746 /crawl-ref/source/ghost.cc
parenta99482600e234c892e8d0c257c44ebbbef7053b8 (diff)
downloadcrawl-ref-9c10577f124eba5a33a0a4b318b9ab93d3aba2fd.tar.gz
crawl-ref-9c10577f124eba5a33a0a4b318b9ab93d3aba2fd.zip
Add minor cosmetic fixes.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9547 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/ghost.cc')
-rw-r--r--crawl-ref/source/ghost.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/crawl-ref/source/ghost.cc b/crawl-ref/source/ghost.cc
index 9f0a643372..2b8048a426 100644
--- a/crawl-ref/source/ghost.cc
+++ b/crawl-ref/source/ghost.cc
@@ -311,7 +311,8 @@ void ghost_demon::init_player_ghost()
const item_def& weapon = *you.weapon();
if (weapon.base_type == OBJ_WEAPONS || weapon.base_type == OBJ_STAVES)
{
- damage = property( weapon, PWPN_DAMAGE );
+ damage = property(weapon, PWPN_DAMAGE);
+
damage *= 25 + you.skills[weapon_skill(weapon)];
damage /= 25;
@@ -321,7 +322,7 @@ void ghost_demon::init_player_ghost()
// Ghosts can't get holy wrath, but they get to keep
// the weapon.
- if ( brand == SPWPN_HOLY_WRATH )
+ if (brand == SPWPN_HOLY_WRATH)
brand = SPWPN_NORMAL;
}
}
@@ -344,10 +345,10 @@ void ghost_demon::init_player_ghost()
damage = 50;
species = you.species;
+ job = you.char_class;
best_skill = ::best_skill(SK_FIGHTING, (NUM_SKILLS - 1), 99);
best_skill_level = you.skills[best_skill];
xl = you.experience_level;
- job = you.char_class;
add_spells();
}