summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/item_use.cc
diff options
context:
space:
mode:
authorharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2007-10-11 20:16:40 +0000
committerharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2007-10-11 20:16:40 +0000
commit164d4f26dd25772c57bcd5ecc4bd8e9cd8dbcafb (patch)
tree6be3878c2587de56c1139d51579d6205a44915f6 /crawl-ref/source/item_use.cc
parent077584cc2f1af9da5fc671f59ca117389db508df (diff)
downloadcrawl-ref-164d4f26dd25772c57bcd5ecc4bd8e9cd8dbcafb.tar.gz
crawl-ref-164d4f26dd25772c57bcd5ecc4bd8e9cd8dbcafb.zip
Dwarves and orcs now get +1 to-dam when throwing racial gear. (Yup,
this includes armour.) [1804894] git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2444 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/item_use.cc')
-rw-r--r--crawl-ref/source/item_use.cc9
1 files changed, 8 insertions, 1 deletions
diff --git a/crawl-ref/source/item_use.cc b/crawl-ref/source/item_use.cc
index a1c1b5f7ba..6ae8789bb0 100644
--- a/crawl-ref/source/item_use.cc
+++ b/crawl-ref/source/item_use.cc
@@ -2013,8 +2013,15 @@ bool throw_it(bolt &pbolt, int throw_2, bool teleport, int acc_bonus,
{
// elves with elven weapons
if (get_equip_race(item) == ISFLAG_ELVEN
- && player_genus(GENPC_ELVEN))
+ && player_genus(GENPC_ELVEN))
baseHit += 1;
+ if ( (get_equip_race(item) == ISFLAG_DWARVEN
+ && player_genus(GENPC_DWARVEN)) ||
+ (get_equip_race(item) == ISFLAG_ORCISH
+ && you.species == SP_HILL_ORC))
+ {
+ baseDam += 1;
+ }
// give an appropriate 'tohit' -
// hand axes and clubs are -5