summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mon-gear.h
diff options
context:
space:
mode:
authorRobert Vollmert <rvollmert@gmx.net>2010-09-17 10:44:56 +0200
committerRobert Vollmert <rvollmert@gmx.net>2010-09-17 10:44:56 +0200
commit86ea48af2bb4792563e7a2966981f665ce16388e (patch)
tree16826ba63c055a3fa9aed302a7a9e7d0c6918251 /crawl-ref/source/mon-gear.h
parentc150a30e66063d05255b2c20391da32b85dd55d8 (diff)
downloadcrawl-ref-86ea48af2bb4792563e7a2966981f665ce16388e.tar.gz
crawl-ref-86ea48af2bb4792563e7a2966981f665ce16388e.zip
Pass weapon into monster generation code for Tukima's Dance.
This seems to be a bit cleaner, and allows fixing issue #2597 (incorrect "comes into view" message when Xom animates your weapon during a delay). The message order is still wrong, but that's a different issue.
Diffstat (limited to 'crawl-ref/source/mon-gear.h')
-rw-r--r--crawl-ref/source/mon-gear.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/crawl-ref/source/mon-gear.h b/crawl-ref/source/mon-gear.h
index def8542b39..ec1128a925 100644
--- a/crawl-ref/source/mon-gear.h
+++ b/crawl-ref/source/mon-gear.h
@@ -6,7 +6,9 @@
#ifndef MON_GEAR_H
#define MON_GEAR_H
-
-void give_item(int mid, int level_number, bool mons_summoned, bool spectral_orcs = false);
-void give_weapon(int mid, int level_number, bool mons_summoned, bool spectral_orcs = false);
+void give_specific_item(monster* mon, const item_def& tpl);
+void give_item(int mid, int level_number,
+ bool mons_summoned, bool spectral_orcs = false);
+void give_weapon(int mid, int level_number, bool mons_summoned,
+ bool spectral_orcs = false);
#endif