Doc: fix wrong naming in api.md example code
This commit is contained in:
parent
19dd447dcb
commit
a020dea277
|
@ -626,7 +626,7 @@ class MyGameWorld(World):
|
||||||
# ...
|
# ...
|
||||||
def set_rules(self):
|
def set_rules(self):
|
||||||
set_rule(self.world.get_location("A Door", self.player),
|
set_rule(self.world.get_location("A Door", self.player),
|
||||||
lamda state: state._myworld_has_key(self.world, self.player))
|
lamda state: state._mygame_has_key(self.world, self.player))
|
||||||
```
|
```
|
||||||
|
|
||||||
### Generate Output
|
### Generate Output
|
||||||
|
|
Loading…
Reference in New Issue