summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mon-gear.cc
diff options
context:
space:
mode:
authorNicholas Feinberg <pleasingfung@gmail.com>2014-07-10 07:58:45 -0700
committerNicholas Feinberg <pleasingfung@gmail.com>2014-07-10 08:34:59 -0700
commit9e48456705763194bc286421c1bf0a9c61290f72 (patch)
treeccb1ac6de552c60a9fa0f4abc90066c8dc14efbc /crawl-ref/source/mon-gear.cc
parent7d7c4397ac8865f68d274a6b94a4e8526ea9943f (diff)
downloadcrawl-ref-9e48456705763194bc286421c1bf0a9c61290f72.tar.gz
crawl-ref-9e48456705763194bc286421c1bf0a9c61290f72.zip
Don't guarantee greatsling generation in Shoals
Since it's supposed to be a lajatang-rarity weapon. Objstat suggests this gives a little less than a 50% chance of seeing a greatsling in Shoals, which seems more reasonable.
Diffstat (limited to 'crawl-ref/source/mon-gear.cc')
-rw-r--r--crawl-ref/source/mon-gear.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/crawl-ref/source/mon-gear.cc b/crawl-ref/source/mon-gear.cc
index 7980d94691..c7284b562c 100644
--- a/crawl-ref/source/mon-gear.cc
+++ b/crawl-ref/source/mon-gear.cc
@@ -886,8 +886,9 @@ static void _give_weapon(monster* mon, int level, bool melee_only = false,
item.base_type = OBJ_WEAPONS;
if (!melee_only)
{
- item.sub_type = (mon->type == MONS_SATYR ? WPN_GREATSLING
- : WPN_HUNTING_SLING);
+ item.sub_type = (mon->type == MONS_FAUN ? WPN_HUNTING_SLING :
+ one_chance_in(3) ? WPN_GREATSLING:
+ WPN_LONGBOW);
}
else
{