From deb8e00f663d54ab2a91b3d2f62b506ce72eb8b5 Mon Sep 17 00:00:00 2001 From: snipercup <50166150+snipercup@users.noreply.github.com> Date: Fri, 24 Jan 2020 15:08:56 +0100 Subject: [PATCH 1/2] Add item_category documentation --- doc/JSON_INFO.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/doc/JSON_INFO.md b/doc/JSON_INFO.md index 829cb00aa9e9c..5a7d4e8b0af95 100644 --- a/doc/JSON_INFO.md +++ b/doc/JSON_INFO.md @@ -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) @@ -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 From 85693faf0238fcd5d56b79e0223bb1063c2b4061 Mon Sep 17 00:00:00 2001 From: snipercup <50166150+snipercup@users.noreply.github.com> Date: Fri, 24 Jan 2020 15:36:22 +0100 Subject: [PATCH 2/2] Alignment --- doc/JSON_INFO.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/JSON_INFO.md b/doc/JSON_INFO.md index 5a7d4e8b0af95..cc7215c204278 100644 --- a/doc/JSON_INFO.md +++ b/doc/JSON_INFO.md @@ -475,9 +475,9 @@ When you sort your inventory by category, these are the categories that are disp | 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 +| 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++ { @@ -2964,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 - } \ No newline at end of file + }