… | |
… | |
223 | /**************************************************************************/ |
223 | /**************************************************************************/ |
224 | |
224 | |
225 | void |
225 | void |
226 | change_spell (object *op, char k) |
226 | change_spell (object *op, char k) |
227 | { |
227 | { |
|
|
228 | if (op->contr->combat_ob == op->current_weapon) |
|
|
229 | { |
|
|
230 | if (op->contr->ranged_ob) |
|
|
231 | op->set_weapon (op->contr->ranged_ob); |
|
|
232 | } |
|
|
233 | else if (op->contr->ranged_ob == op->current_weapon) |
|
|
234 | { |
|
|
235 | if (op->contr->combat_ob) |
|
|
236 | op->set_weapon (op->contr->combat_ob); |
|
|
237 | } |
|
|
238 | |
228 | //TODO: maybe switch to golem, if any? |
239 | //TODO: maybe switch to golem, if any? |
229 | // does nothing |
|
|
230 | } |
240 | } |
231 | |
241 | |
232 | int |
242 | int |
233 | command_rotateshoottype (object *op, char *params) |
243 | command_rotateshoottype (object *op, char *params) |
234 | { |
244 | { |