summaryrefslogtreecommitdiff
path: root/src/emap/craftconf.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-01-24 17:48:55 +0300
committerAndrei Karas <akaras@inbox.ru>2016-01-24 17:48:55 +0300
commitce563a50ff4997f4a3f1ccd8bd1fdec5708b3bff (patch)
tree163c40267ec7ad9edf32ec6a3e06a12f6b1132b0 /src/emap/craftconf.c
parente7cd9086185804d815fb0dc72e3bfd36fdd9a33f (diff)
downloadplugin-ce563a50ff4997f4a3f1ccd8bd1fdec5708b3bff.tar.gz
plugin-ce563a50ff4997f4a3f1ccd8bd1fdec5708b3bff.tar.bz2
plugin-ce563a50ff4997f4a3f1ccd8bd1fdec5708b3bff.tar.xz
plugin-ce563a50ff4997f4a3f1ccd8bd1fdec5708b3bff.zip
Add script function for get return code from craft entry.
New script function: getcraftcode ENTRY
Diffstat (limited to 'src/emap/craftconf.c')
-rw-r--r--src/emap/craftconf.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/emap/craftconf.c b/src/emap/craftconf.c
index 7afba56..cab5168 100644
--- a/src/emap/craftconf.c
+++ b/src/emap/craftconf.c
@@ -39,6 +39,7 @@ struct craft_db_entry *craft_create_db_entry(const int id)
VECTOR_INIT(entry->required_skills);
VECTOR_INIT(entry->required_quests);
entry->selected_inventory = NULL;
+// entry->return_code = 0;
return entry;
}
@@ -284,6 +285,7 @@ static bool craft_read_db_sub(config_setting_t *craftt, int id, const char *sour
readField("Price", price, 0);
readField("Lv", level, 0);
readField("Flag", flag, -1);
+ readField("ReturnCode", return_code, 0);
if ((t = libconfig->setting_get_member(craftt, "SourceItems")) && config_setting_is_list(t))
{