Attached Files |
0001-Make-finesse-apply-to-throwing-attacks.patch [^] (1,075 bytes) 2013-04-24 19:00 [Show Content] [Hide Content]From 69dcaf591ea244bdc21a02aae66350ee0b52dd85 Mon Sep 17 00:00:00 2001
From: BlackSheep <chris.terenzi@gmail.com>
Date: Wed, 24 Apr 2013 12:53:33 -0400
Subject: [PATCH] Make finesse apply to throwing attacks
---
crawl-ref/source/throw.cc | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/crawl-ref/source/throw.cc b/crawl-ref/source/throw.cc
index 8a88334..a6e6cfd 100644
--- a/crawl-ref/source/throw.cc
+++ b/crawl-ref/source/throw.cc
@@ -1930,6 +1930,15 @@ bool throw_it(bolt &pbolt, int throw_2, bool teleport, int acc_bonus,
else
count_action(CACT_THROW, item.sub_type | (OBJ_WEAPONS << 16));
}
+
+ if (you.duration[DUR_FINESSE])
+ {
+ ASSERT(!you.duration[DUR_BERSERK]);
+ // Need to undo haste by hand.
+ if (you.duration[DUR_HASTE])
+ you.time_taken = haste_mul(you.time_taken);
+ you.time_taken = div_rand_round(you.time_taken, 2);
+ }
}
// Dexterity bonus, and possible skill increase for silly throwing.
--
1.8.1.2
|