diff options
author | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2006-09-04 09:07:05 +0000 |
---|---|---|
committer | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2006-09-04 09:07:05 +0000 |
commit | c641626740f63440c5c5a908d3ae2bc2133c5bfd (patch) | |
tree | 38c74b8d4b0de3987ad71b87f454dd4db187199d | |
parent | af623e95fcce1864ff8c52010aac55847ba28ba8 (diff) | |
download | crawl-ref-c641626740f63440c5c5a908d3ae2bc2133c5bfd.tar.gz crawl-ref-c641626740f63440c5c5a908d3ae2bc2133c5bfd.zip |
r84@xenon: dshaligram | 2006-09-04 00:13:38 +051800
Reworked longbow generation odds; longbows are now rarer on elves and more
common on centaur warriors.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/branches/stone_soup@31 c06c8d41-db1a-0410-9941-cceddc491573
-rw-r--r-- | crawl-ref/source/dungeon.cc | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/crawl-ref/source/dungeon.cc b/crawl-ref/source/dungeon.cc index 36bf032e42..8727ae2526 100644 --- a/crawl-ref/source/dungeon.cc +++ b/crawl-ref/source/dungeon.cc @@ -2753,13 +2753,13 @@ void give_item(int mid, int level_number) //mv: cleanup+minor changes mitm[bp].base_type = OBJ_WEAPONS; temp_rand = random2(100); - mitm[bp].sub_type = ((temp_rand > 80) ? WPN_LONG_SWORD : // 20% - (temp_rand > 60) ? WPN_SHORT_SWORD : // 20% - (temp_rand > 48) ? WPN_SCIMITAR : // 12% - (temp_rand > 36) ? WPN_MACE : // 12% - (temp_rand > 24) ? WPN_BOW : // 12% - (temp_rand > 12) ? WPN_LONGBOW // 12% - : WPN_HAND_CROSSBOW); // 12% + mitm[bp].sub_type = ((temp_rand > 79) ? WPN_LONG_SWORD : // 20% + (temp_rand > 59) ? WPN_SHORT_SWORD : // 20% + (temp_rand > 45) ? WPN_SCIMITAR : // 14% + (temp_rand > 31) ? WPN_MACE : // 14% + (temp_rand > 18) ? WPN_BOW : // 13% + (temp_rand > 5) ? WPN_HAND_CROSSBOW // 13% + : WPN_LONGBOW); // 6% break; case MONS_DEEP_ELF_ANNIHILATOR: @@ -2934,7 +2934,7 @@ void give_item(int mid, int level_number) //mv: cleanup+minor changes mitm[bp].base_type = OBJ_WEAPONS; mitm[bp].sub_type = WPN_BOW; if (menv[mid].type == MONS_CENTAUR_WARRIOR - && one_chance_in(5)) + && one_chance_in(3)) mitm[bp].sub_type = WPN_LONGBOW; break; |