Update docs/world api.md

Co-authored-by: Exempt-Medic <60412657+Exempt-Medic@users.noreply.github.com>
This commit is contained in:
NewSoupVi
2024-07-25 06:05:46 +02:00
committed by GitHub
parent 41f1ab054c
commit 74ed14b1c7

View File

@@ -306,6 +306,7 @@ An access rule is a function that returns `True` or `False` for a `Location` or
The two possible ways to make a CollectionRule are:
- `def rule(state: CollectionState) -> bool:`
- `lambda state: ... boolean expression ...`
An access rule can be assigned through `set_rule(location, rule)`.
Access rules usually check for one of two things.