diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-01-23 18:13:42 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-01-23 18:13:42 +0300 |
commit | 80956ecdab280f24708981f71bac50ec23587311 (patch) | |
tree | e11766d931bb8b22b9024e052ece9b01383100ff /src/emap/craft.h | |
parent | 722d18daaceebbebfd6a0faf8ad4b0497d2599d1 (diff) | |
download | plugin-80956ecdab280f24708981f71bac50ec23587311.tar.gz plugin-80956ecdab280f24708981f71bac50ec23587311.tar.bz2 plugin-80956ecdab280f24708981f71bac50ec23587311.tar.xz plugin-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.h | 42 |
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); |