time.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3960 c06c8d41-db1a-0410-9941-cceddc491573
XWPDPZ3OIMZBDV4BA6UYRBQNAPG7AFI52HZZUKX25XOK3NEDLG4AC
XAKHV2E3U5KQ5LV77HI7XFKNCKGYXT2LPBOHZP2VOH4Y67QBH4SQC
K2CS6TCX2NDVL2ASEHGP4J4K4IJ6FP3ANNKTSIWVG43HPYSBX6ZQC
K27R6ZMYMKVNXIV7K3QU2NXRVOGQRLMR6TI6ZQQSVKXVKS76NLSQC
abj.duration = abj.duration * 3 / 2;
// Extend the time an abjurable monster has before disappearing. abj.duration += 100 + random2(300); // If the extended stay is long enough, make it permanent. if (abj.duration > 370) mon->del_ench(ENCH_ABJ, true);
// Extend the time an abjurable monster has before disappearing.
abj.duration += 100 + random2(300);
// If the extended stay is long enough, make it permanent.
if (abj.duration > 370)
mon->del_ench(ENCH_ABJ, true);
// ...extend its stay if it's a temporary summon, or // make it friendly if it's charmed. If neither is
// ...extend its stay if it's a temporary summon, or
// make it friendly if it's charmed. If neither is
{ // ...make it friendly if it's charmed, optionally // extending its stay if it's abjurable. If neither is
{
// ...make it friendly if it's charmed, optionally
// extending its stay if it's abjurable. If neither is
if (coinflip() && tso_blessing_extend_stay(mon))
bool friendliness = tso_blessing_friendliness(mon); bool more_time = false; if (!friendliness || coinflip())
bool friendliness = tso_blessing_friendliness(mon);
bool more_time = false;
if (!friendliness || coinflip())
result = "more time in this world"; break;
result = "more time in this world";
break;
if (tso_blessing_extend_stay(mon)) more_time = true;
if (tso_blessing_extend_stay(mon))
more_time = true;
else if (tso_blessing_friendliness(mon)) {
else if (tso_blessing_friendliness(mon))
if (friendliness && more_time) result = "friendliness and more time in this world"; else if (friendliness)
if (friendliness && more_time)
result = "friendliness and more time in this world";
else if (friendliness)
else if (more_time) result = "more time in this world"; if (friendliness || more_time)
else if (more_time)
if (friendliness || more_time)
}