From f9108f4331ac5d13e2bbc880c3ca38e5b77ecb2c Mon Sep 17 00:00:00 2001 From: NewSoupVi <57900059+NewSoupVi@users.noreply.github.com> Date: Sat, 21 Sep 2024 18:52:02 +0200 Subject: [PATCH] Update world api.md --- docs/world api.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/world api.md b/docs/world api.md index 37e47ca7a9..a3d3637c4d 100644 --- a/docs/world api.md +++ b/docs/world api.md @@ -715,7 +715,7 @@ class MyGameState(LogicMixin): new_state.defeatable_enemies = {player: enemies.copy() for player, enemies in self.defeatable_enemies.items()} ``` -After doing this, you can now access `state.defeatable_enemies` from your access rules. +After doing this, you can now access `state.defeatable_enemies[player]` from your access rules. Usually, doing this coincides with an override of `World.collect` and `World.remove`, where any time a relevant item is collected or removed, the custom state variable gets recalculated.