Raising the Flag on Mount Yo Momma — 25 of 87

Juhana Leinonen

Release 3

Chapter Mixing into

Mixing it into is an action applying to one carried thing and one thing.

Understand "mix [something] into/with/in/to/on/onto [something]" as mixing it into.

Understand the command "pour" as "mix".

["mix X and Y" should be accepted. Unfortunately the parser intercepts "and" at an early stage so it can't be used in an understand phrase, so we have to replace the word with something else.]

After reading a command:

if the player's command includes "mix" and the player's command includes "and":

replace the matched text with "with".

Check mixing when the noun is not a drink:

say "You can't mix those!" instead.

Table of analyzing actions (continued)

topictesting rule
"mixing into"test looking through rule

This is the test mixing into rule:

let mix-target be a random visible thing that is not the noun in the location of the test-actor;

say test announcement for "mixing [the mix-target] into [the noun]";

try the test-actor trying mixing the mix-target into the noun;

say test announcement for "mixing [the noun] into [the mix-target]";

try the test-actor trying mixing the noun into the mix-target;