Skip to content
Discussion options

You must be logged in to vote

As @KVonGit said, the issue seems to be cloning the object into the starting room. io.updateUIItems() will update the side pane, but we also need to update the world so that it knows about the clone. The full setup function would look something like this:

settings.setup = function () {
  const clone = cloneObject(w.torch_prototype, 'A_Dark_Cell');
  world.update();
  io.updateUIItems();
}

Replies: 4 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@KVonGit
Comment options

@GhostOfMoria
Comment options

Answer selected by GhostOfMoria
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants