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>2009-02-22 15:11:32 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-02-22 15:11:32 +0000
commitaf45612708d4fddee3ec3a5d31053624d7658c1a (patch)
tree2b4b27bd20d7e2ce382cc1175e8d76666cfe1906 /crawl-ref/source/mutation.cc
parentf00872b7a53d4b7d0aa8eb8b769f88b9abe5f830 (diff)
downloadcrawl-ref-af45612708d4fddee3ec3a5d31053624d7658c1a.tar.gz
crawl-ref-af45612708d4fddee3ec3a5d31053624d7658c1a.zip
* Fix Sif Muna occasionally gifting manuals.
* Change innate gourmand eating behaviour to MUT_GOURMAND (innate only). * Only bother prompting to eat chunks if the player has the gourmand mutation or the carnivorous mutation at level 3, or is wearing an amulet of the gourmand or an unidentified amulet. * Remove gourmand behaviour from Ogres, i.e. only Trolls get the mutation. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9149 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/mutation.cc')
-rw-r--r--crawl-ref/source/mutation.cc35
1 files changed, 18 insertions, 17 deletions
diff --git a/crawl-ref/source/mutation.cc b/crawl-ref/source/mutation.cc
index edc8dcded6..6aa07adc27 100644
--- a/crawl-ref/source/mutation.cc
+++ b/crawl-ref/source/mutation.cc
@@ -276,7 +276,7 @@ const char *mutation_descrip[][3] = {
"Your tail ends in a sharp poisonous barb.",
"Your tail ends in a wicked poisonous barb."}, //jmf: nagas & dracos
- {"Your wings are large and strong.", "", ""}, //jmf: dracos only
+ {"Your wings are large and strong.", "", ""}, //jmf: dracos only
//jmf: these next two are for evil gods to mark their followers; good gods
// will never accept a 'marked' worshipper
@@ -292,11 +292,13 @@ const char *mutation_descrip[][3] = {
{"You can tolerate rotten meat.", "You can eat rotten meat.",
"You thrive on rotten meat."},
+ {"You like to eat raw meat.", "", ""},
+
+// 70
{"You are covered in fur.",
"You are covered in thick fur.",
"Your thick and shaggy fur keeps you warm."},
-// 70
{"You have an increased reservoir of magic (+10 percent mp).",
"You have a strongly increased reservoir of magic (+20 percent mp).",
"You have an extremely increased reservoir of magic (+30 percent mp)."},
@@ -554,14 +556,15 @@ const char *gain_mutation[][3] = {
{"Your chest itches.", "Your chest and abdomen itch.",
"Your chest, abdomen and neck itch."},
- // saprovorous: can never be gained or lost, only started with
+ // saprovorous/gourmand: can never be gained or lost, only started with
+ {"", "", ""},
{"", "", ""},
+// 70
{"Fur sprouts all over your body.",
"Your fur grows into a thick mane.",
"Your thick fur grows shaggy and warm."},
-// 70
{"You feel more energetic.", "You feel more energetic.",
"You feel more energetic."},
@@ -785,14 +788,15 @@ const char *lose_mutation[][3] = {
{"", "", ""},
{"", "", ""},
- // saprovorous: can never be gained or lost, only started with
+ // saprovorous/gourmand: can never be gained or lost, only started with
+ {"", "", ""},
{"", "", ""},
+// 70
{"You shed all your fur.",
"Your thick fur recedes somewhat.",
"Your shaggy fur recedes somewhat."},
-// 70
{"You feel less energetic.", "You feel less energetic.",
"You feel less energetic."},
@@ -946,22 +950,23 @@ static mutation_def mutation_defs[] = {
{ MUT_BREATHE_POISON, 0, 1, false, false },
// Naga and Draconian only
{ MUT_STINGER, 0, 3, false, true },
+
+// 65
// Draconian only
{ MUT_BIG_WINGS, 0, 1, false, true },
-// 65
// used by evil gods to mark followers (currently UNUSED)
{ MUT_BLUE_MARKS, 0, 3, false, true },
{ MUT_GREEN_MARKS, 0, 3, false, true },
- // species-dependent innate mutation
+ // species-dependent innate mutations
{ MUT_SAPROVOROUS, 0, 3, false, false },
-
- { MUT_SHAGGY_FUR, 2, 3, false, true },
+ { MUT_GOURMAND, 0, 1, false, false },
// 70
+ { MUT_SHAGGY_FUR, 2, 3, false, true },
{ MUT_HIGH_MAGIC, 1, 3, false, false },
{ MUT_LOW_MAGIC, 9, 3, true, false },
- { RANDOM_MUTATION, 0, 3, false, false },
+
{ RANDOM_MUTATION, 0, 3, false, false },
{ RANDOM_MUTATION, 0, 3, false, false },
@@ -1349,10 +1354,6 @@ formatted_string describe_mutations()
result += colourname;
result += ">";
result += EOL;
-
- // Gourmand is *not* identical to being saprovorous, therefore...
- if (i == MUT_SAPROVOROUS && you.omnivorous())
- result += "<lightblue>You like to eat raw meat.</lightblue>" EOL;
}
}
@@ -1944,8 +1945,8 @@ bool mutate(mutation_type which_mutation, bool failMsg,
return (false);
}
- // Saprovorous can't be randomly acquired.
- if (mutat == MUT_SAPROVOROUS && !force_mutation)
+ // Saprovorous/gourmand can't be randomly acquired.
+ if (!force_mutation && (mutat == MUT_SAPROVOROUS || mutat == MUT_GOURMAND))
return (false);
// Mutation resistance can't be acquired from god gifts.