Clear login in bvreak
Test double-breaking of vase
This commit is contained in:
parent
0a04293f23
commit
cca3686f2f
3 changed files with 19 additions and 11 deletions
23
actions.c
23
actions.c
|
@ -248,23 +248,26 @@ static void blast(void)
|
|||
static int vbreak(vocab_t verb, obj_t obj)
|
||||
/* Break. Only works for mirror in repository and, of course, the vase. */
|
||||
{
|
||||
if (obj == MIRROR) {
|
||||
switch (obj) {
|
||||
case MIRROR:
|
||||
if (game.closed) {
|
||||
rspeak(BREAK_MIRROR);
|
||||
return GO_DWARFWAKE;
|
||||
} else {
|
||||
rspeak(TOO_FAR);
|
||||
return GO_CLEAROBJ;
|
||||
break;
|
||||
}
|
||||
case VASE:
|
||||
if (game.prop[VASE] == VASE_WHOLE) {
|
||||
if (TOTING(VASE))
|
||||
drop(VASE, game.loc);
|
||||
state_change(VASE, VASE_BROKEN);
|
||||
game.fixed[VASE] = IS_FIXED;
|
||||
break;
|
||||
}
|
||||
default:
|
||||
speak(actions[verb].message);
|
||||
}
|
||||
if (obj == VASE && game.prop[VASE] == VASE_WHOLE) {
|
||||
if (TOTING(VASE))
|
||||
drop(VASE, game.loc);
|
||||
state_change(VASE, VASE_BROKEN);
|
||||
game.fixed[VASE] = IS_FIXED;
|
||||
return GO_CLEAROBJ;
|
||||
}
|
||||
speak(actions[verb].message);
|
||||
return (GO_CLEAROBJ);
|
||||
}
|
||||
|
||||
|
|
|
@ -1298,6 +1298,10 @@ OK
|
|||
|
||||
You have taken the vase and hurled it delicately to the ground.
|
||||
|
||||
> break vase
|
||||
|
||||
It is beyond your power to do that.
|
||||
|
||||
> quit
|
||||
|
||||
Do you really want to quit now?
|
||||
|
@ -1306,7 +1310,7 @@ Do you really want to quit now?
|
|||
|
||||
OK
|
||||
|
||||
You scored 139 out of a possible 430, using 211 turns.
|
||||
You scored 139 out of a possible 430, using 212 turns.
|
||||
|
||||
You have achieved the rating: "Experienced Adventurer".
|
||||
|
||||
|
|
|
@ -216,5 +216,6 @@ s
|
|||
# Previous was just setup - this is the real test
|
||||
take vase
|
||||
break vase
|
||||
break vase
|
||||
quit
|
||||
yes
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue