Error in example

On this page: https://github.com/ThePix/QuestJS/wiki/Attributes-for-exits
this example seems to have a missing ")"

 in:new Exit('lift', {
    alsoDir:['southeast'],
    msg:'She steps into the lift.',
    simpleUse:function(char) {
      if (w.lift.getTransitDestLocation() !== this.origin) {
        return util.defaultSimpleExitUse(char, new Exit('lift_shaft', {origin:this.origin, dir:this.dir, msg:"She heads through the doorway."})
      }
      return util.defaultSimpleExitUse(char, this)
    },
  }),

in this line

return util.defaultSimpleExitUse(char, new Exit('lift_shaft', {origin:this.origin, dir:this.dir, msg:"She heads through the doorway."}) <--- missing ")" here

Thanks, corrected


Log in to post a reply.

Support

Forums