The apple in the inventory is visible in the dark while the pear is not. There is surely a logic to all this, but it’s a bit annoying.
The behavior is the same for the standard library. The difference between the two is the use of before(Examine)
for the apple.
Darkness
It is pitch dark here!
> i
You're carrying a box (which contains a pear and a apple).
> x apple
An apple.
> x pear
But it's dark.
Object Library "The Library"
with description "You are in a library.",
has ~light;
Object -> Box "box"
with name 'box',
has container open;
Object ->-> pear "pear"
with
name 'pear',
description "A pear.",
has edible;
Object ->-> apple "apple"
with
name 'apple',
before [;
Examine: "An apple.";
],
has edible;