From 33e7dc3baa6b375efb6d8989ffe3c50511291228 Mon Sep 17 00:00:00 2001 From: Bardur Arantsson Date: Fri, 11 Dec 2015 08:09:30 +0100 Subject: Remove Alchemist class and associated skills/code Alchemy has always been ridiculously broken and there's been a huge amount of horrible code to support it. Sorry to any fans of Alchemy, but it's got to go. --- src/cmd6.cc | 38 +------------------------------------- 1 file changed, 1 insertion(+), 37 deletions(-) (limited to 'src/cmd6.cc') diff --git a/src/cmd6.cc b/src/cmd6.cc index 97ee2cb0..f27281db 100644 --- a/src/cmd6.cc +++ b/src/cmd6.cc @@ -2492,8 +2492,6 @@ void do_cmd_quaff_potion(void) { int ident, lev; - object_type *q_ptr, forge; - /* Get an item */ int item; if (!get_item(&item, @@ -2548,22 +2546,6 @@ void do_cmd_quaff_potion(void) gain_exp((lev + (p_ptr->lev >> 1)) / p_ptr->lev); } - if (get_skill(SKILL_ALCHEMY)) - { - if (item >= 0) - { - q_ptr = &forge; - object_prep(q_ptr, lookup_kind(TV_BOTTLE, 1)); - q_ptr->number = 1; - object_aware(q_ptr); - object_known(q_ptr); - - q_ptr->ident |= IDENT_STOREB; - - (void)inven_carry(q_ptr, FALSE); - } - } - /* Window stuff */ p_ptr->window |= (PW_INVEN | PW_EQUIP | PW_PLAYER); @@ -3642,24 +3624,6 @@ void do_cmd_read_scroll(void) /* Destroy scroll */ inc_stack_size(item, -1); - - /* Alchemists end up with a "drained" scroll instead */ - if (get_skill(SKILL_ALCHEMY)) - { - if (item >= 0) - { - object_type *q_ptr, forge; - - q_ptr = &forge; - object_prep(q_ptr, lookup_kind(TV_SCROLL, SV_SCROLL_NOTHING)); - object_aware(q_ptr); - object_known(q_ptr); - - q_ptr->ident |= IDENT_STOREB; - - (void)inven_carry(q_ptr, FALSE); - } - } } @@ -5159,7 +5123,7 @@ const char *activation_aux(object_type * o_ptr, bool_ doit, int item) if (!spell && o_ptr->name1) spell = a_info[o_ptr->name1].activate; - /* Random and Alchemist Artifacts */ + /* Random Artifacts */ if (!spell && o_ptr->art_name) spell = o_ptr->xtra2; -- cgit v1.2.3