From 5b618acbca35621d699dc4ba3064f2a3228a5131 Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Mon, 20 Aug 2007 12:23:38 +0000 Subject: Added throwing nets. These still need work, and thus are not for 0.3. Obviously. Summary: New item type MI_THROWING_NET. The enchantment of a net describes its state, i.e. whether it's brand-new or almost falling apart (happens at -8). New attribute ATTR_CAUGHT (for monsters ENCH_CAUGHT) that means the victim cannot move and instead struggles against the net until it manages to wriggle out of it (takes a while depending on size) or it is destroyed. Monsters can still use items and spells when trapped. New trap type TRAP_NET that currently is the only source of throwing nets, though Gladiators (and some types of hunters maybe?) should start with a few, and David suggested also allowing the creation of nets for shops. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2020 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/enum.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'crawl-ref/source/enum.h') diff --git a/crawl-ref/source/enum.h b/crawl-ref/source/enum.h index 6138e0bc0e..fe0ed78ae7 100644 --- a/crawl-ref/source/enum.h +++ b/crawl-ref/source/enum.h @@ -253,6 +253,7 @@ enum attribute_type ATTR_WAS_SILENCED, //jmf: added for silenced messages ATTR_GOD_GIFT_COUNT, //jmf: added to help manage god gift giving ATTR_DELAYED_FIREBALL, // bwr: reserve fireballs + ATTR_CAUGHT, // caught in a net NUM_ATTRIBUTES }; @@ -1288,6 +1289,7 @@ enum enchant_type ENCH_SICK, ENCH_SLEEPY, // Monster can't wake until this wears off. ENCH_FATIGUE, // Post-berserk fatigue. + ENCH_CAUGHT, // caught in a net NUM_ENCHANTMENTS }; @@ -1917,6 +1919,7 @@ enum missile_type MI_LARGE_ROCK, MI_SLING_BULLET, MI_JAVELIN, + MI_THROWING_NET, NUM_MISSILES, MI_NONE // was MI_EGGPLANT... used for launch type detection }; @@ -3763,6 +3766,7 @@ enum trap_type // env.trap_type[] TRAP_AMNESIA, // 5 TRAP_BLADE, TRAP_BOLT, + TRAP_NET, TRAP_ZOT, TRAP_NEEDLE, NUM_TRAPS, // must remain last 'regular' member {dlb} -- cgit v1.2.3-54-g00ecf