Update world api.md

This commit is contained in:
NewSoupVi
2024-09-21 19:03:24 +02:00
committed by GitHub
parent db577ad899
commit 4eeac945fb

View File

@@ -720,7 +720,7 @@ After doing this, you can now access `state.defeatable_enemies[player]` from you
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.
```
```python
# __init__.py
def collect(self, state: CollectionState, item: Item) -> bool: