Skip to content

Commit

Permalink
show genereric description in infotext when strict metadata is false
Browse files Browse the repository at this point in the history
  • Loading branch information
fluxionary committed Oct 18, 2022
1 parent 22c0128 commit e5a691f
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion api/shop_class.lua
Expand Up @@ -601,7 +601,14 @@ function shop_class:get_info_line(i)

local give = self:get_give_stack(i)

local description = get_safe_short_description(give):gsub("%%", "%%%%")
local description

if self:is_strict_meta() then
description = get_safe_short_description(give):gsub("%%", "%%%%")

else
description = get_safe_short_description(give:get_name()):gsub("%%", "%%%%")
end

local count = give:get_count()
if count > 1 then
Expand Down

0 comments on commit e5a691f

Please sign in to comment.