diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-09-30 13:18:19 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-09-30 13:18:19 +0000 |
commit | 79a54a17e3fcb38f8cc00189881bcb215cba785a (patch) | |
tree | 0504f811f989755c1d94d350b3e70c95282758f5 /crawl-ref | |
parent | f912d7cf35c01d55357044298bce36a613f54186 (diff) | |
download | crawl-ref-79a54a17e3fcb38f8cc00189881bcb215cba785a.tar.gz crawl-ref-79a54a17e3fcb38f8cc00189881bcb215cba785a.zip |
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.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2260 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref')
-rw-r--r-- | crawl-ref/source/effects.cc | 3 | ||||
-rw-r--r-- | crawl-ref/source/makeitem.cc | 16 |
2 files changed, 18 insertions, 1 deletions
diff --git a/crawl-ref/source/effects.cc b/crawl-ref/source/effects.cc index c6f3be2516..8b99b05d30 100644 --- a/crawl-ref/source/effects.cc +++ b/crawl-ref/source/effects.cc @@ -1572,7 +1572,8 @@ bool acquirement(object_class_type class_wanted, int agent) 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 || diff --git a/crawl-ref/source/makeitem.cc b/crawl-ref/source/makeitem.cc index 9a46a60065..aa20fdc9d4 100644 --- a/crawl-ref/source/makeitem.cc +++ b/crawl-ref/source/makeitem.cc @@ -3884,6 +3884,22 @@ void give_armour(monsters *mon, int level) 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: |