State-arithmetic elimination.
This commit is contained in:
parent
e31e69b172
commit
e1cca3b28a
3 changed files with 6 additions and 5 deletions
|
@ -1052,9 +1052,8 @@ static int reservoir(void)
|
||||||
rspeak(NOTHING_HAPPENS);
|
rspeak(NOTHING_HAPPENS);
|
||||||
return GO_CLEAROBJ;
|
return GO_CLEAROBJ;
|
||||||
} else {
|
} else {
|
||||||
/* FIXME: Arithmetic on state numbers */
|
state_change(RESER,
|
||||||
pspeak(RESER, look, game.prop[RESER] + 1, true);
|
game.prop[RESER] == WATERS_PARTED ? WATERS_UNPARTED : WATERS_PARTED);
|
||||||
game.prop[RESER] = 1 - game.prop[RESER];
|
|
||||||
if (AT(RESER))
|
if (AT(RESER))
|
||||||
return GO_CLEAROBJ;
|
return GO_CLEAROBJ;
|
||||||
else {
|
else {
|
||||||
|
|
|
@ -3627,11 +3627,13 @@ objects: !!omap
|
||||||
inventory: '*reservoir'
|
inventory: '*reservoir'
|
||||||
locations: [LOC_RESERVOIR, LOC_RESNORTH]
|
locations: [LOC_RESERVOIR, LOC_RESNORTH]
|
||||||
immovable: true
|
immovable: true
|
||||||
states: [WATERS_UNPARTED, WATERS_PARTED, WATERS_CRASH]
|
states: [WATERS_UNPARTED, WATERS_PARTED]
|
||||||
descriptions:
|
descriptions:
|
||||||
- ''
|
- ''
|
||||||
- 'The waters have parted to form a narrow path across the reservoir.'
|
- 'The waters have parted to form a narrow path across the reservoir.'
|
||||||
|
changes:
|
||||||
- 'The waters crash together again.'
|
- 'The waters crash together again.'
|
||||||
|
- 'The waters have parted to form a narrow path across the reservoir.'
|
||||||
- OBJ_46:
|
- OBJ_46:
|
||||||
words: ['appen', 'lepor']
|
words: ['appen', 'lepor']
|
||||||
inventory: 'Leporine appendage'
|
inventory: 'Leporine appendage'
|
||||||
|
|
|
@ -47,7 +47,7 @@ Bug fixes:
|
||||||
* Reading the relocated Witt's End sign in the endgame didn't work right.
|
* Reading the relocated Witt's End sign in the endgame didn't work right.
|
||||||
|
|
||||||
* Behavior when saying the giant's magic words outside his room wasn't
|
* Behavior when saying the giant's magic words outside his room wasn't
|
||||||
quite corrected - the game responded as though the player were in
|
quite correct - the game responded as though the player were in
|
||||||
the room.
|
the room.
|
||||||
|
|
||||||
* Attempting to extinguish an unlit urn caused it to lose its oil.
|
* Attempting to extinguish an unlit urn caused it to lose its oil.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue