diff options
author | Matthew Cline <zelgadis@sourceforge.net> | 2009-11-13 20:14:15 -0800 |
---|---|---|
committer | Matthew Cline <zelgadis@sourceforge.net> | 2009-11-13 20:19:46 -0800 |
commit | 32aea1bdf11b95696e7d071acc5c7a2a6f610d1c (patch) | |
tree | 77715a1bef53de63601793ed6bc375b3c62cf9e3 /crawl-ref/source/beam.h | |
parent | 6fb017686eff6e1c5c90632e39ff2b71bb01ef8f (diff) | |
download | crawl-ref-32aea1bdf11b95696e7d071acc5c7a2a6f610d1c.tar.gz crawl-ref-32aea1bdf11b95696e7d071acc5c7a2a6f610d1c.zip |
beam: new member source_name
New bolt class member source_name, which is automatically set if the
monster which created the beam kills itself. Currently only used
when Fire Storm places fire vortexes, so that they'll have a monster
name for summon blaming.
Diffstat (limited to 'crawl-ref/source/beam.h')
-rw-r--r-- | crawl-ref/source/beam.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/crawl-ref/source/beam.h b/crawl-ref/source/beam.h index 04f61ad300..20f03622cd 100644 --- a/crawl-ref/source/beam.h +++ b/crawl-ref/source/beam.h @@ -82,6 +82,10 @@ struct bolt // spl-mis.h (values are strictly greater than NON_MONSTER in that case) // for explosions generated by miscast effects. -cao int beam_source; // NON_MONSTER or monster index # + std::string source_name; // The name of the source, if it + // should be different from + // actor->name(), or the actor dies + // prematurely. std::string name; std::string short_name; std::string hit_verb; // The verb to use when this beam hits |