summaryrefslogtreecommitdiff
path: root/src/emap/craft.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-01-23 18:13:42 +0300
committerAndrei Karas <akaras@inbox.ru>2016-01-23 18:13:42 +0300
commit80956ecdab280f24708981f71bac50ec23587311 (patch)
treee11766d931bb8b22b9024e052ece9b01383100ff /src/emap/craft.h
parent722d18daaceebbebfd6a0faf8ad4b0497d2599d1 (diff)
downloadevol-hercules-80956ecdab280f24708981f71bac50ec23587311.tar.gz
evol-hercules-80956ecdab280f24708981f71bac50ec23587311.tar.bz2
evol-hercules-80956ecdab280f24708981f71bac50ec23587311.tar.xz
evol-hercules-80956ecdab280f24708981f71bac50ec23587311.zip
Move craft conf related things into separate file.
Also move itempair struct into separate file.
Diffstat (limited to 'src/emap/craft.h')
-rw-r--r--src/emap/craft.h42
1 files changed, 3 insertions, 39 deletions
diff --git a/src/emap/craft.h b/src/emap/craft.h
index 47fea8f..a579c20 100644
--- a/src/emap/craft.h
+++ b/src/emap/craft.h
@@ -6,15 +6,11 @@
#include "common/db.h"
-extern struct DBMap *craftvar_db;
+#include "emap/const/craft.h"
-#define craft_inventory_size 9
+#include "emap/struct/itempair.h"
-struct item_pair
-{
- int index;
- int amount;
-};
+extern struct DBMap *craftvar_db;
struct skill_pair
{
@@ -32,38 +28,6 @@ struct craft_vardata
struct craft_slot slots[craft_inventory_size];
};
-struct craft_db_inventory
-{
- struct item_pair items[craft_inventory_size];
-};
-
-VECTOR_STRUCT_DECL(craft_items_collection, struct item_pair);
-
-struct craft_db_entry
-{
- int id;
- char name[32];
- VECTOR_DECL(struct craft_db_inventory) inventories;
- struct craft_items_collection create_items;
- struct craft_items_collection delete_items;
- struct craft_items_collection required_items;
- struct craft_items_collection required_equips;
- struct craft_items_collection required_skills;
- struct craft_items_collection required_quests;
- int priority;
- int price;
- int level;
- int flag;
-};
-
-enum craft_field_type
-{
- CRAFT_ITEM,
- CRAFT_QUEST,
- CRAFT_SKILL,
- CRAFT_BOOL
-};
-
void do_init_craft(void);
void do_final_craft(void);
bool craft_checkstr(TBL_PC *sd, const char *craftstr);