diff options
author | Robert Vollmert <rvollmert@gmx.net> | 2009-10-31 16:05:26 +0100 |
---|---|---|
committer | Robert Vollmert <rvollmert@gmx.net> | 2009-11-01 21:45:25 +0100 |
commit | 5dcf2e450126f680b8c58f3921857c025803a34a (patch) | |
tree | 95b42a30237b20ef7be71b0f861838d9ff46969c /crawl-ref/source/beam.cc | |
parent | 28bee194005a60ff88d2418f9195a173fadd2aa2 (diff) | |
download | crawl-ref-5dcf2e450126f680b8c58f3921857c025803a34a.tar.gz crawl-ref-5dcf2e450126f680b8c58f3921857c025803a34a.zip |
Comment bolt::bounce and bolt::reflect.
Diffstat (limited to 'crawl-ref/source/beam.cc')
-rw-r--r-- | crawl-ref/source/beam.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/crawl-ref/source/beam.cc b/crawl-ref/source/beam.cc index 96f3f09649..3fa146fb4b 100644 --- a/crawl-ref/source/beam.cc +++ b/crawl-ref/source/beam.cc @@ -1620,6 +1620,9 @@ void bolt::draw(const coord_def& p) } } +// Bounce a bolt off a solid feature. +// The ray is assumed to have just been advanced into +// the feature. void bolt::bounce() { ray_def old_ray = ray; @@ -3441,6 +3444,8 @@ static void _ident_reflector(item_def *item) set_ident_flags(*item, ISFLAG_KNOW_TYPE); } +// Reflect a beam back the direction it came. This is used +// by shields of reflection. void bolt::reflect() { reflections++; |