From 74ed14b1c704423f242908a4ebed9e7cc8bbe28a Mon Sep 17 00:00:00 2001 From: NewSoupVi <57900059+NewSoupVi@users.noreply.github.com> Date: Thu, 25 Jul 2024 06:05:46 +0200 Subject: [PATCH] Update docs/world api.md Co-authored-by: Exempt-Medic <60412657+Exempt-Medic@users.noreply.github.com> --- docs/world api.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/world api.md b/docs/world api.md index 77b99e47c4..2b9e38fe67 100644 --- a/docs/world api.md +++ b/docs/world api.md @@ -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.