diff options
author | David Gay <david@davidgay.org> | 2021-06-06 20:58:51 -0400 |
---|---|---|
committer | David Gay <david@davidgay.org> | 2021-06-06 20:58:51 -0400 |
commit | 307b921892a2efe9d956b00cd7992fe1402c6150 (patch) | |
tree | 49bd2b521503cc88a3bb8250e66780eb3c1fd66d | |
parent | 1fb595af078a823157a9a5fc1f6e1a3a505e8c41 (diff) |
Inventory: Move consumables up, just below equipment
-rw-r--r-- | CHANGELOG.md | 7 | ||||
-rw-r--r-- | app/views/characters/items/index.html.erb | 8 |
2 files changed, 10 insertions, 5 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index f46ec7b..799331e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,12 @@ # Changelog All notable changes to this project will be documented in this file. -## [Unreleased] +## [0.1.8.1] - 2021-06-06 + +### UI +- Consumables are now listed in inventory below equipment and above tools. + +## [0.1.8] - 2021-06-06 ### General - New feature: Messages! Currently you can't exchange messages with other characters, but you may receive diff --git a/app/views/characters/items/index.html.erb b/app/views/characters/items/index.html.erb index af7b1ef..671e68f 100644 --- a/app/views/characters/items/index.html.erb +++ b/app/views/characters/items/index.html.erb @@ -23,6 +23,10 @@ character_items: @character.character_items.ordered_by_item_name.select { |ci| ci.item.equipment? && ci.item.tags.none? } %> +<%= render "characters/items/inventory_section", heading: "Consumables", + character_items: @character.character_items.ordered_by_item_name.select { |ci| + ci.item.usable? } %> + <%= render "characters/items/inventory_section", heading: "Tools", character_items: @character.character_items.ordered_by_item_name.select { |ci| ci.item.has_tag?("tool") } %> @@ -31,10 +35,6 @@ character_items: @character.character_items.ordered_by_item_name.select { |ci| ci.item.has_tag?("currency") } %> -<%= render "characters/items/inventory_section", heading: "Consumables", - character_items: @character.character_items.ordered_by_item_name.select { |ci| - ci.item.usable? } %> - <%= render "characters/items/inventory_section", heading: "Seeds", character_items: @character.character_items.ordered_by_item_name.select { |ci| ci.item.has_tag?("seed") } %> |