Skip to content
Open
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion docs/gui/create-item.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
13 changes: 7 additions & 6 deletions gui/create-item.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down