Added modular desc ignore list for languagepacks (e.g. Korean)
This commit is contained in:
1 parent
e913ae13d0
commit
04d07847ee
20 files changed
+67
-2
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user