diff options
author | Jude Brown <bookofjude@users.sourceforge.net> | 2009-11-08 14:27:41 +1000 |
---|---|---|
committer | Jude Brown <bookofjude@users.sourceforge.net> | 2009-11-08 14:30:55 +1000 |
commit | 5f88766c2ade9a2061cc477ef7d2cef4fb4af547 (patch) | |
tree | 31d61fc4461a696b8b9eb0b03699dc02ef78fa03 /crawl-ref/source/makeitem.cc | |
parent | 4915a3d61f5c92669121713d4744fb60036dac2f (diff) | |
download | crawl-ref-5f88766c2ade9a2061cc477ef7d2cef4fb4af547.tar.gz crawl-ref-5f88766c2ade9a2061cc477ef7d2cef4fb4af547.zip |
New unique: Pikel, the big kobold slaver.
Appears from D:4 through D:9, and comes with a band of human slaves.
They will turn neutral (and be pacified, granting 1/2 EXP) if you
destroy Pikel before destroying them. Pikel generates with a whip
(either flaming or pain), and a black robe.
The "pikel_band_neutralise()" function is quite hacky and assumes that
all MONS_HUMANS with MF_BAND_MEMBER are part of Pikel's band. This
should be changed as soon as there is a better way of tracking who is in
what band.
Diffstat (limited to 'crawl-ref/source/makeitem.cc')
-rw-r--r-- | crawl-ref/source/makeitem.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/crawl-ref/source/makeitem.cc b/crawl-ref/source/makeitem.cc index 37fd3086e6..cd1a53c301 100644 --- a/crawl-ref/source/makeitem.cc +++ b/crawl-ref/source/makeitem.cc @@ -3518,6 +3518,15 @@ static item_make_species_type _give_weapon(monsters *mon, int level, } break; + case MONS_PIKEL: + force_item = true; // guaranteed flaming or pain + item.base_type = OBJ_WEAPONS; + item.sub_type = WPN_WHIP; + set_item_ego_type(item, OBJ_WEAPONS, coinflip() ? SPWPN_PAIN : SPWPN_FLAMING); + item.plus += -2 + random2(4); + item.plus2 += -1 + random2(2); + break; + case MONS_GRUM: force_item = true; // guaranteed reaching item_race = MAKE_ITEM_NO_RACE; @@ -4652,6 +4661,7 @@ void give_armour(monsters *mon, int level) case MONS_FRANCIS: case MONS_NECROMANCER: case MONS_VAMPIRE_MAGE: + case MONS_PIKEL: item.base_type = OBJ_ARMOUR; item.sub_type = ARM_ROBE; force_colour = DARKGREY; |