From c866e0c71f5d4c1ee2c179f0c2de640504127696 Mon Sep 17 00:00:00 2001 From: Jude Brown Date: Thu, 22 Oct 2009 17:59:56 +1000 Subject: Updated levdes.vim for KPROP. NO_RTELE_INTO property. NO_RTELE_INTO restricts random teleport from choosing a specific grid square marked with this. This does not stop controlled teleport onto specific grid squares; controlled teleport is completely unrestricted. Updated documentation for new property. Do not apply to branch ends/Orb chamber yet, please! --- crawl-ref/source/spells3.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'crawl-ref/source/spells3.cc') diff --git a/crawl-ref/source/spells3.cc b/crawl-ref/source/spells3.cc index e9b0e6cc40..a7c00c9481 100644 --- a/crawl-ref/source/spells3.cc +++ b/crawl-ref/source/spells3.cc @@ -1576,7 +1576,8 @@ static bool _teleport_player(bool allow_control, bool new_abyss_area) || grd(newpos) != DNGN_DEEP_WATER) || monster_at(newpos) || env.cgrid(newpos) != EMPTY_CLOUD - || need_distance_check && (newpos - centre).abs() < 34*34); + || need_distance_check && (newpos - centre).abs() < 34*34 + || testbits(env.map(newpos).property, FPROP_NO_RTELE_INTO)); if ( newpos == you.pos() ) mpr("Your surroundings flicker for a moment."); -- cgit v1.2.3-54-g00ecf