git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8102 c06c8d41-db1a-0410-9941-cceddc491573
XJZL4V5XSLQHMETU66KRZNZNVWORAYXTQZ6O72ZGY2ZRX4WOQWCQC
GN3X2AI373HZRX53EQEWSILYEAMKBJBN4NKW5CT7PHYKPEWOPX4AC
IBITKTCFECTUF6E6WMQVWXQT5Z52O5B4IZBWOLP5DWXGUHGC62AQC
2UO6ZOW7UCP5XJ2TJ26PJNQABILK2BZ4J3BAKLOKMZPJDQHW24MAC
K2CS6TCX2NDVL2ASEHGP4J4K4IJ6FP3ANNKTSIWVG43HPYSBX6ZQC
FVEPL7AUMO6QPLVPGQVZTPSI5ITBIW6Q7CYUWQYGVNUHKTK5FQHAC
} // Trapdoor spiders only hide themsleves under the floor when they // can't see their prey. if (type == MONS_TRAPDOOR_SPIDER) { const actor* _foe = get_foe(); return (_foe == NULL || !can_see(_foe));
}
// Trapdoor spiders only hide themsleves under the floor when they
// can't see their prey.
if (type == MONS_TRAPDOOR_SPIDER)
{
const actor* _foe = get_foe();
return (_foe == NULL || !can_see(_foe));
// Trapdoor spiders only unsubmerge when their foe is in sight if // the foe is right next to them. if (mon->type == MONS_TRAPDOOR_SPIDER) { const actor* foe = mon->get_foe(); if (foe != NULL && mon->can_see(foe) && !adjacent(mon->pos(), foe->pos())) { return (false); } }
// Trapdoor spiders only unsubmerge when their foe is in sight if
// the foe is right next to them.
if (mon->type == MONS_TRAPDOOR_SPIDER)
const actor* foe = mon->get_foe();
if (foe != NULL && mon->can_see(foe)
&& !adjacent(mon->pos(), foe->pos()))
return (false);