summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mutation.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-05-08 21:31:51 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-05-08 21:31:51 +0000
commitca54ca53590788e28c47f0ea7f6c072d65a640d9 (patch)
tree4bcfe3c14e06d51289054a5dde3e28d4fdf4abca /crawl-ref/source/mutation.cc
parent1b08247fbd1c4a95902188cd01e5510e8c2e79d3 (diff)
downloadcrawl-ref-ca54ca53590788e28c47f0ea7f6c072d65a640d9.tar.gz
crawl-ref-ca54ca53590788e28c47f0ea7f6c072d65a640d9.zip
Make vampires' spell (and ability) hunger dependent on their hunger state.
Thirsty: 75% Very thirsty: 50% Near Bloodless: 25% Bloodless: None git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4933 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/mutation.cc')
-rw-r--r--crawl-ref/source/mutation.cc20
1 files changed, 5 insertions, 15 deletions
diff --git a/crawl-ref/source/mutation.cc b/crawl-ref/source/mutation.cc
index 5d42d5f697..45ce62d218 100644
--- a/crawl-ref/source/mutation.cc
+++ b/crawl-ref/source/mutation.cc
@@ -1408,7 +1408,7 @@ static void _display_vampire_attributes()
std::string result;
- std::string column[11][7] =
+ std::string column[12][7] =
{
{" ", "<lightgreen>Alive</lightgreen> ", "<green>Full</green> ",
"Satiated ", "<yellow>Thirsty</yellow> ", "<yellow>Near...</yellow> ",
@@ -1432,7 +1432,9 @@ static void _display_vampire_attributes()
{"Stealth boost ", "none ", "none ", "none ", "minor ", "major ", "large"},
- {"Bat Form ", "no ", "no ", "yes ", "yes ", "yes ", "yes "}
+ {"Bat Form ", "no ", "no ", "yes ", "yes ", "yes ", "yes "},
+
+ {"Spell hunger ", "full ", "full ", "full ", "reduced ", "lowered ", "none "}
};
int current = 0;
@@ -1459,7 +1461,7 @@ static void _display_vampire_attributes()
current = 6;
}
- for (int y = 0; y < 11; y++) // lines (properties)
+ for (int y = 0; y < 12; y++) // lines (properties)
{
for (int x = 0; x < 7; x++) // columns (hunger states)
{
@@ -1471,18 +1473,6 @@ static void _display_vampire_attributes()
}
result += EOL;
}
-/*
- result = " <lightgreen>Alive</lightgreen> <green>Full</green> Satiated "
- "<yellow>Thirsty Near...</yellow> <lightred>Bloodless</lightred>" EOL
- "Metabolism very fast fast fast normal slow none " EOL
- "Regeneration very fast fast normal normal slow none " EOL
- "Poison resistance + + + + " EOL
- "Cold resistance + + ++ " EOL
- "Negative resistance + ++ +++ " EOL
- "Torment resistance + " EOL
- "Mutation effects full capped capped none none none " EOL
- "Stealth boost none none none minor major large" EOL;
-*/
result += EOL EOL;
result += EOL EOL;