blob: 48acd3109ec3998fa7987135e3d3797cb70ee279 (
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
|
// Copyright (c) Copyright (c) Hercules Dev Team, licensed under GNU GPL.
// Copyright (c) 2014 - 2015 Evol developers
#ifndef EVOL_MAP_CRAFT
#define EVOL_MAP_CRAFT
#include "common/db.h"
extern struct DBMap *craftvar_db;
#define craft_inventory_size 9
struct item_pair
{
int index;
int amount;
};
struct craft_slot
{
VECTOR_DECL(struct item_pair) items;
};
struct craft_vardata
{
struct craft_slot slots[craft_inventory_size];
};
void do_init_craft(void);
void do_final_craft(void);
bool craft_checkstr(TBL_PC *sd, const char *craftstr);
int str_to_craftvar(TBL_PC *sd, const char *craftstr);
struct craft_vardata *craft_str_to_craft(const char *craftstr);
#endif // EVOL_MAP_CRAFT
|