summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mon-util.cc
diff options
context:
space:
mode:
authorDavid Lawrence Ramsey <dolorous@users.sourceforge.net>2009-09-23 21:50:33 -0500
committerDavid Lawrence Ramsey <dolorous@users.sourceforge.net>2009-09-23 21:50:33 -0500
commitb0ed14492f4344a3c3247fdc206fad74a2973bfe (patch)
tree6521cddd673638b367a3f5f3677c12fca9686bfc /crawl-ref/source/mon-util.cc
parentb8e97166ca3207b75e437f852679c8c4b8e75b6c (diff)
downloadcrawl-ref-b0ed14492f4344a3c3247fdc206fad74a2973bfe.tar.gz
crawl-ref-b0ed14492f4344a3c3247fdc206fad74a2973bfe.zip
Add spelling fixes.
Diffstat (limited to 'crawl-ref/source/mon-util.cc')
-rw-r--r--crawl-ref/source/mon-util.cc16
1 files changed, 8 insertions, 8 deletions
diff --git a/crawl-ref/source/mon-util.cc b/crawl-ref/source/mon-util.cc
index 28455a09f1..9d2ce0610d 100644
--- a/crawl-ref/source/mon-util.cc
+++ b/crawl-ref/source/mon-util.cc
@@ -68,7 +68,7 @@ struct mon_spellbook
mon_display monster_symbols[NUM_MONSTERS];
-static bool initialized_randmons = false;
+static bool initialised_randmons = false;
static std::vector<monster_type> monsters_by_habitat[NUM_HABITATS];
#include "mon-data.h"
@@ -124,7 +124,7 @@ dungeon_feature_type habitat2grid(habitat_type ht)
}
}
-static void _initialize_randmons()
+static void _initialise_randmons()
{
for (int i = 0; i < NUM_HABITATS; ++i)
{
@@ -139,7 +139,7 @@ static void _initialize_randmons()
monsters_by_habitat[i].push_back(static_cast<monster_type>(m));
}
}
- initialized_randmons = true;
+ initialised_randmons = true;
}
monster_type random_monster_at_grid(const coord_def& p)
@@ -149,8 +149,8 @@ monster_type random_monster_at_grid(const coord_def& p)
monster_type random_monster_at_grid(dungeon_feature_type grid)
{
- if (!initialized_randmons)
- _initialize_randmons();
+ if (!initialised_randmons)
+ _initialise_randmons();
const habitat_type ht = grid2habitat(grid);
const std::vector<monster_type> &valid_mons = monsters_by_habitat[ht];
@@ -533,7 +533,7 @@ bool mons_behaviour_perceptible(const monsters *mon)
// Returns true for monsters that obviously (to the player) feel
// "thematically at home" in a branch. Currently used for native
-// monsters recognizing traps and patrolling branch entrances.
+// monsters recognising traps and patrolling branch entrances.
bool mons_is_native_in_branch(const monsters *monster,
const branch_type branch)
{
@@ -3165,7 +3165,7 @@ bool ms_waste_of_time( const monsters *mon, spell_type monspell )
}
// We'll estimate the target's resistance to magic, by first getting
- // the actual value and then randomizing it.
+ // the actual value and then randomising it.
int est_magic_resist = (mon->foe == MHITNOT) ? 10000 : 0;
if (mon->foe != MHITNOT)
@@ -3175,7 +3175,7 @@ bool ms_waste_of_time( const monsters *mon, spell_type monspell )
else
est_magic_resist = mons_resist_magic(&menv[mon->foe]);
- // now randomize (normal intels less accurate than high):
+ // now randomise (normal intels less accurate than high):
if (intel == I_NORMAL)
est_magic_resist += random2(80) - 40;
else