-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Description
I started working on a dynamic todo list item, and I noticed some weird behavior with the examine function. Here's my code:
createItem("todo_list",TAKEABLE(), {
alias: "To-Do List",
loc: "Cave",
examine: function() {
let x = "To Do:|"
x += "kidnapp princess|collect tribute|deal with rival drake|perch magestically|read the kobolds a bedtime story"
return x
}
})
Examining the object doesn't print the value, and I get an error:
"Warning for todo_list: The 'examine' function attribute returns a value; it probably should not"
However in the "attributes for items" docs its says that its valid to have this function return a value.
Metadata
Metadata
Assignees
Labels
No labels