… | |
… | |
3578 | * item in the container. Otherwise, use the map. |
3578 | * item in the container. Otherwise, use the map. |
3579 | */ |
3579 | */ |
3580 | |
3580 | |
3581 | // first try to apply "applyables" |
3581 | // first try to apply "applyables" |
3582 | for (object *tmp = top; tmp; tmp = tmp->below) |
3582 | for (object *tmp = top; tmp; tmp = tmp->below) |
|
|
3583 | // the tmp->cb is a hack to allow user-extendable types... |
3583 | if (!tmp->invisible && may_attempt [tmp->type]) |
3584 | if (!tmp->invisible && (may_attempt [tmp->type] || tmp->cb)) |
3584 | { |
3585 | { |
3585 | // If it is visible, player can apply it. |
3586 | // If it is visible, player can apply it. |
3586 | pl->apply (tmp); |
3587 | pl->apply (tmp); |
3587 | return; |
3588 | return; |
3588 | } |
3589 | } |