Skip to content

Commit

Permalink
ConsumableType loc_txt is actually optional
Browse files Browse the repository at this point in the history
  • Loading branch information
GauntletGames-2086 committed Dec 31, 2024
1 parent 7ff6474 commit d73f6ab
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/game_object.lua
Original file line number Diff line number Diff line change
Expand Up @@ -939,11 +939,9 @@ Set `prefix_config.key = false` on your object instead.]]):format(obj.key), obj.
end
end,
process_loc_text = function(self)
if not next(self.loc_txt) then return end
SMODS.process_loc_text(G.localization.misc.dictionary, 'k_' .. string.lower(self.key), self.loc_txt, 'name')
SMODS.process_loc_text(G.localization.misc.dictionary, 'b_' .. string.lower(self.key) .. '_cards',
self.loc_txt, 'collection')
-- SMODS.process_loc_text(G.localization.misc.labels, string.lower(self.key), self.loc_txt, 'label') -- redundant
SMODS.process_loc_text(G.localization.descriptions.Other, 'undiscovered_' .. string.lower(self.key),
self.loc_txt, 'undiscovered')
end,
Expand Down

0 comments on commit d73f6ab

Please sign in to comment.