From b30b2ecb07552521d61046844a62cdf54a9b0d53 Mon Sep 17 00:00:00 2001 From: Duck <31627079+duckboycool@users.noreply.github.com> Date: Wed, 25 Feb 2026 12:52:34 -0700 Subject: [PATCH] Return new state man (Vi's note: I have chosen not to change this title) (#5978) --- docs/world api.md | 1 + 1 file changed, 1 insertion(+) 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.