Difference between revisions of "Line of sight"

From CrawlWiki
Jump to: navigation, search
(History: LOS will be square in 0.17)
(Update to 0.17)
Line 1: Line 1:
{{version016}}
+
{{version017}}
  
The default [[line of sight]] (LOS) radius in Crawl is about 8. (Actually, it is sqrt(65), so the field at (8,1) is in sight.)
+
The default [[line of sight]] (LOS) in Crawl is a 15x15 square
  
 
There are some ways to modify your line of sight:
 
There are some ways to modify your line of sight:
Line 11: Line 11:
 
The following drawing shows fields within the default field of view with their grid distance.
 
The following drawing shows fields within the default field of view with their grid distance.
 
<pre>
 
<pre>
      888
+
777777777777777
    777777777
+
766666666666667
  66666666666
+
765555555555567
  6555555555556
+
765444444444567
765444444444567
+
765433333334567
765433333334567
+
765432222234567
765432222234567
+
765432111234567
87654321112345678
+
7654321@1234567
87654321@12345678
+
765432111234567
87654321112345678
+
765432222234567
765432222234567
+
765433333334567
765433333334567
+
765444444444567
765444444444567
+
765555555555567
  6555555555556
+
766666666666667
  66666666666
+
777777777777777
    777777777
 
      888
 
</pre>
 
Cartesian distance, rounded up (one quadrant).
 
<pre>
 
@12345678
 
123456789
 
23345678
 
34455678
 
45556789
 
5666788
 
677788
 
78889
 
89
 
</pre>
 
Modified cartesian distance (field with value 'k' is within distance sqrt(k*k+1)).
 
<pre>
 
@02345678
 
012345678
 
22345678
 
33455678
 
44556788
 
5566778
 
667788
 
77888
 
88
 
 
</pre>
 
</pre>
  
 
==History==
 
==History==
In [[0.17]], line of sight will become square.
+
Prior to [[0.17]], line of sight was circular with a radius of about 8.
  
 
In [[0.7]], the [[developers]] made an undocumented change to the LOS. Ranges are circular now, so every spell and ability that reaches a set distance got about two squares lopped off the diagonals. Stealthy characters can now reach their target in 5 squares (instead of 8) at certain angles.
 
In [[0.7]], the [[developers]] made an undocumented change to the LOS. Ranges are circular now, so every spell and ability that reaches a set distance got about two squares lopped off the diagonals. Stealthy characters can now reach their target in 5 squares (instead of 8) at certain angles.
  
[[Category:Crystal Ball Articles]]
 
 
[[Category:Game mechanics]]
 
[[Category:Game mechanics]]

Revision as of 01:51, 10 November 2015

Version 0.17: This article may not be up to date for the latest stable release of Crawl.


The default line of sight (LOS) in Crawl is a 15x15 square

There are some ways to modify your line of sight:

The following drawing shows fields within the default field of view with their grid distance.

777777777777777
766666666666667
765555555555567
765444444444567
765433333334567
765432222234567
765432111234567
7654321@1234567
765432111234567
765432222234567
765433333334567
765444444444567
765555555555567
766666666666667
777777777777777

History

Prior to 0.17, line of sight was circular with a radius of about 8.

In 0.7, the developers made an undocumented change to the LOS. Ranges are circular now, so every spell and ability that reaches a set distance got about two squares lopped off the diagonals. Stealthy characters can now reach their target in 5 squares (instead of 8) at certain angles.