Skip to content

Commit 9a9aab5

Browse files
committed
tweak reqs docs
1 parent 5af18aa commit 9a9aab5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docs/syntax/requires.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Requires for Locations and Regions
22

33
_Let's start with the bad:_
4+
45
If you don't put requires on your locations and/or regions, every location in your world will be in sphere 0. As in, any multiworld you play in will expect you to complete your entire world as soon as the multi starts.
56

67
So it's really important to have requires! But what are they?
@@ -29,7 +30,7 @@ For example, from the example above about Link to the Past and Thieves Town in t
2930
- The former essentially evaluates to "Hammer and either Power Glove or Titan's Mitt", while the latter is very explicit about what the logic should be and evaluates correctly.
3031
- There's no theoretical limit to how many parentheses you can use, but try to not get past the practical limit of how many sets of parentheses you can reliably keep track of.
3132

32-
#### Additional Examples
33+
### Additional Examples of Boolean Logic
3334

3435
Boss 1 Requires Ladder and Gloves, OR Sword and Shield, OR Bow and Quiver and Arrow (separate items): a simple case of various successful item sets. It's a few sets of ANDs separated by ORs.
3536
```json
@@ -67,7 +68,7 @@ The key is a short suffix added to the end of any required item name separated b
6768
Now that we know how to require multiple of an item, we can revise our Boss 2 example from above to make the boss a little easier to handle in-logic:
6869

6970
> Boss 2 simply requires **FIVE hearts**, a way to strike it (Sword, Spear or Club) and a way to dodge it (Double Jump, Dash or Slide): we're looking at different sets, and picking one item from which. It's many ORs inside a big set of ANDs.
70-
```json
71+
> ```json
7172
{
7273
"name": "Boss 2",
7374
"requires": "|Heart:5| and (|Sword| or |Spear| or |Club|) and (|Double Jump| or |Dash| or |Slide|)"

0 commit comments

Comments
 (0)