From 922342473b6af1fcf53bd1173b4e85627518479d Mon Sep 17 00:00:00 2001 From: haranp Date: Wed, 5 Dec 2007 01:11:57 +0000 Subject: 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 --- crawl-ref/source/decks.cc | 24 +++++++----------------- 1 file changed, 7 insertions(+), 17 deletions(-) (limited to 'crawl-ref/source/decks.cc') 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); } } -- cgit v1.2.3-54-g00ecf