From 91e80b268a7d0ab3e0d2d6df2fff030e72402a0b Mon Sep 17 00:00:00 2001 From: Dugy Date: Wed, 29 May 2024 10:31:58 +0200 Subject: [PATCH] Make unknown statuses added by items not show --- lua/items.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lua/items.lua b/lua/items.lua index 05f5bf3e..182d5d8d 100644 --- a/lua/items.lua +++ b/lua/items.lua @@ -927,7 +927,10 @@ loti.item.describe_item = function(number, sort, set_items) elseif effect.set == "neutral" then line = "" .. _"Sets alignment to neutral" .. "" 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 = "" .. _"Immune to Poison" .. "" elseif part == "unslowable" then line = "" .. _"Immune to Slow" .. "" elseif part == "undrainable" then line = "" .. _"Immune to Drain" .. ""