Good points - though to be honest I can imagine myself wanting to use this syntax occasionally - I'm strange like that :)
Of course it doesn't have to be a single character. What about "$item$" ?
Yuck.
Here's another idea - this diff adds the ability to refer to items by their item-ID (eg "closet put #623") and updates (some of) the ASH wrappers to use it. This avoids the need for the second bit of string matching completely.
(Of course it'll break if Jick ever adds an object whose...
Quotes seem to help:
> closet put 1 WA
Placing items into closet...
Transfer failed for 100-Watt bulb
> closet put 1 "WA"
Placing items into closet...
Requests complete.
So I changed line 1709 of RuntimeLibrary.java to add them:
KoLmafiaCLI.DEFAULT_SHELL.executeCommand( "closet", "put "...
I'm trying to put a WA in my closet from an ash script and getting an error:
> ash put_closet(1, $item[WA]);
Placing items into closet...
Transfer failed for 100-Watt bulb
Returned: false
It looks like something's doing a fuzzy match where I want a strict one. At first I thought I had the...