summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mon-place.cc
diff options
context:
space:
mode:
authorJude Brown <bookofjude@users.sourceforge.net>2009-11-14 13:53:54 +1000
committerJude Brown <bookofjude@users.sourceforge.net>2009-11-14 13:53:54 +1000
commit6fb017686eff6e1c5c90632e39ff2b71bb01ef8f (patch)
treed816c7dfdebe621cab1c3a8f30cd79e3a74419fe /crawl-ref/source/mon-place.cc
parentd39ce6d858545bf41a3b0b7e77e06807bc378ddc (diff)
downloadcrawl-ref-6fb017686eff6e1c5c90632e39ff2b71bb01ef8f.tar.gz
crawl-ref-6fb017686eff6e1c5c90632e39ff2b71bb01ef8f.zip
Clean up Pikel band code, name them "slaves", then "freed slaves".
As per kilobyte's suggestion on c-r-d, Pikel's humans are named "slave" until they are released from bondage on Pikel's death, in which case they're called "freed slave". Also clean up the Pikel band neutralisation code: instead of assuming that all human monsters that are band members are Pikel's band, store a value in monsters.props that signifies them as such.
Diffstat (limited to 'crawl-ref/source/mon-place.cc')
-rw-r--r--crawl-ref/source/mon-place.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/crawl-ref/source/mon-place.cc b/crawl-ref/source/mon-place.cc
index d428474e49..4e8bde2885 100644
--- a/crawl-ref/source/mon-place.cc
+++ b/crawl-ref/source/mon-place.cc
@@ -1009,8 +1009,10 @@ int place_monster(mgen_data mg, bool force_pos)
// Don't give XP for the slaves to discourage hunting. Pikel
// has an artificially large XP modifier to compensate for
// this.
-
- menv[band_id].flags |= MF_CREATED_FRIENDLY;
+ menv[band_id].flags |= MF_CREATED_FRIENDLY | MF_NAME_DESCRIPTOR
+ | MF_NAME_REPLACE;
+ menv[band_id].mname = "slave";
+ menv[band_id].props["pikel_band"] = true;
}
}
}