the-infocom-files / hollywoodhijinx

Hollywood Hijinx
3 stars 2 forks source link

You can board the end of the plank, even when you're not allowed to stand on it #41

Open eriktorbjorn opened 2 years ago

eriktorbjorn commented 2 years ago
>STAND ON RIGHT END
It's in the air. How can you stand on it?

>BOARD RIGHT END
You are now on the right end of the plank.

This is because ENDS-F handles the STAND-ON and CLIMB-ONactions, which is where it checks if you are allowed to, and then simply invokes the BOARD action. If you use the BOARD action yourself, you bypass all these checks.

Untested idea: Handle STAND-ON and CLIMB-ON and let them immediately invoke BOARD. Handle BOARD and do the sanity checking there. If everything is ok, RFALSE to let the default action do its thing.