Section 22 - Food Dispenser
A dispenser is a thing. The description is "The Nutrimat 9000 can dispense both food and drink, but makes no guarantees regarding edibility. There is a food button and a drink button on the dispenser, and a hopper into which items are dispensed."
The food button is part of a dispenser.
Instead of pushing the food button:
say "You push the button.";
let choice be a random ration bar in Dispenser Limbo;
if choice is nothing:
say "The dispenser makes a click, but nothing drops out.";
otherwise:
move the choice to the player;
say "A ration bar drops into the hopper and you pick it up.".
There are 10 ration bars in Dispenser Limbo.
The drink button is part of a dispenser.
Instead of pushing the drink button:
say "You push the button.";
let choice be a random squeeze bulb in Dispenser Limbo;
if choice is nothing:
say "The dispenser makes a click, but nothing drops out.";
otherwise:
move the choice to the player;
say "A squeeze bulb drops into the hopper and you pick it up.".
There are 10 squeeze bulbs in Dispenser Limbo.