summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2014-08-15 04:09:42 -0400
committerJesse Luehrs <doy@tozt.net>2014-08-15 04:09:42 -0400
commitb2fc7a18964a7794f47bd747e249dac87f18b21d (patch)
treecf7929ba8457436772f8f3a5bfa565bc0f12b90a
parent9617728235940b24d598aad9addcebe627bdc0c1 (diff)
downloadcrawl-ref-b2fc7a18964a7794f47bd747e249dac87f18b21d.tar.gz
crawl-ref-b2fc7a18964a7794f47bd747e249dac87f18b21d.zip
identify items created from dump files
-rw-r--r--crawl-ref/source/wiz-dump.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/crawl-ref/source/wiz-dump.cc b/crawl-ref/source/wiz-dump.cc
index e578e784af..506857070d 100644
--- a/crawl-ref/source/wiz-dump.cc
+++ b/crawl-ref/source/wiz-dump.cc
@@ -18,6 +18,7 @@
#include "externs.h"
#include "items.h"
#include "itemname.h"
+#include "itemprop.h"
#include "libutil.h"
#include "makeitem.h"
#include "message.h"
@@ -96,6 +97,9 @@ static item_def _item_from_string(string s)
else
end--;
+ set_ident_type(ret, ID_KNOWN_TYPE);
+ set_ident_flags(ret, ISFLAG_IDENT_MASK);
+
string base_name = s.substr(0, end);
item_kind parsed = item_kind_by_name(base_name);
if (parsed.base_type == OBJ_UNASSIGNED)