summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/decks.cc
diff options
context:
space:
mode:
authorharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2007-12-05 01:11:57 +0000
committerharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2007-12-05 01:11:57 +0000
commit922342473b6af1fcf53bd1173b4e85627518479d (patch)
tree8ba5e902b0b9d386bf759281e02b3842b7e2578c /crawl-ref/source/decks.cc
parentcdab703a671fabd21a015d23a5dc8a3ed5e10b36 (diff)
downloadcrawl-ref-922342473b6af1fcf53bd1173b4e85627518479d.tar.gz
crawl-ref-922342473b6af1fcf53bd1173b4e85627518479d.zip
Randarts can now be autoinscribed from the 'v' screen.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2998 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/decks.cc')
-rw-r--r--crawl-ref/source/decks.cc24
1 files changed, 7 insertions, 17 deletions
diff --git a/crawl-ref/source/decks.cc b/crawl-ref/source/decks.cc
index 1f41182a3e..44bfc24e7d 100644
--- a/crawl-ref/source/decks.cc
+++ b/crawl-ref/source/decks.cc
@@ -1867,7 +1867,7 @@ static void focus_card(int power, deck_rarity_type rarity)
(*base_statp[worst_stat])--;
// Did focusing kill the player?
- kill_method_type kill_types[3] = {
+ const kill_method_type kill_types[3] = {
KILLED_BY_WEAKNESS,
KILLED_BY_CLUMSINESS,
KILLED_BY_STUPIDITY
@@ -1878,19 +1878,14 @@ static void focus_card(int power, deck_rarity_type rarity)
if (crawl_state.is_god_acting())
{
god_type which_god = crawl_state.which_god_acting();
- if (crawl_state.is_god_retribution()) {
- cause = "the wrath of ";
- cause += god_name(which_god);
- }
+ if (crawl_state.is_god_retribution())
+ cause = "the wrath of " + god_name(which_god);
else
{
if (which_god == GOD_XOM)
cause = "the capriciousness of Xom";
else
- {
- cause = "the 'helpfullness' of ";
- cause += god_name(which_god);
- }
+ cause = "the 'helpfullness' of " + god_name(which_god);
}
}
@@ -1940,19 +1935,14 @@ static void shuffle_card(int power, deck_rarity_type rarity)
if (crawl_state.is_god_acting())
{
god_type which_god = crawl_state.which_god_acting();
- if (crawl_state.is_god_retribution()) {
- cause = "the wrath of ";
- cause += god_name(which_god);
- }
+ if (crawl_state.is_god_retribution())
+ cause = "the wrath of " + god_name(which_god);
else
{
if (which_god == GOD_XOM)
cause = "the capriciousness of Xom";
else
- {
- cause = "the 'helpfulness' of ";
- cause += god_name(which_god);
- }
+ cause = "the 'helpfulness' of " + god_name(which_god);
}
}