diff options
author | Bardur Arantsson <bardur@scientician.net> | 2015-12-11 08:09:30 +0100 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2015-12-11 08:09:30 +0100 |
commit | 33e7dc3baa6b375efb6d8989ffe3c50511291228 (patch) | |
tree | 16c72b093ab53f33be5386a842450da8cdf117cf /src/cmd6.cc | |
parent | cc50d2db6418690470ead3faf71e0818eff1b8e4 (diff) |
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.
Diffstat (limited to 'src/cmd6.cc')
-rw-r--r-- | src/cmd6.cc | 38 |
1 files changed, 1 insertions, 37 deletions
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; |