From: <dol...@us...> - 2007-11-30 03:10:54
|
Revision: 2943 http://crawl-ref.svn.sourceforge.net/crawl-ref/?rev=2943&view=rev Author: dolorous Date: 2007-11-29 19:10:52 -0800 (Thu, 29 Nov 2007) Log Message: ----------- Mark sling bullets as not having a racial type in set_equip_race(), since they're effectively a special variety of stone, and since slings are never generated with a racial type either. Update relevant comments as well. Modified Paths: -------------- trunk/crawl-ref/source/itemprop.cc trunk/crawl-ref/source/makeitem.cc Modified: trunk/crawl-ref/source/itemprop.cc =================================================================== --- trunk/crawl-ref/source/itemprop.cc 2007-11-30 02:38:40 UTC (rev 2942) +++ trunk/crawl-ref/source/itemprop.cc 2007-11-30 03:10:52 UTC (rev 2943) @@ -650,7 +650,9 @@ break; case OBJ_MISSILES: - if (item.sub_type == MI_STONE || item.sub_type == MI_LARGE_ROCK + if (item.sub_type == MI_STONE + || item.sub_type == MI_LARGE_ROCK + || item.sub_type == MI_SLING_BULLET || item.sub_type == MI_THROWING_NET) { return; Modified: trunk/crawl-ref/source/makeitem.cc =================================================================== --- trunk/crawl-ref/source/makeitem.cc 2007-11-30 02:38:40 UTC (rev 2942) +++ trunk/crawl-ref/source/makeitem.cc 2007-11-30 03:10:52 UTC (rev 2943) @@ -1621,7 +1621,7 @@ break; case MAKE_ITEM_RANDOM_RACE: - // Elves don't make bolts + // Elves don't make bolts, sling bullets, or throwing nets if ((item.sub_type == MI_ARROW || item.sub_type == MI_DART) && one_chance_in(4)) @@ -1629,7 +1629,7 @@ rc = ISFLAG_ELVEN; } - // Orcs make everything + // Orcs don't make sling bullets or throwing nets if ((item.sub_type == MI_ARROW || item.sub_type == MI_BOLT || item.sub_type == MI_DART) @@ -1638,7 +1638,7 @@ rc = ISFLAG_ORCISH; } - // Dwarves don't make arrows + // Dwarves don't make arrows, sling bullets, or throwing nets if ((item.sub_type == MI_DART || item.sub_type == MI_BOLT) && one_chance_in(6)) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |