From 77cc71cde657cca6c2747a41e3c1672cd4c6092b Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 24 Jan 2016 02:43:12 +0300 Subject: Add script command for use craft. New script command: usecraft CRAFT Where CRAFT - craft id created by initcraft. --- src/emap/craft.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/emap/craft.h') 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 -- cgit v1.2.3-60-g2f50