diff options
author | zelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-01-06 03:04:53 +0000 |
---|---|---|
committer | zelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-01-06 03:04:53 +0000 |
commit | eb9ac5f3b834de412a88eccf346ce0bd064d2e9c (patch) | |
tree | 7c4f0697735edb550d3a96728ac9bec29963209c /crawl-ref/source/arena.cc | |
parent | dd0eb9eb3ac3cdde10a40639ac099141b2916d42 (diff) | |
download | crawl-ref-eb9ac5f3b834de412a88eccf346ce0bd064d2e9c.tar.gz crawl-ref-eb9ac5f3b834de412a88eccf346ce0bd064d2e9c.zip |
Make all the starting equipment of arena monsters fully identified, plus
randomize the colour of their potions and scrolls so as to not leak any info to
the player.
During arena mode don't display the pluses, curse status or glowing/runed/etc
status of items.
Don't learn-through-observation the identities of potions/wands/etc during
arena mode.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8257 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/arena.cc')
-rw-r--r-- | crawl-ref/source/arena.cc | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/crawl-ref/source/arena.cc b/crawl-ref/source/arena.cc index 074f99518b..cd0b2896d2 100644 --- a/crawl-ref/source/arena.cc +++ b/crawl-ref/source/arena.cc @@ -757,6 +757,23 @@ bool arena_veto_random_monster(monster_type type) void arena_placed_monster(monsters *monster, const mgen_data &mg, bool first_band_member) { + for (int i = 0; i < NUM_MONSTER_SLOTS; i++) + { + short it = monster->inv[i]; + if (it != NON_ITEM) + { + item_def &item(mitm[it]); + item.flags |= ISFLAG_IDENT_MASK; + + // Don't leak info on wands or potions. + if (item.base_type == OBJ_WANDS + || item.base_type == OBJ_POTIONS) + { + item.colour = random_colour(); + } + } + } + if (arena::name_monsters && !monster->is_named()) monster->mname = make_name(random_int(), false); |