diff --git a/docs/world api.md b/docs/world api.md index 48e863fb26..2df7b12744 100644 --- a/docs/world api.md +++ b/docs/world api.md @@ -770,6 +770,7 @@ class MyGameState(LogicMixin): new_state.mygame_defeatable_enemies = { player: enemies.copy() for player, enemies in self.mygame_defeatable_enemies.items() } + return new_state ``` After doing this, you can now access `state.mygame_defeatable_enemies[player]` from your access rules.