difications
Book 1 - Objects
Part 1 - School-Desks
A school-desk is a kind of container. A school-desk is always fixed in place, open, and not openable.
A desktop is a kind of supporter. A desktop is part of every school-desk. The description of a desktop is usually "Just like every other desk in the school, this has a brown, flat fake-wood surface for writing and a black metal compartment underneath for storing books and things."
Before inserting something into a desktop which is part of a school-desk (called the item):
try inserting the noun into the item instead.
Before putting something on a school-desk when a desktop (called the surface) is part of the second noun:
try putting the noun on the surface instead.
Rule for disclosing contents of a school-desk (called the item):
let surface be a random desktop which is part of the item;
let matching seat be the pair-match of the item;
if something in the item is mentioned
begin;
say "Besides [the list of mentioned things in the item] you can see [a list of mentionable things on the surface] on [the item], and [a list of mentionable things in the item] inside. ";
otherwise if the surface supports something;
say "On [the item] [is-are a list of mentionable things on the surface][if the player is on the matching seat], and inside it [is-are a list of mentionable things inside the item][end if]. ";
otherwise if the player is on the matching seat;
say "Inside [the item] [is-are a list of mentionable things inside the item]. ";
end if.
[The desk is designed to appear to the player as one object even though it has two components--the player shouldn't have to distinguish between the inside of the desk and on the desktop.]
The description of a school-desk is usually "Just like every other desk in the school, this has a brown, flat fake-wood surface for writing and a black metal compartment underneath for storing books and things."
A description-concealing rule when the player is on a school-chair (called the current-seat):
repeat with item running through school-desks in the location
begin;
if the item is not the pair-match of the current-seat, now the item is not marked for listing;
end repeat.
Definition: A school-desk (called the item) is nearby if the pair-match of the item supports the player.
Does the player mean doing something when the noun is nearby or the second noun is nearby: it is very likely.
[This is so the game only mentions the desk at which the player is sitting in the event there are more than one in the room.]
Instead of opening a school-desk (called the target), try searching the target.
Check closing a school-desk: say "The desk just has an open storage space below the desktop. It can[']t be closed." instead.