Added modular desc ignore list for languagepacks (e.g. Korean)

This commit is contained in:
Wofsauge committed 2026-02-01 21:58:11 +01:00
1 parent e913ae13d0
commit 04d07847ee
20 files changed
+67 -2

No files matched your search

+2 -1
View File
@@ -641,7 +641,8 @@ function EID:getDescriptionObj(Type, Variant, SubType, entity, checkModifiers)
description.Entity = entity or nil
local generatedModularDesc = false
if EID.FullyAutomatedDescriptions[description.fullItemString] then
local hasIgnoreModular = EID.descriptions[EID:getLanguage()].IgnoreFullyAutomatedDescriptions and EID.descriptions[EID:getLanguage()].IgnoreFullyAutomatedDescriptions[description.fullItemString]
if EID.FullyAutomatedDescriptions[description.fullItemString] and not hasIgnoreModular then
local success, modularDescription = pcall(EID.GenerateDescription, nil, description)
if success and modularDescription and modularDescription ~= "" then
description.Description = modularDescription