Update docs/world api.md

Co-authored-by: Nicholas Saylor <79181893+nicholassaylor@users.noreply.github.com>
This commit is contained in:
NewSoupVi
2024-09-05 21:14:45 +02:00
committed by GitHub
parent 6609d9f138
commit 2cbe302a49

View File

@@ -329,7 +329,7 @@ You can use `multiworld.register_indirect_condition(region, entrance)` to explic
You **must** use `multiworld.register_indirect_condition` if you perform this kind of `can_reach` from an entrance access rule, unless you have a **very** good technical understanding of the relevant code and can reason why it will never lead to problems in your case.
Alternatively, you can set [world.explicit_indirect_conditions = False](https://github.com/ArchipelagoMW/Archipelago/blob/main/worlds/AutoWorld.py#L298-L301),
in which case your world takes a flat performance hit to not have to worry about indirect conditions.
avoiding the need for indirect conditions at the expense of performance.
### Item Rules