blob: b9f4a73e6f40660b5df31e6c499d559a203d1f7b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
// Copyright (c) Copyright (c) Hercules Dev Team, licensed under GNU GPL.
// Copyright (c) 2014 - 2015 Evol developers
#ifndef EVOL_MAP_CRAFTCONF
#define EVOL_MAP_CRAFTCONF
#include "common/db.h"
#include "emap/const/craft.h"
#include "emap/struct/itempair.h"
VECTOR_STRUCT_DECL(craft_items_collection, struct item_pair);
struct craft_db_inventory
{
struct item_pair items[craft_inventory_size];
};
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_craftconf(void);
void do_final_craftconf(void);
#endif // EVOL_MAP_CRAFTCONF
|