Skip to content

Commit

Permalink
Add item_category documentation (#37346)
Browse files Browse the repository at this point in the history
*  Add item_category documentation

* Alignment
  • Loading branch information
snipercup authored and I-am-Erk committed Jan 24, 2020
1 parent 3fae12a commit bb45b9a
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion doc/JSON_INFO.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ Use the `Home` key to return to the top.
+ [Bionics](#bionics)
+ [Dreams](#dreams)
+ [Item Groups](#item-groups)
+ [Item Category](#item-category)
+ [Materials](#materials)
+ [Monster Groups](#monster-groups)
- [Group definition](#group-definition)
Expand Down Expand Up @@ -467,6 +468,26 @@ The syntax listed here is still valid.
}
```

### Item Category

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

```C++
{
"id":"ammo",
"name": "AMMO",
"zone": "LOOT_AMMO",
"sort_rank": -21
}
```

### Materials

| Identifier | Description
Expand Down Expand Up @@ -2943,4 +2964,4 @@ Setting of sprite sheets. Same as `tiles-new` field in `tile_config`. Sprite fil
"type": "field_type", // this is a field type
"id": "fd_gum_web", // id of the field
"immune_mtypes": [ "mon_spider_gum" ], // list of monster immune to this field
}
}

0 comments on commit bb45b9a

Please sign in to comment.