summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/makeitem.h
diff options
context:
space:
mode:
authorDarshan Shaligram <dshaligram@users.sourceforge.net>2010-06-22 02:31:18 +0530
committerDarshan Shaligram <dshaligram@users.sourceforge.net>2010-06-22 18:06:51 +0530
commit3e4f4ef9e85c9d41a359ad9f0badfccd108838d3 (patch)
tree7831ea828199b4cd603e57a05121b7321fa713ed /crawl-ref/source/makeitem.h
parent154e321cbb49f50b90cbd63fafd01f58f13e4f03 (diff)
downloadcrawl-ref-3e4f4ef9e85c9d41a359ad9f0badfccd108838d3.tar.gz
crawl-ref-3e4f4ef9e85c9d41a359ad9f0badfccd108838d3.zip
Allow corpses to be placed in .des files.
Add item property CORPSE_NO_DECAY to disallow decay on corpses/skeletons/chunks. Wizmode &% now creates an item using the .des file item name parser; &o remains the old wizmode item-gen command. Corpse decay for corpses placed by maps can be controlled using dgn.delayed_decay.
Diffstat (limited to 'crawl-ref/source/makeitem.h')
-rw-r--r--crawl-ref/source/makeitem.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/crawl-ref/source/makeitem.h b/crawl-ref/source/makeitem.h
index 314ffd4c91..cf81e1fba7 100644
--- a/crawl-ref/source/makeitem.h
+++ b/crawl-ref/source/makeitem.h
@@ -19,10 +19,18 @@ enum item_make_species_type
MAKE_ITEM_RANDOM_RACE = 250,
};
+int create_item_named(std::string name, coord_def pos,
+ std::string *error);
+
int items( int allow_uniques, object_class_type force_class, int force_type,
bool dont_place, int item_level, int item_race,
unsigned mapmask = 0, int force_ego = 0, int agent = -1 );
+// Create a corpse item for the given monster with the supplied spec.
+class item_spec;
+enum monster_type;
+int item_corpse(monster_type monster, const item_spec &ispec);
+
void item_colour(item_def &item);
void init_rod_mp(item_def &item, int ncharges = -1, int item_level = -1);