git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@575 c06c8d41-db1a-0410-9941-cceddc491573
RB3ZDZXUZ3KVU5C4MFWTQB4J3PCQ5IQS4UVUBRS3TLSPFKBWNFDAC
if (!player_is_shapechanged())
{
// Centaurs and spriggans are only fast in their regular
// shape (ie untransformed, blade hands, lich form)
if (you.species == SP_CENTAUR)
mv = 8;
else if (you.species == SP_SPRIGGAN)
mv = 6;
}
else if (you.attribute[ATTR_TRANSFORMATION] == TRAN_SPIDER)
if (you.attribute[ATTR_TRANSFORMATION] == TRAN_SPIDER)
break;
case SP_SPRIGGAN:
you.mutation[MUT_ACUTE_VISION] = 1;
you.demon_pow[MUT_ACUTE_VISION] = 1;
you.mutation[MUT_FAST] = 3;
you.demon_pow[MUT_FAST] = 3;
break;
case SP_CENTAUR:
you.mutation[MUT_FAST] = 1;
you.demon_pow[MUT_FAST] = 1;
break;
case SP_NAGA:
you.mutation[MUT_ACUTE_VISION] = 1;
you.demon_pow[MUT_ACUTE_VISION] = 1;
you.mutation[MUT_POISON_RESISTANCE] = 1;
you.demon_pow[MUT_POISON_RESISTANCE] = 1;
break;
case SP_MUMMY:
you.mutation[MUT_POISON_RESISTANCE] = 1;
you.demon_pow[MUT_POISON_RESISTANCE] = 1;
you.mutation[MUT_COLD_RESISTANCE] = 1;
you.demon_pow[MUT_COLD_RESISTANCE] = 1;
break;
case SP_GNOME:
you.mutation[MUT_MAPPING] = 2;
you.demon_pow[MUT_MAPPING] = 2;
break;
case SP_GHOUL:
you.mutation[MUT_POISON_RESISTANCE] = 1;
you.demon_pow[MUT_POISON_RESISTANCE] = 1;
you.mutation[MUT_COLD_RESISTANCE] = 1;
you.demon_pow[MUT_COLD_RESISTANCE] = 1;
break;
default:
break;
case SP_SPRIGGAN:
result += "You can see invisible." EOL;
result += "You cover the ground extremely quickly." EOL;
have_any = true;
break;
case SP_CENTAUR:
if (!you.mutation[MUT_FAST])
result += "You cover the ground quickly." EOL;
else
result += "You cover the ground extremely quickly." EOL;
have_any = true;
break;
if (you.demon_pow[i] != 0)
// enhanced by mutation
if ( you.demon_pow[i] < you.mutation[i] )
result += "<lightred>";
else
result += "<red>";
if ( you.demon_pow[i] )
{
if ( you.species == SP_DEMONSPAWN )
{
if ( you.demon_pow[i] < you.mutation[i] )
colourname = "lightred";
else
colourname = "red";
}
else // innate ability
{
if ( you.demon_pow[i] < you.mutation[i] )
colourname = "lightred";
else
colourname = "lightblue";
}
}
if (you.demon_pow[i] != 0)
if ( you.demon_pow[i] < you.mutation[i] )
result += "</lightred>";
else
result += "</red>";
if ( you.demon_pow[i] )
{
result += "</";
result += colourname;
result += '>';
}
if ((you.level_type == LEVEL_DUNGEON
&& (you.species == SP_GNOME || you.mutation[MUT_MAPPING]))
|| (you.level_type == LEVEL_PANDEMONIUM
&& you.mutation[MUT_MAPPING] == 3))
if ((you.level_type == LEVEL_DUNGEON && you.mutation[MUT_MAPPING]) ||
(you.level_type == LEVEL_PANDEMONIUM && you.mutation[MUT_MAPPING]==3))