diff options
-rw-r--r-- | src/defines.h | 1 | ||||
-rw-r--r-- | src/store.cc | 11 |
2 files changed, 2 insertions, 10 deletions
diff --git a/src/defines.h b/src/defines.h index 6723ef28..0f2d3e0c 100644 --- a/src/defines.h +++ b/src/defines.h @@ -4375,7 +4375,6 @@ #define HOOK_LEVEL_REGEN 42 #define HOOK_LEVEL_END_GEN 43 #define HOOK_BUILDING_ACTION 44 -#define HOOK_STORE_STOCK 47 #define HOOK_GEN_LEVEL_BEGIN 49 #define HOOK_GET 50 #define HOOK_RECALC_SKILLS 52 diff --git a/src/store.cc b/src/store.cc index ef2a97a1..f903a8fc 100644 --- a/src/store.cc +++ b/src/store.cc @@ -1215,16 +1215,9 @@ static void store_create(void) { obj_all_done = FALSE; - /* Lua can define things to buy */ - if (process_hooks_ret(HOOK_STORE_STOCK, "O", "(d,s,d)", st_ptr->st_idx, st_info[st_ptr->st_idx].name + st_name, return_level())) - { - obj_all_done = TRUE; - q_ptr = process_hooks_return[0].o_ptr; - } - /* Magic Shop */ - else if (streq(st_info[st_ptr->st_idx].name + st_name, STORE_MAGIC) && - magik(20)) + if (streq(st_info[st_ptr->st_idx].name + st_name, STORE_MAGIC) && + magik(20)) { s16b spell; |