the-infocom-files / bureaucracy

Bureaucracy
8 stars 2 forks source link

The llama never finishes eating (by design?) #31

Open eriktorbjorn opened 1 year ago

eriktorbjorn commented 1 year ago

There is code in I-LLAMA for the lama to eat the last of the llama treats:

           (<ZERO? .X>
        <UNMAKE ,LLAMA ,TOUCHED>
        <ZPUT ,LLAMA-TABLE ,LLAMA-TIMER 6>
        <MAKE ,LLAMA ,SEEN>
        <ZREMOVE ,TREATS>
        <COND (<T? .CR>
               <ZCRLF>)>
        <TELL CTHE ,LLAMA
" finishes off " THE ,BAG " with a horrid little tuba-bleat of contentment." CR>
        <RETURN T .IL>)

But X is always negative, as far as I can tell, so this won't happen until the LLAMA-TIMER underflows. This piece of code is the only place I could find where the timer is set. It starts at 0, and gets decreased before checking if it is 0.