… | |
… | |
1964 | |
1964 | |
1965 | if (door->type == DOOR) |
1965 | if (door->type == DOOR) |
1966 | hit_player (door, 9998, op, AT_PHYSICAL, 1); /* Break through the door */ |
1966 | hit_player (door, 9998, op, AT_PHYSICAL, 1); /* Break through the door */ |
1967 | else if (door->type == LOCKED_DOOR) |
1967 | else if (door->type == LOCKED_DOOR) |
1968 | { |
1968 | { |
1969 | new_draw_info_format (NDI_UNIQUE, NDI_BROWN, op, "You open the door with the %s", query_short_name (key)); |
1969 | op->statusmsg (format ("You open the door with the %s", query_short_name (key)), NDI_BROWN); |
1970 | remove_door2 (door); /* remove door without violence ;-) */ |
1970 | remove_door2 (door); /* remove door without violence ;-) */ |
1971 | } |
1971 | } |
1972 | |
1972 | |
1973 | /* Do this after we print the message */ |
1973 | /* Do this after we print the message */ |
1974 | decrease_ob (key); /* Use up one of the keys */ |
1974 | decrease_ob (key); /* Use up one of the keys */ |
… | |
… | |
1979 | return 1; /* Nothing more to do below */ |
1979 | return 1; /* Nothing more to do below */ |
1980 | } |
1980 | } |
1981 | else if (door->type == LOCKED_DOOR) |
1981 | else if (door->type == LOCKED_DOOR) |
1982 | { |
1982 | { |
1983 | /* Might as well return now - no other way to open this */ |
1983 | /* Might as well return now - no other way to open this */ |
1984 | new_draw_info (NDI_UNIQUE | NDI_NAVY, 0, op, door->msg); |
1984 | op->failmsg (door->msg); |
1985 | return 1; |
1985 | return 1; |
1986 | } |
1986 | } |
1987 | |
1987 | |
1988 | return 0; |
1988 | return 0; |
1989 | } |
1989 | } |