diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-01-24 17:48:55 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-01-24 17:48:55 +0300 |
commit | ce563a50ff4997f4a3f1ccd8bd1fdec5708b3bff (patch) | |
tree | 163c40267ec7ad9edf32ec6a3e06a12f6b1132b0 /src/emap/craftconf.c | |
parent | e7cd9086185804d815fb0dc72e3bfd36fdd9a33f (diff) | |
download | plugin-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.c | 2 |
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)) { |