[Docs] Specified NetworkItem player is about the player slot of the location, not who the item is intended for (#217)

This commit is contained in:
Jarno Westhof 2022-01-18 19:01:51 +01:00 committed by GitHub
parent ffc7715f1b
commit 5df4d2f2fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 2 deletions

View File

@ -218,7 +218,7 @@ class JSONtoTextParser(metaclass=HandlerMeta):
node["color"] = 'cyan' node["color"] = 'cyan'
elif flags & 1 << 0: # advancement elif flags & 1 << 0: # advancement
node["color"] = 'plum' node["color"] = 'plum'
elif flags & 1 << 1: # never_eclude elif flags & 1 << 1: # never_exclude
node["color"] = 'slateblue' node["color"] = 'slateblue'
elif flags & 1 << 2: # trap elif flags & 1 << 2: # trap
node["color"] = 'salmon' node["color"] = 'salmon'

View File

@ -339,7 +339,13 @@ In JSON this may look like:
{"item": 3, "location": 3, "player": 0, "flags": 0} {"item": 3, "location": 3, "player": 0, "flags": 0}
] ]
``` ```
Flags are bit flags: `item` is the item id of the item
`location` is the location id of the item inside the world
`player` is the player slot of the world the item is located in
`flags` are bit flags:
| Flag | Meaning | | Flag | Meaning |
| ----- | ----- | | ----- | ----- |
| 0 | Nothing special about this item | | 0 | Nothing special about this item |