diff options
author | Ed Gonzalez <ed.gonzalez3@gmail.com> | 2013-06-25 04:46:58 -0700 |
---|---|---|
committer | Pete Hurst <pete@streamuniverse.tv> | 2013-06-26 04:42:28 +0100 |
commit | 6cfaa0000909120bef45dbf5f124dabb93cda4e4 (patch) | |
tree | e5e47008dd4af83dbbeb74e81b001694a8bb9e6f /crawl-ref/source/ghost.h | |
parent | f0fb5c9c8bf10878af3cf2fb4486aec9aaf41d6e (diff) | |
download | crawl-ref-6cfaa0000909120bef45dbf5f124dabb93cda4e4.tar.gz crawl-ref-6cfaa0000909120bef45dbf5f124dabb93cda4e4.zip |
Moved the setting of Spectral Weapon stats to ghost code, like dancing.
By initialising the weapon's stats using a ghost, more properties can be
easily set. Also vault/wiz-mode placed spectral weapons now get
appropriate stats, as if the spell had been cast at max power and max
weapon skill.
Spectral weapons still shouldn't be placed directly in normal games.
Diffstat (limited to 'crawl-ref/source/ghost.h')
-rw-r--r-- | crawl-ref/source/ghost.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crawl-ref/source/ghost.h b/crawl-ref/source/ghost.h index 37d842432f..06fadaa937 100644 --- a/crawl-ref/source/ghost.h +++ b/crawl-ref/source/ghost.h @@ -44,6 +44,7 @@ public: void init_ugly_thing(bool very_ugly, bool only_mutate = false, colour_t force_colour = BLACK); void init_dancing_weapon(const item_def& weapon, int power); + void init_spectral_weapon(const item_def& weapon, int power, int wpn_skill); void ugly_thing_to_very_ugly_thing(); public: |