Skip to content

Lib updates + Cloak Updates

Choose a tag to compare

@ThunderSOS ThunderSOS released this 11 Aug 15:06
· 19 commits to main since this release

Update library and Cloak demo so both support PUT CLOAK ON HOOK as an alternative to HANG CLOAK ON HOOK.
Put is a built-in Verb usually exclusively handled buy the PutHandler but PUT ON should be scriptable which means using the AdverbHandler for this form of the verb. This in turn needed a little bit of jiggery pokery with the Sentence parser and the DoTaskHandler in order to handle the Adverb properly in this specific circumstance (i.e when the Verb takes prepositions as an alternative structure).

You can still define ON as a preposition instead. Then things like PUT x ON TABLE will work.
But at the moment you can't have both as you can't pass the item to the Task interpreter as a variable.