summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/enum.h
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-12 14:39:38 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-12 14:39:38 +0000
commit1bff3c05ddd42eda0d5310b4d1f2671aae52815d (patch)
treef368dee0160428d811be9f91e403a5cdec83c3c8 /crawl-ref/source/enum.h
parenta6faebe0c260af46518fa09ed6fce3992ce478a2 (diff)
downloadcrawl-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/enum.h')
-rw-r--r--crawl-ref/source/enum.h26
1 files changed, 16 insertions, 10 deletions
diff --git a/crawl-ref/source/enum.h b/crawl-ref/source/enum.h
index 186bccdccc..32d5efbd46 100644
--- a/crawl-ref/source/enum.h
+++ b/crawl-ref/source/enum.h
@@ -1053,7 +1053,8 @@ enum floor_property_type
FPROP_NONE, // 0
FPROP_SANCTUARY_1,
FPROP_SANCTUARY_2,
- FPROP_BLOODY // bloody floor and sanctuary are exclusive, so that's okay
+ FPROP_BLOODY
+ // Bloody floor and sanctuary are exclusive, so that's okay.
};
enum duration_type
@@ -1116,6 +1117,8 @@ enum duration_type
DUR_SAGE,
DUR_TELEPATHY,
DUR_VITALISATION_CHAIN,
+ DUR_PETRIFIED,
+
NUM_DURATIONS
};
@@ -1147,9 +1150,11 @@ enum enchant_type
ENCH_SICK,
ENCH_SLEEPY, // Monster can't wake until this wears off.
ENCH_FATIGUE, // Post-berserk fatigue.
- ENCH_HELD, // caught in a net
- ENCH_BATTLE_FRENZY, // Monster is in a battle frenzy
+ ENCH_HELD, // Caught in a net.
+ ENCH_BATTLE_FRENZY, // 25 -- Monster is in a battle frenzy
ENCH_NEUTRAL,
+ ENCH_PETRIFYING,
+ ENCH_PETRIFIED,
// Update enchantment names in mon-util.cc when adding or removing
// enchantments.
@@ -2585,28 +2590,29 @@ enum spell_type
SPELL_EXCRUCIATING_WOUNDS,
SPELL_PORTAL_PROJECTILE,
SPELL_SUMMON_UGLY_THING, // 205
+ SPELL_PETRIFY,
// Mostly monster-only spells after this point:
SPELL_HELLFIRE_BURST,
SPELL_VAMPIRE_SUMMON,
SPELL_BRAIN_FEED,
- SPELL_FAKE_RAKSHASA_SUMMON,
- SPELL_STEAM_BALL, // 210
+ SPELL_FAKE_RAKSHASA_SUMMON, // 210
+ SPELL_STEAM_BALL,
SPELL_SUMMON_UFETUBUS,
SPELL_SUMMON_BEAST,
SPELL_ENERGY_BOLT,
- SPELL_POISON_SPLASH,
- SPELL_SUMMON_UNDEAD, // 215
+ SPELL_POISON_SPLASH, // 215
+ SPELL_SUMMON_UNDEAD,
SPELL_CANTRIP,
SPELL_QUICKSILVER_BOLT,
SPELL_METAL_SPLINTERS,
- SPELL_MIASMA,
- SPELL_SUMMON_DRAKES, // 220
+ SPELL_MIASMA, // 220
+ SPELL_SUMMON_DRAKES,
SPELL_BLINK_OTHER,
SPELL_SUMMON_MUSHROOMS,
NUM_SPELLS,
- SPELL_NO_SPELL = 250 // 255 - added 22jan2000 {dlb}
+ SPELL_NO_SPELL = 250
};
enum slot_select_mode