summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/decks.cc
diff options
context:
space:
mode:
authorShmuale Mark <shm.mark@gmail.com>2014-06-10 13:10:43 -0400
committerShmuale Mark <shm.mark@gmail.com>2014-06-10 16:56:46 -0400
commit92cf7ad39a9b562528c658f8457966d2616c8a1d (patch)
treed3ef724dba3a5a6786f800b647441b4585a27e04 /crawl-ref/source/decks.cc
parentdd24ea8036ebe4356d444bd7787329e57651151f (diff)
downloadcrawl-ref-92cf7ad39a9b562528c658f8457966d2616c8a1d.tar.gz
crawl-ref-92cf7ad39a9b562528c658f8457966d2616c8a1d.zip
Give mercs better items.
They automatically get their items set as MAKE_GOOD_ITEM, which might not be enough to make up for the mediocre weapon types they tend to start with, but it's the simplest solution for now. They're also marked as MF_HARD_RESET so that you can't not pay and then take their stuff. Also, fix compilation: I'll fix this (so that git bisect works) while merging into master.
Diffstat (limited to 'crawl-ref/source/decks.cc')
-rw-r--r--crawl-ref/source/decks.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/crawl-ref/source/decks.cc b/crawl-ref/source/decks.cc
index 954fa667c1..01d0dd6fc5 100644
--- a/crawl-ref/source/decks.cc
+++ b/crawl-ref/source/decks.cc
@@ -2612,7 +2612,7 @@ static void _mercenary_card(int power, deck_rarity_type rarity)
mgen_data mg(merctypes[merc], BEH_HOSTILE, &you,
0, 0, you.pos(), MHITYOU, MG_FORCE_BEH, you.religion);
- mg.extra_flags |= MF_NO_REWARD;
+ mg.extra_flags |= (MF_NO_REWARD | MF_HARD_RESET);
// This is a bit of a hack to use give_monster_proper_name to feed
// the mgen_data, but it gets the job done.
@@ -2622,6 +2622,8 @@ static void _mercenary_card(int power, deck_rarity_type rarity)
mg.mname = tempmon.mname;
else
mg.mname = make_name(random_int(), false);
+ // This is used for giving the merc better stuff in mon-gear.
+ mg.props["mercenary items"] = true;
monster *mon = create_monster(mg);