Skip to content

Commit

Permalink
extra txt 添加一个必用项 'anei',用于商店选择单位
Browse files Browse the repository at this point in the history
  • Loading branch information
liehun10086 committed Jan 1, 2022
1 parent 05c28a1 commit 7fa3537
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions script/core/slk/backend.lua
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ local function remove_unuse(w2l, slk)
doodad = {},
destructable = {},
misc = {},
txt = {},
}
for type, list in pairs(slk.mustuse) do
for _, id in ipairs(list) do
Expand Down
2 changes: 1 addition & 1 deletion script/core/slk/backend_extra_txt.lua
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ end

local function make_marked_ids(slk)
local marked = {}
local type_list = {'ability', 'buff', 'unit', 'item', 'upgrade', 'doodad'}
local type_list = {'ability', 'buff', 'unit', 'item', 'upgrade', 'doodad', 'txt'}
for _, type in ipairs(type_list) do
if slk[type] then
for name, obj in pairs(slk[type]) do
Expand Down
3 changes: 3 additions & 0 deletions script/core/slk/backend_mark.lua
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ local mustuse = {
'QuestIndicatorTimeout',
'SelectionCircle',
'HERO',
},
txt = {
'anei',
}
}

Expand Down

0 comments on commit 7fa3537

Please sign in to comment.