mirror of
https://github.com/ArchipelagoMW/Archipelago.git
synced 2026-03-20 06:18:19 -07:00
Update world api.md
This commit is contained in:
@@ -751,9 +751,9 @@ The calls to the actual recalculating functions are then moved to the start of t
|
||||
|
||||
```python
|
||||
def can_defeat_enemy(state: CollectionState, player: int, enemy: str) -> bool:
|
||||
if state.custom_state_is_stale[player]:
|
||||
if state.mygame_state_is_stale[player]:
|
||||
state.defeatable_enemies = recalculate_defeatable_enemies(state)
|
||||
state.custom_state_is_stale[player] = False
|
||||
state.mygame_state_is_stale[player] = False
|
||||
|
||||
return enemy in state.defeatable_enemies
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user