summaryrefslogtreecommitdiff
path: root/src/emap/craft.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-01-24 02:43:12 +0300
committerAndrei Karas <akaras@inbox.ru>2016-01-24 02:43:12 +0300
commit77cc71cde657cca6c2747a41e3c1672cd4c6092b (patch)
tree77f3ae7484c49109c9803dc6ba99011e74079236 /src/emap/craft.h
parent207e14ad4c4efe77e258efc55b09ccbf1c66845c (diff)
downloadevol-hercules-77cc71cde657cca6c2747a41e3c1672cd4c6092b.tar.gz
evol-hercules-77cc71cde657cca6c2747a41e3c1672cd4c6092b.tar.bz2
evol-hercules-77cc71cde657cca6c2747a41e3c1672cd4c6092b.tar.xz
evol-hercules-77cc71cde657cca6c2747a41e3c1672cd4c6092b.zip
Add script command for use craft.
New script command: usecraft CRAFT Where CRAFT - craft id created by initcraft.
Diffstat (limited to 'src/emap/craft.h')
-rw-r--r--src/emap/craft.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/emap/craft.h b/src/emap/craft.h
index 41ee694..2763907 100644
--- a/src/emap/craft.h
+++ b/src/emap/craft.h
@@ -28,6 +28,7 @@ struct craft_slot
struct craft_vardata
{
struct craft_slot slots[craft_inventory_size];
+ int entry_id;
};
void do_init_craft(void);
@@ -40,5 +41,6 @@ void craft_delete(const int id);
struct craft_slot *craft_get_slot(const int id, const int slot);
bool craft_validate(TBL_PC *sd, const int id);
int craft_find_entry(TBL_PC *sd, const int craftvar, const int flag);
+bool craft_use_entry(TBL_PC *sd, const int id);
#endif // EVOL_MAP_CRAFT