diff options
author | gammafunk <gammafunk@gmail.com> | 2014-03-05 10:01:35 -0600 |
---|---|---|
committer | gammafunk <gammafunk@gmail.com> | 2014-03-06 11:47:33 -0600 |
commit | 5a102a04c5b39f33ebbe846f20f302ec80e34798 (patch) | |
tree | 3c8a9668545486a714006529472aec8dc221d53f /crawl-ref/source/beam.h | |
parent | 4a7354f52e5f00663930a651e6502de5a8a8fb26 (diff) | |
download | crawl-ref-5a102a04c5b39f33ebbe846f20f302ec80e34798.tar.gz crawl-ref-5a102a04c5b39f33ebbe846f20f302ec80e34798.zip |
Generalize and clean up some beam initialization code.
Adds bolt_parent_init() which copies the most useful set of properties
from a "parent" beam to a "child" beam. Use this in three relevant
places in beam.cc where lots of individual property copying was done.
I've also moved the enchant power setting bits for teleport self and
sleep to a more reasonable place.
Diffstat (limited to 'crawl-ref/source/beam.h')
-rw-r--r-- | crawl-ref/source/beam.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/beam.h b/crawl-ref/source/beam.h index c440fc83c8..b3b1866ca8 100644 --- a/crawl-ref/source/beam.h +++ b/crawl-ref/source/beam.h @@ -344,5 +344,5 @@ void clear_zap_info_on_exit(); int zap_power_cap(zap_type ztype); void zappy(zap_type z_type, int power, bolt &pbolt); - +void bolt_parent_init(bolt *parent, bolt *child); #endif |