git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4815 c06c8d41-db1a-0410-9941-cceddc491573
RQFQSU37Y3ZBFR634JWYHE77LIOOINGBRNL4KUHPPRA3ZR6W5QIAC
MDAJYB6STTZPNHRQ2X66MMMSONMKXTESLHJSFPGN7H3D3TOVBAVAC
OWERGKLVPNPGIIS23FZ7ZDOBWUIXCKYAFG3URXU75JAUDX3N5ENAC
Q7GGSLY6IUX2YPBQNRR7JL5HY7VEWLBQN3KCZGMS2WAA2LNXRI6QC
5T3JX3GJKUFMDZX6UYMV4FR237TNPQZMP43BS4MR6HTUDLMNJ3AQC
CSC3SNU2QMWV5MJL6L2DJIQ5W7V3XXMZM6VULPSENTOT7R4DFQKAC
K2CS6TCX2NDVL2ASEHGP4J4K4IJ6FP3ANNKTSIWVG43HPYSBX6ZQC
KX6HOBTF5OBZLH2VNEFHH6YAX66FSE6JGBY5I2WIAW5IEJUGNL6AC
CGYTZT5QWIEGYKUOLOK7MFXSLJKLYRZONER5ZCDZO5XYWSLG475QC
ZNUMGZOGREVG6RNSM4RGHG2Y6NYL7O2U642V6F3HJAXMTC5JXJHAC
MJWFTUS66PTCNEYXEJA3CUJFXNWXIKDD6H3V24PW7HK64NSVOFSAC
VM7ZJXYXF3XTGYLWW5RXTEFGG46FOOWWEATC6S565BGHBGM3CXUAC
RPOZZWKG5GLPHVZZ7ZKMKS64ZMV2LDCQSARBJFJ6FZOTOKCQO7FAC
EADWOF6DJ7WTY3ZAFRVJ2VHFWNLDGX6W3JXESBTXJ6K4PM2AJVDQC
if (!holy_word(pow, HOLY_WORD_SCROLL, !item_type_known(scroll)))
{
canned_msg(MSG_NOTHING_HAPPENS);
id_the_scroll = false;
}
if (!holy_word(pow, HOLY_WORD_SCROLL, you.x_pos, you.y_pos,
!item_type_known(scroll)))
{
canned_msg(MSG_NOTHING_HAPPENS);
id_the_scroll = false;
}
// good gods like this, regardless of whether it damages anything
if (is_good_god(you.religion))
{
you.duration[DUR_PIETY_POOL] += 10;
if (you.duration[DUR_PIETY_POOL] > 500)
you.duration[DUR_PIETY_POOL] = 500;
}
// Good gods like this, regardless of whether it damages anything.
if (is_good_god(you.religion))
{
you.duration[DUR_PIETY_POOL] += 10;
if (you.duration[DUR_PIETY_POOL] > 500)
you.duration[DUR_PIETY_POOL] = 500;
if (mons_res_negative_energy( monster ) == 3)
return 0;
int hploss = monster->hit_points / 2 - 1;
if (hploss < 0)
hploss = 0;
behaviour_event(monster, ME_ANNOY, MHITYOU);
hurt_monster(monster, hploss);
monster->hit_points = monster->hit_points / 2 + 1;
simple_monster_message(monster, " convulses!");
if (hploss)
{
retval = 1;
if (monster->hit_points > 0)
simple_monster_message(monster, " convulses!");
else
monster_die(monster, KILL_YOU, 0);
}