diff --git a/changelog.txt b/changelog.txt index b492b6d2ec..4feb2b385d 100644 --- a/changelog.txt +++ b/changelog.txt @@ -29,6 +29,7 @@ Template for new versions: ## New Tools ## New Features +- `gui/create-item`: quality selection prompt now has 0-5 hotkeys matching the quality levels ## Fixes - `bodyswap`: fix "invalid argument count" when the target unit has no nemesis record diff --git a/docs/gui/create-item.rst b/docs/gui/create-item.rst index 580dec5f1d..0d0f974bc7 100644 --- a/docs/gui/create-item.rst +++ b/docs/gui/create-item.rst @@ -7,7 +7,9 @@ gui/create-item This tool provides a graphical interface for creating items of your choice. It walks you through the creation process with a series of prompts, asking you -for the type of item, the material, the quality, and the quantity. +for the type of item, the material, the quality, and the quantity. At the +quality prompt, you can also press ``0``-``5`` to select a quality level +directly. If a unit is selected, that unit will be designated the creator of the summoned items. Any item with a "sized for" property, like armor, will be created for diff --git a/gui/create-item.lua b/gui/create-item.lua index cf5c12a25d..cc58855a7e 100644 --- a/gui/create-item.lua +++ b/gui/create-item.lua @@ -165,12 +165,13 @@ local function getMatFilter(itemtype, opts) end local function qualityTable() - return { { 'None' }, - { '-Well-crafted-' }, - { '+Finely-crafted+' }, - { '*Superior*' }, - { string.char(240) .. 'Exceptional' .. string.char(240) }, - { string.char(15) .. 'Masterwork' .. string.char(15) }, + -- number the options 0-5 to match the item_quality enum + return { { 'None', key='STRING_A048' }, + { '-Well-crafted-', key='STRING_A049' }, + { '+Finely-crafted+', key='STRING_A050' }, + { '*Superior*', key='STRING_A051' }, + { string.char(240) .. 'Exceptional' .. string.char(240), key='STRING_A052' }, + { string.char(15) .. 'Masterwork' .. string.char(15), key='STRING_A053' }, } end