From 58eff259a0f37495f45b2d14d6d916c054c3cfb1 Mon Sep 17 00:00:00 2001 From: David Lawrence Ramsey Date: Fri, 25 Sep 2009 10:02:38 -0500 Subject: Add a vorpal type for tentacle attacks, and use it for the tentacle-slap attack type. Also, allow unarmed attacks to work on submerged monsters if they use the tentacle vorpal type. Finally, make kraken tentacles use the tentacle-slap attack type. --- crawl-ref/source/fight.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'crawl-ref/source/fight.cc') diff --git a/crawl-ref/source/fight.cc b/crawl-ref/source/fight.cc index a50a99904a..bb134d5530 100644 --- a/crawl-ref/source/fight.cc +++ b/crawl-ref/source/fight.cc @@ -149,7 +149,7 @@ int effective_stat_bonus( int wepType ) #endif } -// Returns the to-hit for your extra unarmed.attacks. +// Returns the to-hit for your extra unarmed attacks. // DOES NOT do the final roll (i.e., random2(your_to_hit)). static int calc_your_to_hit_unarmed(int uattack = UNAT_NO_ATTACK, bool vampiric = false) @@ -411,7 +411,7 @@ void melee_attack::init_attack() } if (defender && defender->submerged()) - unarmed_ok = false; + unarmed_ok = (attacker->damage_type() == DVORP_TENTACLE); miscast_level = -1; miscast_type = SPTYP_NONE; @@ -721,6 +721,7 @@ static int _modify_blood_amount(const int damage, const int dam_type) switch (dam_type) { case DVORP_CRUSHING: // flails, also unarmed + case DVORP_TENTACLE: // unarmed, tentacles factor = 2; break; case DVORP_SLASHING: // whips -- cgit v1.2.3-54-g00ecf