diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-06-12 14:39:38 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-06-12 14:39:38 +0000 |
commit | 1bff3c05ddd42eda0d5310b4d1f2671aae52815d (patch) | |
tree | f368dee0160428d811be9f91e403a5cdec83c3c8 /crawl-ref/source/directn.cc | |
parent | a6faebe0c260af46518fa09ed6fce3992ce478a2 (diff) | |
download | crawl-ref-1bff3c05ddd42eda0d5310b4d1f2671aae52815d.tar.gz crawl-ref-1bff3c05ddd42eda0d5310b4d1f2671aae52815d.zip |
Implement the Petrify spell in a rather basic variant, and replace the
player spell "Paralyse" with it, i.e. not the wand/potion/misc. effects.
Petrify is a 4th level spell of the Enchantment/Transmigrations school
(a unique combination, I believe), all other values (incl. the level)
were shamelessly stolen from Paralysis.
Anyway, it consists of two elements (so I actually added TWO new
enchantments), Petrifying and Petrified.
A monster that is petrifying cannot move around but can perform actions
like hitting adjacent monsters or casting spells at a slowed rate (1.5
of the normal cost). Once this sub-enchantment runs out (happens faster)
the monster cannot move or act anymore, so it works like Paralysis. The
damage you do during stabbing is one third of what you'd do otherwise,
for both states of enchantment, and for both stabbing counts as
unchivalric behaviour.
It has not been implemented as a monster spell, and ghosts of characters
that had it will use Paralyse instead. Consequently, the effect on the
player (in self targetting) only handles the Petrified part.
Numbers, esp. enchantment timeout, will need tweaking. They're currently
Petrifying:
cturn = 50 / _mod_speed(10, mons->speed);
Petrified:
cturn = std::max(8, 150 / (1 + modded_speed(mons, 5)))
because I wanted the first to always run out faster than the second, but
at the same time make the ratio of Petrifying/Petrified tilt in favour
of the first for powerful monsters. The numbers are more or less made
up, and tested with different monsters in wizard mode. Still, could be
anything between too weak and overpowered, though the latter is more
likely.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5761 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/directn.cc')
-rw-r--r-- | crawl-ref/source/directn.cc | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/crawl-ref/source/directn.cc b/crawl-ref/source/directn.cc index 0c2b554d62..cd5901145f 100644 --- a/crawl-ref/source/directn.cc +++ b/crawl-ref/source/directn.cc @@ -1997,8 +1997,12 @@ static std::string _describe_mons_enchantment(const monsters &mons, { // Suppress silly-looking combinations, even if they're // internally valid. - if (paralysed && (ench.ench == ENCH_SLOW || ench.ench == ENCH_HASTE)) + if (paralysed && (ench.ench == ENCH_SLOW || ench.ench == ENCH_HASTE + || ench.ench == ENCH_PETRIFIED + || ench.ench == ENCH_PETRIFYING)) + { return ""; + } if ((ench.ench == ENCH_HASTE || ench.ench == ENCH_BATTLE_FRENZY) && mons.has_ench(ENCH_BERSERK)) @@ -2006,6 +2010,9 @@ static std::string _describe_mons_enchantment(const monsters &mons, return ""; } + if (ench.ench == ENCH_PETRIFIED && mons.has_ench(ENCH_PETRIFYING)) + return ""; + switch (ench.ench) { case ENCH_POISON: @@ -2034,6 +2041,10 @@ static std::string _describe_mons_enchantment(const monsters &mons, return "covered in liquid flames"; case ENCH_HELD: return "entangled in a net"; + case ENCH_PETRIFIED: + return "petrified"; + case ENCH_PETRIFYING: + return "slowly petrifying"; default: return ""; } |