Allow player to cancel activity if a monster is dangerously close.

Should fix #1207

When the player is performing an activity, such as construction or crafting, this will produce a warning if a hostile gets within 5 tiles of the player, allowing them to cancel. The warning will only appear once per activity. This allows players to perform tasks while monsters are spotted but far away, without the danger of being attacked.