Simplify vase-dropping logic using state_change().
This commit is contained in:
parent
5ae09b9c34
commit
3d5c7239f1
2 changed files with 7 additions and 9 deletions
|
@ -502,10 +502,9 @@ static int discard(token_t verb, token_t obj, bool just_do_it)
|
|||
game.loc == objects[PILLOW].plac) {
|
||||
rspeak(OK_MAN);
|
||||
} else {
|
||||
game.prop[VASE] = VASE_BROKEN;
|
||||
if (AT(PILLOW))
|
||||
game.prop[VASE] = VASE_WHOLE;
|
||||
pspeak(VASE, look, game.prop[VASE] + 1, true);
|
||||
state_change(VASE, AT(PILLOW)
|
||||
? VASE_WHOLE
|
||||
: VASE_DROPPED);
|
||||
if (game.prop[VASE] != VASE_WHOLE)
|
||||
game.fixed[VASE] = -1;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue