force it to unsuberge (i.e., a mermaid moving directly from water onto floor without first unsubmerign).
If a submerged monster shouts, force it to unsubmerge first.
If a visible submerged monster unsubmerges within view of the player, say that it "bursts forth from the water" if it can travel over land, and that it "surfaces" otherwise, rather than saying that it "comes into view". If an invisble sumberged monster unsubmerges within view of a player who can't see invisible, and it can move over land, say "something invisble bursts forth from the water".
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2466 c06c8d41-db1a-0410-9941-cceddc491573
QNIQ2NBBIERVCA2YTD3O3P6QPJ5M6VDVGGX7V2BWXTW5553T4PVAC
interrupt_activity( AI_SEE_MONSTER, aid );
}
else if (!quiet)
else if (monster_habitable_grid(this, DNGN_FLOOR))
aid.context = "bursts forth";
else
aid.context = "surfaces";
interrupt_activity( AI_SEE_MONSTER, aid );
}
else if (!quiet)
{
if (type == MONS_AIR_ELEMENTAL)
// Monster was viewed this turn
flags |= MF_WAS_IN_VIEW;
}
// Monster was viewed this turn
flags |= MF_WAS_IN_VIEW;
}
else if (mons_near(this) && monster_habitable_grid(this, DNGN_FLOOR))
{
mpr("Something invisble bursts forth from the water.");
interrupt_activity( AI_FORCE_INTERRUPT );