diff options
author | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-07-02 21:01:37 +0000 |
---|---|---|
committer | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-07-02 21:01:37 +0000 |
commit | d82327622fb207e5e1fbcc372379340529a9ce11 (patch) | |
tree | b1d74d50fb26b808fadcb75b10bc1279ae2b8951 /crawl-ref | |
parent | 60d4b8bfb422eec4d7ec6e88b845b057c2a9383f (diff) | |
download | crawl-ref-d82327622fb207e5e1fbcc372379340529a9ce11.tar.gz crawl-ref-d82327622fb207e5e1fbcc372379340529a9ce11.zip |
Give goblins slings instead of blowguns, give orc knights a chance of starting
with a crossbow.
Increased monster base to-hit for slings.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1722 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref')
-rw-r--r-- | crawl-ref/source/makeitem.cc | 13 | ||||
-rw-r--r-- | crawl-ref/source/mstuff2.cc | 2 |
2 files changed, 12 insertions, 3 deletions
diff --git a/crawl-ref/source/makeitem.cc b/crawl-ref/source/makeitem.cc index b978d16cc7..db3718a521 100644 --- a/crawl-ref/source/makeitem.cc +++ b/crawl-ref/source/makeitem.cc @@ -3073,10 +3073,11 @@ static item_make_species_type give_weapon(monsters *mon, int level, if (one_chance_in(3)) item_race = MAKE_ITEM_ORCISH; - if (one_chance_in(12) && level > 1) + if (!melee_only && one_chance_in(12) && level) { item.base_type = OBJ_WEAPONS; - item.sub_type = WPN_BLOWGUN; + item.sub_type = WPN_SLING; + item_race = MAKE_ITEM_NO_RACE; break; } // deliberate fall through {dlb} @@ -3262,6 +3263,14 @@ static item_make_species_type give_weapon(monsters *mon, int level, // deliberate fall-through case MONS_ORC_KNIGHT: item_race = MAKE_ITEM_ORCISH; + // Occasionally get crossbows. + if (!melee_only && one_chance_in(9)) + { + item_race = MAKE_ITEM_NO_RACE; + item.base_type = OBJ_WEAPONS; + item.sub_type = WPN_CROSSBOW; + break; + } // deliberate fall-through case MONS_NORBERT: case MONS_JOZEF: diff --git a/crawl-ref/source/mstuff2.cc b/crawl-ref/source/mstuff2.cc index ff14046cd8..b6aafd19ea 100644 --- a/crawl-ref/source/mstuff2.cc +++ b/crawl-ref/source/mstuff2.cc @@ -1130,7 +1130,7 @@ bool mons_throw(struct monsters *monster, struct bolt &pbolt, int hand_used) damMult = 20; break; case WPN_SLING: - baseHit = 1; + baseHit = 10; hitMult = 40; damMult = 20; // monsters get half the launcher damage bonus, |