summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/fight.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-09-19 14:08:12 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-09-19 14:08:12 +0000
commit456697f9cfd6de996cc3e3d580c7b4200cb78d7e (patch)
treeb0a0abc3a9be53bd0d2d30f4a3a2006c51981308 /crawl-ref/source/fight.cc
parent25cccfde93b7941983fe8d9419349fb21820eb90 (diff)
downloadcrawl-ref-456697f9cfd6de996cc3e3d580c7b4200cb78d7e.tar.gz
crawl-ref-456697f9cfd6de996cc3e3d580c7b4200cb78d7e.zip
Allow the player to train only one level of fighting/unarmed combat by
attacking e.g. plants and fungi. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10728 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/fight.cc')
-rw-r--r--crawl-ref/source/fight.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/crawl-ref/source/fight.cc b/crawl-ref/source/fight.cc
index a957d8b794..2d0dc36a12 100644
--- a/crawl-ref/source/fight.cc
+++ b/crawl-ref/source/fight.cc
@@ -1853,10 +1853,10 @@ void melee_attack::player_exercise_combat_skills()
{
const bool helpless = defender->cannot_fight();
- if (!helpless || you.skills[ wpn_skill ] < 2)
- exercise( wpn_skill, 1 );
+ if (!helpless || you.skills[wpn_skill] < 1)
+ exercise(wpn_skill, 1);
- if ((!helpless || you.skills[SK_FIGHTING] < 2)
+ if ((!helpless || you.skills[SK_FIGHTING] < 1)
&& one_chance_in(3))
{
exercise(SK_FIGHTING, 1);
@@ -3976,7 +3976,7 @@ int melee_attack::player_calc_base_unarmed_damage()
if (player_in_bat_form())
{
// Bats really don't do a lot of damage.
- damage += you.skills[SK_UNARMED_COMBAT]/5;
+ damage += you.skills[SK_UNARMED_COMBAT] / 5;
}
else
damage += you.skills[SK_UNARMED_COMBAT];