… | |
… | |
1551 | return; |
1551 | return; |
1552 | } |
1552 | } |
1553 | |
1553 | |
1554 | if (!tmp->msg) |
1554 | if (!tmp->msg) |
1555 | { |
1555 | { |
1556 | op->failmsg (format ("You open the %s and find it empty.", &tmp->name)); |
1556 | op->failmsg (format ("The %s contains nothing but meaningless gibberish. H<There is nothing interesting to read here.>", &tmp->name)); |
1557 | return; |
1557 | return; |
1558 | } |
1558 | } |
1559 | |
1559 | |
1560 | /* need a literacy skill to read stuff! */ |
1560 | /* need a literacy skill to read stuff! */ |
1561 | skill_ob = find_skill_by_name (op, tmp->skill); |
1561 | skill_ob = find_skill_by_name (op, tmp->skill); |
… | |
… | |
2586 | if (INVOKE_OBJECT (APPLY, op, ARG_OBJECT (who))) |
2586 | if (INVOKE_OBJECT (APPLY, op, ARG_OBJECT (who))) |
2587 | return RESULT_INT (0); |
2587 | return RESULT_INT (0); |
2588 | |
2588 | |
2589 | switch (op->type) |
2589 | switch (op->type) |
2590 | { |
2590 | { |
2591 | case CF_HANDLE: |
2591 | case T_HANDLE: |
2592 | who->play_sound (sound_find ("turn_handle")); |
2592 | who->play_sound (sound_find ("turn_handle")); |
2593 | who->statusmsg ("You turn the handle."); |
2593 | who->statusmsg ("You turn the handle."); |
2594 | op->value = op->value ? 0 : 1; |
2594 | op->value = op->value ? 0 : 1; |
2595 | SET_ANIMATION (op, op->value); |
2595 | SET_ANIMATION (op, op->value); |
2596 | update_object (op, UP_OBJ_FACE); |
2596 | update_object (op, UP_OBJ_FACE); |