diff options
author | Jude Brown <bookofjude@users.sourceforge.net> | 2009-11-10 14:22:04 +1000 |
---|---|---|
committer | Jude Brown <bookofjude@users.sourceforge.net> | 2009-11-10 14:24:07 +1000 |
commit | 43e85458c7c6205645f844153f2569cb200ee206 (patch) | |
tree | 0f4796f985ce5166b02d6202b7a01c62b9db9d9f /crawl-ref/source/mon-gear.cc | |
parent | 81177ef944594f12f3493189b70e6ea34debf4a3 (diff) | |
download | crawl-ref-43e85458c7c6205645f844153f2569cb200ee206.tar.gz crawl-ref-43e85458c7c6205645f844153f2569cb200ee206.zip |
Make Crazy Yiuf an actual unique, combining aspects of the Mad Roy FR.
Yiuf still only appears in his cottage (generated from D:2-7), still
generates with a quarterstaff of chaos and a cloak, but is now randomly
coloured at the start of the game, and has randomised speech. You leg
down broken song!
Diffstat (limited to 'crawl-ref/source/mon-gear.cc')
-rw-r--r-- | crawl-ref/source/mon-gear.cc | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/crawl-ref/source/mon-gear.cc b/crawl-ref/source/mon-gear.cc index 7fa6b55a39..7cb2860ea9 100644 --- a/crawl-ref/source/mon-gear.cc +++ b/crawl-ref/source/mon-gear.cc @@ -318,6 +318,16 @@ static item_make_species_type _give_weapon(monsters *mon, int level, item.plus2 += -1 + random2(2); break; + case MONS_CRAZY_YIUF: + force_item = true; // guaranteed chaos + item_race = MAKE_ITEM_NO_RACE; + item.base_type = OBJ_WEAPONS; + item.sub_type = WPN_QUARTERSTAFF; + set_item_ego_type(item, OBJ_WEAPONS, SPWPN_CHAOS); + item.plus += random2(5); + item.plus2 += random2(4); + break; + case MONS_ORC: case MONS_ORC_PRIEST: item_race = MAKE_ITEM_ORCISH; @@ -1388,6 +1398,12 @@ void give_armour(monsters *mon, int level) force_colour = DARKGREY; break; + case MONS_CRAZY_YIUF: + item_race = MAKE_ITEM_NO_RACE; + item.base_type = OBJ_ARMOUR; + item.sub_type = ARM_CLOAK; + break; + case MONS_DOWAN: item_race = MAKE_ITEM_ELVEN; // intentional fall-through |