the-infocom-files / amfv

A Mind Forever Voyaging
5 stars 2 forks source link

"EXAMINE BUILDING" doesn't work as intended for the former rectory in 2071 #44

Open eriktorbjorn opened 4 years ago

eriktorbjorn commented 4 years ago

BUILDING-F has this case in the EXAMINE action handler:

              (<AND <EQUAL? ,HERE ,CHURCH-ENTRANCE ,MIDLAND-AND-CHURCH
                          ,CONSTRUCTION-SITE-5>
                <EQUAL? ,SYEAR 2071>>
               <TELL "Nothing is left of the building ">
               <COND (<EQUAL? ,HERE ,CHURCH-ENTRANCE>
                  <TELL "to the northwest ">)
                 (<EQUAL? ,HERE ,MIDLAND-AND-CHURCH>
                  <TELL "to the southwest ">)>
               <TELL "excepts ruins." CR>)>)>>

But it's not working quite as intended:

>LOOK
Ruined Building
Barely discernible through the ash and broken glass are signs that this was once
a church building of some kind. You can leave to either the northeast or
southeast.

>EXAMINE BUILDING
[You can't see any building here.]

>EXAMINE BLDG
Nothing is left of the building excepts ruins.

It turns out that "EXAMINE BUILDING" will examine RECTORY-OBJECT, not BUILDING.

eriktorbjorn commented 4 years ago

Perhaps RECTORY-OBJECT-F should do something similar to what SUPERMARKET-F does when you examinine it in 2081:

              (<EQUAL? ,SYEAR 2081>
               <PERFORM ,V?EXAMINE ,BUILDING>
               <RTRUE>)>)