Update README.md

This commit is contained in:
Nick Walton 2020-06-03 10:27:14 -06:00 committed by GitHub
parent 95b34a276f
commit a00419df39
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -13,6 +13,9 @@ https://www.codecademy.com/courses/introduction-to-javascript
### History ### History
You have access to (but can't modify) the `history` object which is a list of the previous actions of the player and of the AI. You have access to (but can't modify) the `history` object which is a list of the previous actions of the player and of the AI.
### Quests
You can modify the quests property to change the quests of the adventure mid game.
### Input Modifier ### Input Modifier
Called each time the player gives an input and has the opportunity to modify that input. Called each time the player gives an input and has the opportunity to modify that input.
@ -27,7 +30,6 @@ You can modify worldEntries with the below functions
* removeWorldEntry(index) * removeWorldEntry(index)
* updateWorldEntry(index, keys, entry) * updateWorldEntry(index, keys, entry)
### State ### State
The `state` variable can be used to store information that's persistent across function calls. The `state` variable can be used to store information that's persistent across function calls.
* The `state.memory.context` value will be added to the games memory if exists * The `state.memory.context` value will be added to the games memory if exists