summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/misc.h
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2007-08-20 12:23:38 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2007-08-20 12:23:38 +0000
commit5b618acbca35621d699dc4ba3064f2a3228a5131 (patch)
treed5a68990291723d0252b29dd9193bce34929f50b /crawl-ref/source/misc.h
parent7ca7077ed3e60d71c79c22e07fd0d2491b861ca3 (diff)
downloadcrawl-ref-5b618acbca35621d699dc4ba3064f2a3228a5131.tar.gz
crawl-ref-5b618acbca35621d699dc4ba3064f2a3228a5131.zip
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
Diffstat (limited to 'crawl-ref/source/misc.h')
-rw-r--r--crawl-ref/source/misc.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/crawl-ref/source/misc.h b/crawl-ref/source/misc.h
index 8bc73de6fe..c8ddf6ffee 100644
--- a/crawl-ref/source/misc.h
+++ b/crawl-ref/source/misc.h
@@ -23,6 +23,8 @@
* called from: ability - decks - fight - it_use2 - spells1
* *********************************************************************** */
bool go_berserk(bool intentional);
+bool trap_item(object_class_type base_type, char sub_type,
+ char beam_x, char beam_y);
// last updated 12may2000 {dlb}
@@ -37,7 +39,8 @@ void search_around( bool only_adjacent = false );
* called from: acr
* *********************************************************************** */
void disarm_trap(struct dist &disa);
-
+void remove_net_from( monsters *mon );
+void free_self_from_net( bool damage_net = true );
// last updated 12may2000 {dlb}
/* ***********************************************************************
@@ -59,7 +62,8 @@ bool fall_into_a_pool( int entry_x, int entry_y, bool allow_shift,
* called from: acr - misc
* *********************************************************************** */
void handle_traps(char trt, int i, bool trap_known);
-
+void monster_caught_in_net(monsters *mon);
+void player_caught_in_net(void);
// last updated 12may2000 {dlb}
/* ***********************************************************************