Indent groups & add header

master
Jordan Irwin 2021-08-14 23:12:35 -07:00
parent 62ff4dd460
commit d5ff0debda
3 changed files with 9 additions and 1 deletions

View File

@ -2,6 +2,7 @@
v1.7
----
- added missing "textdomain" line in localization template
- indent groups & add header
v1.6
----

View File

@ -261,6 +261,7 @@ local function get_item_specs(item, technical)
spec_group = specs_node
end
local added_misc_groups = false
for k, v in pairs(groups) do
if not is_excluded(k) then
if type_group[k] then
@ -280,7 +281,12 @@ local function get_item_specs(item, technical)
table.insert(specs_entity, format_spec(entity_types, k, v, technical))
item_types.entity = true
else
table.insert(specs_other, format_spec(other_types, k, v, technical))
if not added_misc_groups then
table.insert(specs_other, S("groups:"))
added_misc_groups = true
end
table.insert(specs_other, " " .. format_spec(other_types, k, v, true))
end
end
end

View File

@ -90,6 +90,7 @@ punch operable: @1=
# other & meta
Other:=
Meta:=
groups:=
inventory image: @1=
wield image: @1=
flammable: @1=