curiousdannii-testing / inform7-imported-bugs

0 stars 0 forks source link

[I7-1079] [Mantis 1112] Opening a closed object containing only a scenery object results in an ungrammatical "revealing" message. #1005

Closed curiousdannii-testing closed 2 years ago

curiousdannii-testing commented 2 years ago

Reported by : jmac

Description :

Set up a container as openable, closed, and with only a scenery object inside of it. During play, the object will respond to an OPEN action with the statement "You open the [object], revealing ."

Steps to reproduce :

The Bughouse is a room. "This room demostrates the somewhat broken library-constructed message one sees when opening a container with scenery inside of it."

The box is in the Bughouse. "A cardboard box sits here. (TEST BOX)." The box is openable. The box is closed. It has the description "[If the box is closed]It is closed. What could be inside?[else]It is full of emptiness."

Emptiness is scenery in the box. "Nothing but dust."

Test box with "x box / open box / x box / x emptiness".

Additional information :

Sample output from the provided source:

Bughouse
This room demostrates the somewhat broken library-constructed message one sees when opening a container with scenery inside of it.

A cardboard box sits here. (TEST BOX).

>test box
(Testing.)

>[1] x box
It is closed. What could be inside?

>[2] open box
You open the box, revealing .

>[3] x box
It is full of emptiness.

>[4] x emptiness
Nothing but dust.

>

imported from: [Mantis 1112] Opening a closed object containing only a scenery object results in an ungrammatical "revealing" message.
  • status: Closed
  • resolution: Resolved
  • resolved: 2022-04-07T04:55:30+10:00
  • imported: 2022/01/10
curiousdannii-testing commented 2 years ago

557058:4c095ffd-6d6f-47ce-9e73-77c613347b86:

Comment by graham :
Fixed - a bug in the list-writer going right back to Inform 6, I would think, but it's surprising how rarely the circumstances arise.

curiousdannii-testing commented 2 years ago

557058:4c095ffd-6d6f-47ce-9e73-77c613347b86:

Comment by zarf :
Confirmed.

The "reveal any newly visible interior rule" invokes library message Open 4:

if (WriteListFrom(child(x1), ENGLISH_BIT+TERSE_BIT+CONCEAL_BIT) == 0) "nothing.";