Skip to content

Commit

Permalink
Make unknown statuses added by items not show
Browse files Browse the repository at this point in the history
  • Loading branch information
Dugy committed May 29, 2024
1 parent fb72071 commit 91e80b2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lua/items.lua
Original file line number Diff line number Diff line change
Expand Up @@ -927,7 +927,10 @@ loti.item.describe_item = function(number, sort, set_items)
elseif effect.set == "neutral" then line = "<span color='yellow'>" .. _"Sets alignment to neutral" .. "</span>" end
elseif effect.apply_to == "status" then
for part in string.gmatch(effect.add, '([^,]+)') do
if line then table.insert(desc, line) end
if line then
table.insert(desc, line)
line = nil
end
if part == "unpoisonable" then line = "<span color='yellow'>" .. _"Immune to Poison" .. "</span>"
elseif part == "unslowable" then line = "<span color='yellow'>" .. _"Immune to Slow" .. "</span>"
elseif part == "undrainable" then line = "<span color='yellow'>" .. _"Immune to Drain" .. "</span>"
Expand Down

0 comments on commit 91e80b2

Please sign in to comment.