diff options
author | Robert Vollmert <rvollmert@gmx.net> | 2009-11-10 10:28:04 +0100 |
---|---|---|
committer | Robert Vollmert <rvollmert@gmx.net> | 2009-11-10 10:31:10 +0100 |
commit | 4bd335dab6488ac58d412f8b640801350207c398 (patch) | |
tree | 187a5b3252c69e55c5ad39b7045fb7c05b9f16a0 /crawl-ref/source/losparam.h | |
parent | aa69f6aa4526b7d8ed161de9324a5df76faec366 (diff) | |
download | crawl-ref-4bd335dab6488ac58d412f8b640801350207c398.tar.gz crawl-ref-4bd335dab6488ac58d412f8b640801350207c398.zip |
Make disintegration splatter not end up behind actors.
Also not at actors' feet.
Might be even nicer to have them thrown as missiles:
You are hit by a piece of orc flesh. The giant bat is hit by
a chunk of yak flesh. The giant bat dies.
Diffstat (limited to 'crawl-ref/source/losparam.h')
-rw-r--r-- | crawl-ref/source/losparam.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/crawl-ref/source/losparam.h b/crawl-ref/source/losparam.h index ccdd548f19..0b3a1c64dd 100644 --- a/crawl-ref/source/losparam.h +++ b/crawl-ref/source/losparam.h @@ -82,6 +82,16 @@ struct opacity_monmove : opacity_func opacity_type operator()(const coord_def& p) const; }; +// Make any actor (as well as solid features) block. +// Note that the blocking actors are still "visible". +struct opacity_no_actor : opacity_func +{ + CLONE(opacity_no_actor) + + opacity_type operator()(const coord_def& p) const; +}; +static opacity_no_actor opc_no_actor; + // Subclasses of this are passed to losight() to modify the // LOS calculation. Implementations will have to translate between // relative coordinates (-8,-8)..(8,8) and real coordinates, |