From: <j-...@us...> - 2007-09-30 13:18:24
|
Revision: 2260 http://crawl-ref.svn.sourceforge.net/crawl-ref/?rev=2260&view=rev Author: j-p-e-g Date: 2007-09-30 06:18:19 -0700 (Sun, 30 Sep 2007) Log Message: ----------- Monster centaurs now sometimes (rarely) wear barding. The chances are lower even than for naga as I believe that centaurs occur more frequently than naga. As I've been completely disregarding the Snake Pit I could be entirely wrong. Modified Paths: -------------- trunk/crawl-ref/source/effects.cc trunk/crawl-ref/source/makeitem.cc Modified: trunk/crawl-ref/source/effects.cc =================================================================== --- trunk/crawl-ref/source/effects.cc 2007-09-30 13:14:25 UTC (rev 2259) +++ trunk/crawl-ref/source/effects.cc 2007-09-30 13:18:19 UTC (rev 2260) @@ -1572,7 +1572,8 @@ thing.sub_type = ARM_NAGA_BARDING; else if ( you.species == SP_CENTAUR ) thing.sub_type = ARM_CENTAUR_BARDING; - else { + else + { thing.sub_type = ARM_BOOTS; // Fix illegal ego types if (get_armour_ego_type(thing) == SPARM_COLD_RESISTANCE || Modified: trunk/crawl-ref/source/makeitem.cc =================================================================== --- trunk/crawl-ref/source/makeitem.cc 2007-09-30 13:14:25 UTC (rev 2259) +++ trunk/crawl-ref/source/makeitem.cc 2007-09-30 13:18:19 UTC (rev 2260) @@ -3884,6 +3884,22 @@ force_colour = WHITE; //mv: always white break; + // centaurs sometimes wear barding + case MONS_CENTAUR: + case MONS_CENTAUR_WARRIOR: + case MONS_YAKTAUR: + case MONS_YAKTAUR_CAPTAIN: + item_race = MAKE_ITEM_NO_RACE; + if ( one_chance_in( mon->type == MONS_CENTAUR ? 1000 : + mon->type == MONS_CENTAUR_WARRIOR ? 500 : + mon->type == MONS_YAKTAUR ? 300 + /* mon->type == MONS_YAKTAUR_CAPTAIN ? */ : 200)) + { + mitm[bp].base_type = OBJ_ARMOUR; + mitm[bp].sub_type = ARM_CENTAUR_BARDING; + } + break; + case MONS_NAGA: case MONS_NAGA_MAGE: case MONS_NAGA_WARRIOR: This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |