Skip to content

Commit

Permalink
Name loc_vars
Browse files Browse the repository at this point in the history
  • Loading branch information
Aurelius7309 committed Jan 11, 2025
1 parent ae09129 commit 76a26e0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions src/game_object.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1062,9 +1062,9 @@ Set `prefix_config.key = false` on your object instead.]]):format(obj.key), obj.
target.text_colour = res.text_colour
end
if desc_nodes == full_UI_table.main and not full_UI_table.name then
full_UI_table.name = self.set == 'Enhanced' and 'temp_value' or localize { type = 'name', set = target.set, key = target.key, nodes = full_UI_table.name }
full_UI_table.name = self.set == 'Enhanced' and 'temp_value' or localize { type = 'name', set = target.set, key = res.name_key or target.key, nodes = full_UI_table.name, vars = res.name_vars or target.vars or {} }
elseif desc_nodes ~= full_UI_table.main and not desc_nodes.name and self.set ~= 'Enhanced' then
desc_nodes.name = localize{type = 'name_text', key = target.key, set = target.set }
desc_nodes.name = localize{type = 'name_text', key = res.name_key or target.key, set = target.set }
end
if specific_vars and specific_vars.debuffed and not res.replace_debuff then
target = { type = 'other', key = 'debuffed_' ..
Expand Down Expand Up @@ -1274,9 +1274,9 @@ Set `prefix_config.key = false` on your object instead.]]):format(obj.key), obj.
target.text_colour = res.text_colour
end
if desc_nodes == full_UI_table.main and not full_UI_table.name then
full_UI_table.name = localize{type = 'name', set = 'Other', key = target.key, nodes = full_UI_table.name}
full_UI_table.name = localize{type = 'name', set = 'Other', key = res.name_key or target.key, nodes = full_UI_table.name, vars = res.name_vars or target.vars or {}}
elseif desc_nodes ~= full_UI_table.main and not desc_nodes.name then
desc_nodes.name = localize{type = 'name_text', key = target.key, set = 'Other' }
desc_nodes.name = localize{type = 'name_text', key = res.name_key or target.key, set = 'Other' }
end
localize(target)
desc_nodes.background_colour = res.background_colour
Expand Down Expand Up @@ -2517,9 +2517,9 @@ Set `prefix_config.key = false` on your object instead.]]):format(obj.key), obj.
target.text_colour = res.text_colour
end
if desc_nodes == full_UI_table.main and not full_UI_table.name then
full_UI_table.name = localize { type = 'name', set = target.set, key = target.key, nodes = full_UI_table.name }
full_UI_table.name = localize { type = 'name', set = target.set, key = res.name_key or target.key, nodes = full_UI_table.name, vars = res.name_vars or res.vars or {} }
elseif desc_nodes ~= full_UI_table.main and not desc_nodes.name then
desc_nodes.name = localize{type = 'name_text', key = target.key, set = target.set }
desc_nodes.name = localize{type = 'name_text', key = res.name_key or target.key, set = target.set }
end
if res.main_start then
desc_nodes[#desc_nodes + 1] = res.main_start
Expand Down
2 changes: 1 addition & 1 deletion version.lua
Original file line number Diff line number Diff line change
@@ -1 +1 @@
return "1.0.0~ALPHA-1311h-STEAMODDED"
return "1.0.0~ALPHA-1311i-STEAMODDED"

0 comments on commit 76a26e0

Please sign in to comment.