new Quest()
Properties:
Name | Type | Description |
---|---|---|
config |
object | Default config for this quest, see individual quest types for details |
player |
Player | |
state |
object | Current completion state |
Extends
- EventEmitter
Methods
-
complete()
-
Fires:
-
emit(event, …args)
-
Proxy all events to all the goals
Parameters:
Name Type Attributes Description event
string args
* <repeatable>
-
getProgress() → {Object}
-
Returns:
Object -
onProgressUpdated()
-
Fires:
-
serialize() → {object}
-
Save the current state of the quest on player save
Returns:
object
Events
-
complete
-
-
progress
-
Parameters:
Name Type Description progress
object -
turn-in-ready
-