From 9c10577f124eba5a33a0a4b318b9ab93d3aba2fd Mon Sep 17 00:00:00 2001 From: dolorous Date: Thu, 26 Mar 2009 00:33:26 +0000 Subject: Add minor cosmetic fixes. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9547 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/ghost.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'crawl-ref/source/ghost.cc') 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(); } -- cgit v1.2.3-54-g00ecf