summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-12-08 16:18:08 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-12-08 16:18:08 +0000
commit377d299f3a830249c33ecd9de648a0526d125fe7 (patch)
treea881fa334037e04e62a91601a399eb11b07aaba2 /crawl-ref/source
parentd90d42364935634477497d3397f8a46ad7a5ccf3 (diff)
downloadcrawl-ref-377d299f3a830249c33ecd9de648a0526d125fe7.tar.gz
crawl-ref-377d299f3a830249c33ecd9de648a0526d125fe7.zip
* Colour ASCII sharks WHITE. :)
* Adapt Artificer description to make it non-gender specific. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7785 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source')
-rw-r--r--crawl-ref/source/mon-data.h2
-rw-r--r--crawl-ref/source/monplace.cc6
-rw-r--r--crawl-ref/source/newgame.cc1
-rw-r--r--crawl-ref/source/religion.cc2
4 files changed, 5 insertions, 6 deletions
diff --git a/crawl-ref/source/mon-data.h b/crawl-ref/source/mon-data.h
index 161fbedf73..422064a433 100644
--- a/crawl-ref/source/mon-data.h
+++ b/crawl-ref/source/mon-data.h
@@ -2980,7 +2980,7 @@ static monsterentry mondata[] = {
},
{
- MONS_SHARK, ';', YELLOW, "shark",
+ MONS_SHARK, ';', WHITE, "shark",
// Goes into a battle frenzy when it smells blood.
M_COLD_BLOOD | M_BLOOD_SCENT,
MR_NO_FLAGS,
diff --git a/crawl-ref/source/monplace.cc b/crawl-ref/source/monplace.cc
index 3f88e4183d..753095e6b3 100644
--- a/crawl-ref/source/monplace.cc
+++ b/crawl-ref/source/monplace.cc
@@ -614,9 +614,6 @@ int place_monster(mgen_data mg, bool force_pos)
#endif
const band_type band = _choose_band(mg.cls, mg.power, band_size);
band_size++;
- if (band_size > 1)
- mprf("Monster type %d: Create a band (band size %d).",
- mg.cls, band_size);
for (int i = 1; i < band_size; i++)
band_monsters[i] = _band_member( band, mg.power );
@@ -1211,7 +1208,8 @@ static band_type _choose_band( int mon_type, int power, int &band_size )
#ifdef DEBUG_MON_CREATION
mpr("in choose_band()", MSGCH_DIAGNOSTICS);
#endif
- // init
+ // Band size describes the number of monsters in addition to
+ // the band leader.
band_size = 0; // Single monster, no band.
band_type band = BAND_NO_BAND;
diff --git a/crawl-ref/source/newgame.cc b/crawl-ref/source/newgame.cc
index 7c8908b5a7..44138a9ec0 100644
--- a/crawl-ref/source/newgame.cc
+++ b/crawl-ref/source/newgame.cc
@@ -2876,6 +2876,7 @@ static void _give_basic_knowledge(job_type which_job)
case JOB_ARTIFICER:
set_ident_type( OBJ_SCROLLS, SCR_RECHARGING, ID_KNOWN_TYPE );
+ break;
default:
break;
diff --git a/crawl-ref/source/religion.cc b/crawl-ref/source/religion.cc
index e4d10656fb..8336668fd6 100644
--- a/crawl-ref/source/religion.cc
+++ b/crawl-ref/source/religion.cc
@@ -5975,7 +5975,7 @@ static piety_gain_t _sacrifice_one_item_noncount( const item_def& item)
static int _gold_to_donation(int gold)
{
- return (int) ((gold * log((double)gold)) / MAX_PIETY);
+ return static_cast<int>((gold * log((double)gold)) / MAX_PIETY);
}
void offer_items()