summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/abl-show.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-05-22 22:01:10 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-05-22 22:01:10 +0000
commit7adf2d18d2d3ea426a4724f2672e291630e26cba (patch)
tree23491afa4bd53827854609a7c48f62f2cd8d6836 /crawl-ref/source/abl-show.cc
parentddc0e17079b9b3aece830366ff5af4319479787d (diff)
downloadcrawl-ref-7adf2d18d2d3ea426a4724f2672e291630e26cba.tar.gz
crawl-ref-7adf2d18d2d3ea426a4724f2672e291630e26cba.zip
Have cast_revitalisation() do all its own piety handling, as it's a bit
cleaner that way. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5183 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/abl-show.cc')
-rw-r--r--crawl-ref/source/abl-show.cc17
1 files changed, 9 insertions, 8 deletions
diff --git a/crawl-ref/source/abl-show.cc b/crawl-ref/source/abl-show.cc
index d2be5637ea..a375b81591 100644
--- a/crawl-ref/source/abl-show.cc
+++ b/crawl-ref/source/abl-show.cc
@@ -80,12 +80,13 @@ enum ability_flag_type
ABFLAG_NONE = 0x00000000,
ABFLAG_BREATH = 0x00000001, // ability uses DUR_BREATH_WEAPON
ABFLAG_DELAY = 0x00000002, // ability has its own delay (ie recite)
- ABFLAG_PAIN = 0x00000004, // ability must hurt player (ie torment)
- ABFLAG_EXHAUSTION = 0x00000008, // fails if you.exhausted
- ABFLAG_INSTANT = 0x00000010, // doesn't take time to use
- ABFLAG_PERMANENT_HP = 0x00000020, // costs permanent HPs
- ABFLAG_PERMANENT_MP = 0x00000040, // costs permanent MPs
- ABFLAG_CONF_OK = 0x00000080 // can use even if confused.
+ ABFLAG_PIETY = 0x00000004, // ability has its own piety (ie vitalise)
+ ABFLAG_PAIN = 0x00000008, // ability must hurt player (ie torment)
+ ABFLAG_EXHAUSTION = 0x00000010, // fails if you.exhausted
+ ABFLAG_INSTANT = 0x00000020, // doesn't take time to use
+ ABFLAG_PERMANENT_HP = 0x00000040, // costs permanent HPs
+ ABFLAG_PERMANENT_MP = 0x00000080, // costs permanent MPs
+ ABFLAG_CONF_OK = 0x00000100 // can use even if confused
};
static void _lugonu_bends_space();
@@ -233,7 +234,7 @@ static const ability_def Ability_List[] =
// INVOCATIONS:
// Zin
{ ABIL_ZIN_RECITE, "Recite", 3, 0, 120, 0, ABFLAG_DELAY },
- { ABIL_ZIN_VITALISATION, "Vitalisation", 0, 0, 100, 2, ABFLAG_CONF_OK },
+ { ABIL_ZIN_VITALISATION, "Vitalisation", 0, 0, 100, 0, ABFLAG_PIETY | ABFLAG_CONF_OK },
{ ABIL_ZIN_SANCTUARY, "Sanctuary", 7, 0, 150, 15, ABFLAG_NONE },
// The Shining One
@@ -387,7 +388,7 @@ const std::string make_cost_description( ability_type ability )
ret << "Food"; // randomized and amount hidden from player
}
- if (abil.piety_cost)
+ if (abil.piety_cost || abil.flags & ABFLAG_PIETY)
{
if (!ret.str().empty())
ret << ", ";