From 22d174adcea7bb447daf2660ff39e150999ec8ae Mon Sep 17 00:00:00 2001 From: dolorous Date: Sat, 15 Dec 2007 21:45:02 +0000 Subject: 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 --- crawl-ref/source/makeitem.cc | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'crawl-ref/source/makeitem.cc') 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: -- cgit v1.2.3-54-g00ecf