Feature - Implemented to_item("[XXX]") return $item[none] for non-valid [XXX] strings

Maybe unless the string as a whole is a valid item id name. Like say: "[glitch season reward name]".
That item has had OCD inventory control's item handling confused ever since I've had it in my inventory, but that's a separate kind of issue that just amuses me, given what the item stands for.
 

Veracity

Developer
Staff member
Revision 19436:

Code:
[color=green]> ash to_item( 0 ).to_string()[/color]

Returned: none

[color=green]> ash to_item( 1 ).to_string()[/color]

Returned: seal-clubbing club

[color=green]> ash to_item( 1111111 ).to_string()[/color]

Returned: none

[color=green]> ash to_item( "[0]" ).to_string()[/color]

Returned: none

[color=green]> ash to_item( "[1]" ).to_string()[/color]

Returned: seal-clubbing club

[color=green]> ash to_item( "[1111111]" ).to_string()[/color]

Returned: none

[color=green]> ash to_item( "[hello]" ).to_string()[/color]

Returned: none

[color=green]> ash to_item( "[glitch season reward name]" ).to_string()[/color]

Returned: [glitch season reward name]
 
Top