summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/decks.cc
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-08-18 18:27:01 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-08-18 18:27:01 +0000
commitf7ee6def91e9188ea8f43cabb09ec22809855eae (patch)
tree8ed57b801c96401bff42a35b282f7ec50e0b3a6d /crawl-ref/source/decks.cc
parent50924ea61cac065f9e897a9bde35bb108994a8ee (diff)
downloadcrawl-ref-f7ee6def91e9188ea8f43cabb09ec22809855eae.tar.gz
crawl-ref-f7ee6def91e9188ea8f43cabb09ec22809855eae.zip
Card-summon dancing weapons no longer leave the weapon behind.
Reworded some of the extra god help, removed unnecessary meta-information about Trog not needing Invocations and Nemelex using Evocations. Such things can be left to the player to discover without affecting their enjoyment of the game. Extra religion help is now in lightgrey (darkgrey presents display problems on 8-colour terms). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2013 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/decks.cc')
-rw-r--r--crawl-ref/source/decks.cc19
1 files changed, 12 insertions, 7 deletions
diff --git a/crawl-ref/source/decks.cc b/crawl-ref/source/decks.cc
index 036e70aa16..950b5b93a1 100644
--- a/crawl-ref/source/decks.cc
+++ b/crawl-ref/source/decks.cc
@@ -1207,13 +1207,18 @@ static void summon_dancing_weapon(int power, deck_rarity_type rarity)
{
const int power_level = get_power_level(power, rarity);
const bool friendly = (power_level > 0 || !one_chance_in(4));
- create_monster( MONS_DANCING_WEAPON, power_level + 3,
- friendly ? BEH_FRIENDLY : BEH_HOSTILE,
- you.x_pos, you.y_pos,
- friendly ? you.pet_target : MHITYOU,
- 250 );
- // Intentionally not setting hard_reset here. Maybe this should
- // depend on power_level?
+ const int mon = create_monster( MONS_DANCING_WEAPON, power_level + 3,
+ friendly ? BEH_FRIENDLY : BEH_HOSTILE,
+ you.x_pos, you.y_pos,
+ friendly ? you.pet_target : MHITYOU,
+ 250 );
+
+ // Given the abundance of Nemelex decks, not setting hard reset
+ // leaves a trail of weapons behind, most of which just get
+ // offered to Nemelex again, adding an unnecessary source of
+ // piety.
+ if (mon != -1)
+ menv[mon].flags |= MF_HARD_RESET;
}
static int card_power(deck_rarity_type rarity)