… | |
… | |
1987 | op->statusmsg (format ("You open the door with the %s", query_short_name (key)), NDI_BROWN); |
1987 | op->statusmsg (format ("You open the door with the %s", query_short_name (key)), NDI_BROWN); |
1988 | remove_door2 (door); /* remove door without violence ;-) */ |
1988 | remove_door2 (door); /* remove door without violence ;-) */ |
1989 | } |
1989 | } |
1990 | |
1990 | |
1991 | /* Do this after we print the message */ |
1991 | /* Do this after we print the message */ |
1992 | decrease_ob (key); /* Use up one of the keys */ |
1992 | key->decrease (); /* Use up one of the keys */ |
1993 | /* Need to update the weight the container the key was in */ |
1993 | /* Need to update the weight the container the key was in */ |
1994 | if (container != op) |
1994 | if (container != op) |
1995 | esrv_update_item (UPD_WEIGHT, op, container); |
1995 | esrv_update_item (UPD_WEIGHT, op, container); |
1996 | |
1996 | |
1997 | return 1; /* Nothing more to do below */ |
1997 | return 1; /* Nothing more to do below */ |