diff options
author | Pete Hurst <pete@streamuniverse.tv> | 2013-05-28 12:46:44 +0100 |
---|---|---|
committer | Pete Hurst <pete@streamuniverse.tv> | 2013-05-28 12:46:44 +0100 |
commit | 93abd51264427a02990b99b5bb305d5c713e995f (patch) | |
tree | 89da75fa8840c246a9a55f00e390f5de9b3511a1 /crawl-ref/source/fineff.h | |
parent | ee67b05e8469fe8e52df11a7f1e2532edfc030af (diff) | |
download | crawl-ref-93abd51264427a02990b99b5bb305d5c713e995f.tar.gz crawl-ref-93abd51264427a02990b99b5bb305d5c713e995f.zip |
Move player hog form untransformation into a fineff (Kirke)
For consistency it seems better to print the "Hogs revert"
message before the player transforms.
Diffstat (limited to 'crawl-ref/source/fineff.h')
-rw-r--r-- | crawl-ref/source/fineff.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/crawl-ref/source/fineff.h b/crawl-ref/source/fineff.h index 30169d7fa5..43e1d34720 100644 --- a/crawl-ref/source/fineff.h +++ b/crawl-ref/source/fineff.h @@ -159,13 +159,23 @@ public: } bool mergeable(const final_effect &a) const; - void fire(); + virtual void fire(); protected: daction_type action; string final_msg; }; +class kirke_death_fineff : public delayed_action_fineff +{ +public: + kirke_death_fineff(string _final_msg) + : delayed_action_fineff(DACT_KIRKE_HOGS, _final_msg) + { + } + + void fire(); +}; void fire_final_effects(); #endif |