Added "EID_Hide" Data to prevent entities from showing descriptions entirely
This commit is contained in:
1 parent
f3860a2022
commit
091b29878c
1 file changed
+9
-1
@@ -1031,10 +1031,15 @@ function EID:hasDescription(entity)
|
|||||||
local isAllowed = false
|
local isAllowed = false
|
||||||
local entityString = entity.Type .. "." .. entity.Variant .. "." .. entity.SubType
|
local entityString = entity.Type .. "." .. entity.Variant .. "." .. entity.SubType
|
||||||
|
|
||||||
|
-- dont describe entity when EID_Hide data is set
|
||||||
|
if EID:getEntityData(entity, "EID_Hide") then
|
||||||
|
return false
|
||||||
|
end
|
||||||
|
|
||||||
if EID.IgnoredEntities[entity.Type .. "." .. entity.Variant] or EID.IgnoredEntities[entityString] then return false end
|
if EID.IgnoredEntities[entity.Type .. "." .. entity.Variant] or EID.IgnoredEntities[entityString] then return false end
|
||||||
|
|
||||||
if EID.Config["EnableEntityDescriptions"] and EID:getTableName(entity.Type, entity.Variant, entity.SubType) == "custom" then
|
if EID.Config["EnableEntityDescriptions"] and EID:getTableName(entity.Type, entity.Variant, entity.SubType) == "custom" then
|
||||||
isAllowed = __eidEntityDescriptions[entityString] ~= nil
|
isAllowed = isAllowed or __eidEntityDescriptions[entityString] ~= nil
|
||||||
isAllowed = isAllowed or EID:getDescriptionData(entity.Type, entity.Variant, entity.SubType) ~= nil
|
isAllowed = isAllowed or EID:getDescriptionData(entity.Type, entity.Variant, entity.SubType) ~= nil
|
||||||
isAllowed = isAllowed or EID:getEntityData(entity, "EID_Description") ~= nil
|
isAllowed = isAllowed or EID:getEntityData(entity, "EID_Description") ~= nil
|
||||||
end
|
end
|
||||||
@@ -1061,12 +1066,15 @@ function EID:hasDescription(entity)
|
|||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
if entity.Type == 1000 then
|
if entity.Type == 1000 then
|
||||||
|
-- Handle Card Reading Portals
|
||||||
if entity.Variant == 161 then
|
if entity.Variant == 161 then
|
||||||
if entity.SubType <= 2 or (EID.isRepentancePlus and entity.SubType == 3) then
|
if entity.SubType <= 2 or (EID.isRepentancePlus and entity.SubType == 3) then
|
||||||
isAllowed = true
|
isAllowed = true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
-- Dice floor information
|
||||||
if entity.Variant == EffectVariant.DICE_FLOOR and EID.Config["DisplayDiceInfo"] then
|
if entity.Variant == EffectVariant.DICE_FLOOR and EID.Config["DisplayDiceInfo"] then
|
||||||
isAllowed = true
|
isAllowed = true
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in new issue
Block a user