Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update ITEM_CATEGORY documentation - property priority_zones #37407

Merged
merged 4 commits into from
Jan 27, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 12 additions & 10 deletions doc/JSON_INFO.md
Original file line number Diff line number Diff line change
Expand Up @@ -472,19 +472,21 @@ The syntax listed here is still valid.

When you sort your inventory by category, these are the categories that are displayed.

| Identifier | Description
|--- |---
| id | Unique ID. Must be one continuous word, use underscores if necessary
| name | The name of the category. This is what shows up in-game when you open the inventory.
| zone | The corresponding loot_zone (see loot_zones.json)
| sort_rank | Used to sort categories when displaying. Lower values are shown first
| Identifier | Description
|--- |---
| id | Unique ID. Must be one continuous word, use underscores if necessary
| name | The name of the category. This is what shows up in-game when you open the inventory.
| zone | The corresponding loot_zone (see loot_zones.json)
| sort_rank | Used to sort categories when displaying. Lower values are shown first
| priority_zones | When set, items in this category will be sorted to the priority zone if the conditions are met. If the user does not have the priority zone in the zone manager, the items get sorted into zone set in the 'zone' property. It is a list of objects. Each object has 3 properties: ID: The id of a LOOT_ZONE (see LOOT_ZONES.json), filthy: boolean. setting this means filthy items of this category will be sorted to the priority zone, flags: array of flags

```C++
{
"id":"ammo",
"name": "AMMO",
"zone": "LOOT_AMMO",
"sort_rank": -21
"id":"armor",
"name": "ARMOR",
"zone": "LOOT_ARMOR",
"sort_rank": -21,
"priority_zones": [ { "id": "LOOT_FARMOR", "filthy": true, "flags": [ "RAINPROOF" ] } ],
}
```

Expand Down