Return new state man (Vi's note: I have chosen not to change this title) (#5978)

This commit is contained in:
Duck
2026-02-25 12:52:34 -07:00
committed by GitHub
parent 699ca8adf6
commit b30b2ecb07

View File

@@ -770,6 +770,7 @@ class MyGameState(LogicMixin):
new_state.mygame_defeatable_enemies = { new_state.mygame_defeatable_enemies = {
player: enemies.copy() for player, enemies in self.mygame_defeatable_enemies.items() 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. After doing this, you can now access `state.mygame_defeatable_enemies[player]` from your access rules.