… | |
… | |
90 | * Shortcut to find_best_apply_object_match(pl, params, AF_NULL); |
90 | * Shortcut to find_best_apply_object_match(pl, params, AF_NULL); |
91 | **/ |
91 | **/ |
92 | object * |
92 | object * |
93 | find_best_object_match (object *pl, const char *params) |
93 | find_best_object_match (object *pl, const char *params) |
94 | { |
94 | { |
95 | return find_best_apply_object_match (pl, params, AP_NULL); |
95 | return find_best_apply_object_match (pl, params, AP_TOGGLE); |
96 | } |
96 | } |
97 | |
97 | |
98 | int |
98 | int |
99 | command_uskill (object *pl, char *params) |
99 | command_uskill (object *pl, char *params) |
100 | { |
100 | { |
… | |
… | |
124 | { |
124 | { |
125 | new_draw_info_format (NDI_UNIQUE, 0, pl, "You have no knowledge of the skill %s", params); |
125 | new_draw_info_format (NDI_UNIQUE, 0, pl, "You have no knowledge of the skill %s", params); |
126 | return 0; |
126 | return 0; |
127 | } |
127 | } |
128 | |
128 | |
129 | return change_skill (pl, skill, 0); |
129 | pl->change_skill (0); |
|
|
130 | apply_special (pl, skill, AP_APPLY); |
|
|
131 | return 1; |
130 | } |
132 | } |
131 | |
133 | |
132 | /* These functions (command_search, command_disarm) are really just wrappers for |
134 | /* These functions (command_search, command_disarm) are really just wrappers for |
133 | * things like 'use_skill ...'). In fact, they should really be obsoleted |
135 | * things like 'use_skill ...'). In fact, they should really be obsoleted |
134 | * and replaced with those. |
136 | * and replaced with those. |