summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/fineff.h
diff options
context:
space:
mode:
authorDracoOmega <draco_omega@live.com>2012-12-13 23:14:08 -0330
committerAdam Borowski <kilobyte@angband.pl>2012-12-17 14:32:34 +0100
commit96476ae4122b7dd20ebb1173389e426b483e050f (patch)
tree8628432aa51452440bbed39636a7d9cd235203c9 /crawl-ref/source/fineff.h
parent031c4a2eb38a724e9210b995da8f1ecdca3dc9c2 (diff)
downloadcrawl-ref-96476ae4122b7dd20ebb1173389e426b483e050f.tar.gz
crawl-ref-96476ae4122b7dd20ebb1173389e426b483e050f.zip
Make starcursed masses merge with a neighbour when damaged.
Whenever a starcursed mass sustains non-lethal damage, they will immediately merge with a random adjacent starcursed mass. This gives players an option to help supress their proliferation, so long as they do not ignore them for long.
Diffstat (limited to 'crawl-ref/source/fineff.h')
-rw-r--r--crawl-ref/source/fineff.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/crawl-ref/source/fineff.h b/crawl-ref/source/fineff.h
index a3bd370b24..1664dac4b4 100644
--- a/crawl-ref/source/fineff.h
+++ b/crawl-ref/source/fineff.h
@@ -135,6 +135,17 @@ protected:
int damage;
};
+class starcursed_merge_fineff : public final_effect
+{
+public:
+ starcursed_merge_fineff(const actor *merger)
+ : final_effect(0, merger, coord_def())
+ {
+ }
+ bool mergeable(const final_effect &a) const;
+ void fire();
+};
+
void fire_final_effects();
#endif