summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-08-12 09:46:37 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-08-12 09:46:37 +0000
commitb6c4a30cf236f04ab1b113d35d4a496b9325d61a (patch)
treee0d486722da7197f58c2b61d49e913645b848e76
parentc0f5bc091066fdae1dea5f3091f813609e968fc1 (diff)
downloadcrawl-ref-b6c4a30cf236f04ab1b113d35d4a496b9325d61a.tar.gz
crawl-ref-b6c4a30cf236f04ab1b113d35d4a496b9325d61a.zip
In the ASCII version, colour silenced grids CYAN and grids both silenced
and within TSO's halo LIGHTCYAN. Also display a line "This square is shrouded in silence" wherever applicable. We might also need to display silence with tiles. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10521 c06c8d41-db1a-0410-9941-cceddc491573
-rw-r--r--crawl-ref/source/directn.cc7
-rw-r--r--crawl-ref/source/player.cc5
-rw-r--r--crawl-ref/source/view.cc12
3 files changed, 18 insertions, 6 deletions
diff --git a/crawl-ref/source/directn.cc b/crawl-ref/source/directn.cc
index a640200b54..242befcd6e 100644
--- a/crawl-ref/source/directn.cc
+++ b/crawl-ref/source/directn.cc
@@ -3434,7 +3434,12 @@ static void _describe_cell(const coord_def& where, bool in_range)
#endif
if (is_sanctuary(where))
- mpr("This square lies inside a sanctuary.");
+ {
+ mprf("This square lies inside a sanctuary%s.",
+ silenced(where) ? ", and is shrouded in silence" : "");
+ }
+ else if (silenced(where))
+ mpr("This square is shrouded in silence.");
if (env.cgrid(where) != EMPTY_CLOUD)
{
diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc
index 0751b3899e..b1e768b99c 100644
--- a/crawl-ref/source/player.cc
+++ b/crawl-ref/source/player.cc
@@ -3106,11 +3106,10 @@ void level_change(bool skip_attribute_increase)
new_exp);
}
- if (!skip_more)
- more();
-
if (!(new_exp % 3) && !skip_attribute_increase)
_attribute_increase();
+ else if (!skip_more)
+ more();
// No more prompts for this XL past this point.
diff --git a/crawl-ref/source/view.cc b/crawl-ref/source/view.cc
index b3acdbd642..ef6466d071 100644
--- a/crawl-ref/source/view.cc
+++ b/crawl-ref/source/view.cc
@@ -521,11 +521,19 @@ static void _get_symbol( const coord_def& where,
}
}
- if (object < NUM_REAL_FEATURES && inside_halo(where)
+ if (object < NUM_REAL_FEATURES
&& (object >= DNGN_FLOOR_MIN && object <= DNGN_FLOOR_MAX
|| object == DNGN_UNDISCOVERED_TRAP))
{
- *colour = YELLOW | colmask;
+ if (inside_halo(where))
+ {
+ if (silenced(where))
+ *colour = LIGHTCYAN | colmask;
+ else
+ *colour = YELLOW | colmask;
+ }
+ else if (silenced(where))
+ *colour = CYAN | colmask;
}
}