summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/trap_def.h
diff options
context:
space:
mode:
authorChris Campbell <chriscampbell89@gmail.com>2012-03-18 00:01:24 +0000
committerChris Campbell <chriscampbell89@gmail.com>2012-03-18 03:52:49 +0000
commitf7d281724fe80edca4ca97a5177f8aa640bec2d7 (patch)
tree4ff17a8a7af8100b2b3686621217f96d16f1e9cc /crawl-ref/source/trap_def.h
parent27dc48c1d45b67fe8a8fff43b6233d7c6bfc0f99 (diff)
downloadcrawl-ref-f7d281724fe80edca4ca97a5177f8aa640bec2d7.tar.gz
crawl-ref-f7d281724fe80edca4ca97a5177f8aa640bec2d7.zip
Allow specifying number of trap charges when placing a trap
Diffstat (limited to 'crawl-ref/source/trap_def.h')
-rw-r--r--crawl-ref/source/trap_def.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/trap_def.h b/crawl-ref/source/trap_def.h
index dddfcf72d1..30c8543e73 100644
--- a/crawl-ref/source/trap_def.h
+++ b/crawl-ref/source/trap_def.h
@@ -16,7 +16,7 @@ struct trap_def
void destroy(bool known = true);
void hide();
void reveal();
- void prepare_ammo();
+ void prepare_ammo(int charges = 0);
bool type_has_ammo() const;
bool active() const;
bool defined() const { return active(); }