diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-03-30 04:20:52 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-03-30 04:20:52 +0000 |
commit | 070223c6de3a992a1f65511c5fdecac173ffdc41 (patch) | |
tree | 79510815781f70cf56d1a35c3a25fd6062511557 /crawl-ref/source/monstuff.cc | |
parent | a551e9fddb2b2e1f6899b9dde9eb955d939a9253 (diff) | |
download | crawl-ref-070223c6de3a992a1f65511c5fdecac173ffdc41.tar.gz crawl-ref-070223c6de3a992a1f65511c5fdecac173ffdc41.zip |
Add minor cosmetic fixes.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3947 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/monstuff.cc')
-rw-r--r-- | crawl-ref/source/monstuff.cc | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/crawl-ref/source/monstuff.cc b/crawl-ref/source/monstuff.cc index 19ef45f137..03fd3a1c73 100644 --- a/crawl-ref/source/monstuff.cc +++ b/crawl-ref/source/monstuff.cc @@ -1141,7 +1141,7 @@ void monster_die(monsters *monster, killer_type killer, int i, bool silent) MSGCH_TALK ); } - // Now that Boris is dead, he's a valid target for monster + // Now that Boris is dead, he's a valid target for monster // creation again. -- bwr you.unique_creatures[ monster->type ] = false; } @@ -1320,9 +1320,9 @@ void alert_nearby_monsters(void) // Judging from the above comment, this function isn't // intended to wake up monsters, so we're only going to // alert monsters that aren't sleeping. For cases where an - // event should wake up monsters and alert them, I'd suggest + // event should wake up monsters and alert them, I'd suggest // calling noisy() before calling this function. -- bwr - if (monster->type != -1 + if (monster->type != -1 && monster->behaviour != BEH_SLEEP && mons_near(monster)) { @@ -1498,7 +1498,7 @@ bool monster_polymorph( monsters *monster, monster_type targetc, const bool old_mon_caught = mons_is_caught(monster); const char old_ench_countdown = monster->ench_countdown; - /* deal with mons_sec */ + // deal with mons_sec monster->type = targetc; monster->number = MONS_PROGRAM_BUG; @@ -1512,6 +1512,7 @@ bool monster_polymorph( monsters *monster, monster_type targetc, monster->add_ench(abj); monster->add_ench(shifter); + // Only shapeshifters retain the charm enchantment. if (old_mon_shifter) monster->add_ench(charm); @@ -1621,7 +1622,7 @@ bool monster_blink(monsters *monster) monster->check_redraw(oldplace); monster->apply_location_effects(); - + return (true); } |