Cantrip spell effect.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9515 c06c8d41-db1a-0410-9941-cceddc491573
LBQL2RAWT6GFWH7FQKOHYS7ZJFUQVO4UP36YK37VAEBJKM5JCDPQC TGJZXTUIAKCFZQJ54ZQEBGFBVZSJCAX6AWDRSH3TP7UJRLGUM5SAC 3WWFFCMCXBM2LM6EBO7OEQOLOSFPNNHLNUXYMGEVI2ICMFRETAXAC ZNOYTH6B7D4P436JIFOD7PZP5VYEPZV7ZAVNACQVXFJJY4YX6BNQC OC4O235ESV5UO3LREKILJWWIXYFVTYGF2RXQEB5AWPJUKLF5T3YAC K2CS6TCX2NDVL2ASEHGP4J4K4IJ6FP3ANNKTSIWVG43HPYSBX6ZQC 5JS3QSE3EIXSBVI4DATH2EIFD7QN3POAFEUM7MK4NRMPH5JOPAAQC 2PZXX7DNNOL5X3TF2ID22AGDHLHUHBPSAXQJR6EWG5YAXRJCAYWAC JBB7GZTVO3UJSPFVELSP4WPJZ5SC5LY36FJJ7WF2BJGZTVPNIV3AC NVSFIV2ZKP44XHCSCXG6OZVGL67OIFINC34J2EMKTA4KULCERUEAC SG76BPJKTQGDFNP5QFMAVR6H72FMMAYCECVGSWWSCLMAVQX7E3FQC const bool friendly = mons_friendly(monster);const bool buff_only = !friendly && is_sanctuary(you.pos());bool need_friendly_stub = false;
const bool friendly = mons_friendly(monster);const bool buff_only = !friendly && is_sanctuary(you.pos());
// Monster spell of uselessness, just prints a message.// This spell exists so that some monsters with really strong// spells (ie orc priest) can be toned down a bit. -- bwr//// XXX: Needs expansion, and perhaps different priest/mage flavours.switch (random2((buff_only || crawl_state.arena) ? 4 : 7)){case 0:simple_monster_message(monster, " glows brightly for a moment.",channel);break;case 1:simple_monster_message(monster, " looks stronger.",channel);break;case 2:simple_monster_message(monster, " becomes somewhat translucent.",channel);break;case 3:simple_monster_message(monster, "'s eyes start to glow.",channel);break;case 4:if (friendly)need_friendly_stub = true;elsempr("You feel troubled.");break;case 5:if (friendly)need_friendly_stub = true;elsempr("You feel a wave of unholy energy pass over you.");break;case 6:default:if (friendly)need_friendly_stub = true;else if (one_chance_in(20))mpr("You resist (whatever that was supposed to do).");elsempr("You resist.");break;}
// Messages about the monster influencing itself.const char* buff_msgs[] = { " glows brightly for a moment."," looks stronger."," becomes somewhat translucent.","'s eyes start to glow." };// Messages about the monster influencing you.const char* other_msgs[] = {"You feel troubled.","You feel a wave of unholy energy pass over you."};
if (need_friendly_stub){simple_monster_message(monster, " shimmers for a moment.",channel);}
if (buff_only || crawl_state.arena || x_chance_in_y(2,3))simple_monster_message(monster, RANDOM_ELEMENT(buff_msgs), channel);else if (friendly)simple_monster_message(monster, " shimmers for a moment.", channel);elsempr(RANDOM_ELEMENT(other_msgs));