diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-05-17 19:40:49 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-05-17 19:40:49 +0000 |
commit | a37bd53efcc5d4991660e1563ff47b59a08d31ce (patch) | |
tree | ec2c3c1843cd7cfe78453690974e9c542c25abed | |
parent | 4a2d68e18d05e65c4af2afa7e211146ecb308faa (diff) | |
download | crawl-ref-a37bd53efcc5d4991660e1563ff47b59a08d31ce.tar.gz crawl-ref-a37bd53efcc5d4991660e1563ff47b59a08d31ce.zip |
Add still more comment fixes.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5110 c06c8d41-db1a-0410-9941-cceddc491573
-rw-r--r-- | crawl-ref/source/mon-util.cc | 25 |
1 files changed, 11 insertions, 14 deletions
diff --git a/crawl-ref/source/mon-util.cc b/crawl-ref/source/mon-util.cc index 5f4d21e412..8471cafb92 100644 --- a/crawl-ref/source/mon-util.cc +++ b/crawl-ref/source/mon-util.cc @@ -856,7 +856,7 @@ int mons_res_elec( const monsters *mon ) { int mc = mon->type; - /* this is a variable, not a player_xx() function, so can be above 1 */ + // this is a variable, not a player_xx() function, so can be above 1 int u = 0; u += get_mons_resists(mon).elec; @@ -2453,10 +2453,8 @@ const char *mons_pronoun(monster_type mon_type, pronoun_type variant) return (""); } -/* - * Checks if the monster can use smiting/torment to attack without unimpeded - * LOS to the player. - */ +// Checks if the monster can use smiting/torment to attack without +// unimpeded LOS to the player. static bool _mons_can_smite(const monsters *monster) { if (monster->type == MONS_FIEND) @@ -2474,15 +2472,14 @@ static bool _mons_can_smite(const monsters *monster) return (false); } -/* - * Determines if a monster is smart and pushy enough to displace other monsters. - * A shover should not cause damage to the shovee by displacing it, so monsters - * that trail clouds of badness are ineligible. The shover should also benefit - * from shoving, so monsters that can smite/torment are ineligible. - * - * (Smiters would be eligible for shoving when fleeing if the AI allowed for - * smart monsters to flee.) - */ +// Determines if a monster is smart and pushy enough to displace other +// monsters. A shover should not cause damage to the shovee by +// displacing it, so monsters that trail clouds of badness are +// ineligible. The shover should also benefit from shoving, so monsters +// that can smite/torment are ineligible. +// +// (Smiters would be eligible for shoving when fleeing if the AI allowed +// for smart monsters to flee.) bool monster_shover(const monsters *m) { const monsterentry *me = get_monster_data(m->type); |