diff options
author | zelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-12-14 09:34:57 +0000 |
---|---|---|
committer | zelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-12-14 09:34:57 +0000 |
commit | 88c3cb054fd143fc5737df3701763fa13db78624 (patch) | |
tree | 0f80c31703a0b6ee078bca1c11fd29640c9f0608 /crawl-ref/source/xom.cc | |
parent | 69dcbce751059060907927d5d11fdbb1c97cc53d (diff) | |
download | crawl-ref-88c3cb054fd143fc5737df3701763fa13db78624.tar.gz crawl-ref-88c3cb054fd143fc5737df3701763fa13db78624.zip |
Some updates to the chaos brand based on discussions:
1) Remove behavior/logic which wouldn't be evident to the player.
2) Xom only gives chaos branded missiles and launchers to hostile monsters,
never as a gift to the player.
3) The frequency of a branded Xom gift being switched to the chaos brand
has decreased from 33% to 20%.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7831 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/xom.cc')
-rw-r--r-- | crawl-ref/source/xom.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/crawl-ref/source/xom.cc b/crawl-ref/source/xom.cc index b897f16c14..3202272274 100644 --- a/crawl-ref/source/xom.cc +++ b/crawl-ref/source/xom.cc @@ -252,14 +252,15 @@ static void _try_brand_switch(const int item_index) item_def &item(mitm[item_index]); - if (item.base_type != OBJ_WEAPONS && item.base_type != OBJ_MISSILES) + // Only apply to melee weapons for the player. + if (item.base_type != OBJ_WEAPONS || is_range_weapon(item)) return; if (is_unrandom_artefact(item) || is_fixed_artefact(item)) return; // Only do it some of the time. - if (one_chance_in(3)) + if (one_chance_in(5)) return; int brand; |