diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-10-24 15:08:18 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-10-24 15:08:18 +0000 |
commit | 68d7c4e8ad875de7ee0bcfc33cd86105c063318b (patch) | |
tree | 5c25ecbd52479c5fe5f4cba258ab6e8ccf0da095 | |
parent | aecbb9de6ba522bfb9a6747c2669f14771546b94 (diff) | |
download | crawl-ref-68d7c4e8ad875de7ee0bcfc33cd86105c063318b.tar.gz crawl-ref-68d7c4e8ad875de7ee0bcfc33cd86105c063318b.zip |
equine/serpentine description (instead of "deformed") for 0.3
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/branches/stone_soup-0.3@2539 c06c8d41-db1a-0410-9941-cceddc491573
-rw-r--r-- | crawl-ref/source/mutation.cc | 34 |
1 files changed, 33 insertions, 1 deletions
diff --git a/crawl-ref/source/mutation.cc b/crawl-ref/source/mutation.cc index 2152a9d7b6..4f7502049f 100644 --- a/crawl-ref/source/mutation.cc +++ b/crawl-ref/source/mutation.cc @@ -77,6 +77,18 @@ const char *naga_speed_descrip[4] = { "You cover ground quickly." // 6*14/10 = 8 }; +const char *centaur_deformed_descrip[3] = { + "Armour fits poorly on your equine body.", + "Armour fits poorly on your deformed equine body.", + "Armour fits poorly on your badly deformed equine body." +}; + +const char *naga_deformed_descrip[3] = { + "Armour fits poorly on your serpentine body.", + "Armour fits poorly on your deformed serpentine body.", + "Armour fits poorly on your badly deformed serpentine body." +}; + const char *mutation_descrip[][3] = { {"You have tough skin (AC +1).", "You have very tough skin (AC +2).", "You have extremely tough skin (AC +3)."}, @@ -946,7 +958,14 @@ formatted_string describe_mutations() break; case SP_NAGA: + if ( you.mutation[MUT_DEFORMED] > 1) + result += "<cyan>"; + result += naga_deformed_descrip[you.mutation[MUT_DEFORMED] - 1]; + if ( you.mutation[MUT_DEFORMED] > 1) + result += "</cyan><lightblue>"; + result += EOL; result += "You cannot wear boots." EOL; + // breathe poison replaces spit poison: if (!you.mutation[MUT_BREATHE_POISON]) result += "You can spit poison." EOL; @@ -974,6 +993,17 @@ formatted_string describe_mutations() have_any = true; break; + case SP_CENTAUR: + if ( you.mutation[MUT_DEFORMED] > 1) + result += "<cyan>"; + result += centaur_deformed_descrip[you.mutation[MUT_DEFORMED] - 1]; + if ( you.mutation[MUT_DEFORMED] > 1) + result += "</cyan><lightblue>"; + result += EOL; + have_any = true; + break; + + case SP_GHOUL: result += "Your body is rotting away." EOL; result += troll_claw_descrip[you.mutation[MUT_CLAWS]]; @@ -1165,10 +1195,12 @@ formatted_string describe_mutations() // this is already handled above: if (you.species == SP_NAGA && - (i == MUT_BREATHE_POISON || i == MUT_FAST)) + (i == MUT_BREATHE_POISON || i == MUT_FAST || i == MUT_DEFORMED)) continue; if (you.species == SP_TROLL && i == MUT_CLAWS) continue; + if (you.species == SP_CENTAUR && i == MUT_DEFORMED) + continue; const char* colourname = ""; if ( you.species == SP_DEMONSPAWN ) |