summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/makeitem.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2007-12-15 21:45:02 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2007-12-15 21:45:02 +0000
commit22d174adcea7bb447daf2660ff39e150999ec8ae (patch)
tree33d8017bf05d10733eab057398653d6f0e11ba57 /crawl-ref/source/makeitem.cc
parent9c38c1f6f94bc55322a66719f14e8f5b6ed78a1a (diff)
downloadcrawl-ref-22d174adcea7bb447daf2660ff39e150999ec8ae.tar.gz
crawl-ref-22d174adcea7bb447daf2660ff39e150999ec8ae.zip
Disallow racial eveningstars, as they never show up randomly. Also,
clean up random item generation a bit. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3068 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/makeitem.cc')
-rw-r--r--crawl-ref/source/makeitem.cc10
1 files changed, 2 insertions, 8 deletions
diff --git a/crawl-ref/source/makeitem.cc b/crawl-ref/source/makeitem.cc
index d4c7fe09a6..8e34c3c542 100644
--- a/crawl-ref/source/makeitem.cc
+++ b/crawl-ref/source/makeitem.cc
@@ -1082,13 +1082,6 @@ static item_status_flag_type determine_weapon_race(const item_def& item,
rc = ISFLAG_ELVEN;
break;
- case WPN_KATANA:
- case WPN_LAJATANG:
- case WPN_KNIFE:
- case WPN_SLING:
- rc = ISFLAG_NO_RACE;
- break;
-
case WPN_BOW:
if (one_chance_in(6))
rc = ISFLAG_ORCISH;
@@ -1097,7 +1090,8 @@ static item_status_flag_type determine_weapon_race(const item_def& item,
break;
case WPN_LONGBOW:
- rc = one_chance_in(3) ? ISFLAG_ELVEN : ISFLAG_NO_RACE;
+ if (one_chance_in(3))
+ rc = ISFLAG_ELVEN;
break;
case WPN_CROSSBOW: