mirror of
https://github.com/ArchipelagoMW/Archipelago.git
synced 2026-03-22 15:45:04 -07:00
Update world api.md
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user