I have been working on a script that parses some text strings from the inventory page, and Mafia seems to have problems with some strings and the to_item() command. I would expect Mafia to return none for strings that are not items, and it does, but it also gives a debug error.
For instance, using build 9781 from the CLI: ash to_item("Misc. Inventory Functions")
gives:
ckb
For instance, using build 9781 from the CLI: ash to_item("Misc. Inventory Functions")
gives:
Code:
Returned: none
plural => nones
descid =>
image =>
levelreq => 0
quality =>
adventures =>
muscle =>
mysticality =>
moxie =>
fullness => 0
inebriety => 0
spleen => 0
notes =>
combat => false
reusable => false
usable => false
multi => false
seller => none
Unexpected error, debug log printed.
ckb