Compare commits

...
2 Commits
Author SHA1 Message Date
Wofsauge 2663deafa0 chore: release 4.91
Check Localization / Check Localization process (push) Canceled after 0s
2025-01-25 16:29:26 +01:00
Wofsauge b10a18c2b6 Fixed error caused by entities that dont have an icon assigned to them
closes #796
2025-01-25 15:59:59 +01:00
3 changed files with 9 additions and 3 deletions

No files matched your search

+6
View File
@@ -1118,9 +1118,11 @@ function EID:createItemIconObject(str)
if Type == 1 then return EID:getIcon("Player" .. Sub) if Type == 1 then return EID:getIcon("Player" .. Sub)
elseif Type == 5 then elseif Type == 5 then
local iconName = EID:GetIconNameByVariant(Var) local iconName = EID:GetIconNameByVariant(Var)
if iconName then
return EID:createItemIconObject(iconName .. Sub) return EID:createItemIconObject(iconName .. Sub)
end end
end end
end
---@diagnostic disable ---@diagnostic disable
local collID,numReplace = string.gsub(str, "Collectible", "") local collID,numReplace = string.gsub(str, "Collectible", "")
@@ -2558,7 +2560,9 @@ function EID:getObjectIcon(descObj)
if descObj.ObjType == 5 then if descObj.ObjType == 5 then
local iconName = EID:GetIconNameByVariant(descObj.ObjVariant) local iconName = EID:GetIconNameByVariant(descObj.ObjVariant)
if iconName then
return EID:createItemIconObject(iconName .. descObj.ObjSubType) return EID:createItemIconObject(iconName .. descObj.ObjSubType)
end
-- Handle Dice Room Floor -- Handle Dice Room Floor
elseif descObj.ObjType == 1000 and descObj.ObjVariant == 76 then elseif descObj.ObjType == 1000 and descObj.ObjVariant == 76 then
---@diagnostic disable-next-line: return-type-mismatch ---@diagnostic disable-next-line: return-type-mismatch
@@ -2737,7 +2741,9 @@ function EID:GetIconStringByDescriptionObject(descObj)
return "{{Player" .. (subType or "") .. "}}" return "{{Player" .. (subType or "") .. "}}"
elseif descObj.ObjType == 5 then elseif descObj.ObjType == 5 then
local iconName = EID:GetIconNameByVariant(descObj.ObjVariant) local iconName = EID:GetIconNameByVariant(descObj.ObjVariant)
if iconName then
return "{{" .. iconName .. subType .. "}}" return "{{" .. iconName .. subType .. "}}"
end
elseif descObj.ObjType == 1000 and descObj.ObjVariant == 76 then elseif descObj.ObjType == 1000 and descObj.ObjVariant == 76 then
return "{{DiceFace" .. subType .. "}}" return "{{DiceFace" .. subType .. "}}"
end end
+2 -2
View File
@@ -12,8 +12,8 @@ EID.isRepentance = REPENTANCE or EID.isRepentancePlus -- REPENTANCE variable can
require("eid_config") require("eid_config")
EID.Config = EID.UserConfig EID.Config = EID.UserConfig
EID.Config.Version = "3.2" -- note: changing this will reset everyone's settings to default! EID.Config.Version = "3.2" -- note: changing this will reset everyone's settings to default!
EID.ModVersion = 4.90 EID.ModVersion = 4.91
EID.ModVersionCommit = "830d7b7" EID.ModVersionCommit = "b10a18c"
EID.DefaultConfig.Version = EID.Config.Version EID.DefaultConfig.Version = EID.Config.Version
EID.isHidden = false EID.isHidden = false
EID.player = nil -- The primary Player Entity of Player 1 EID.player = nil -- The primary Player Entity of Player 1
+1 -1
View File
@@ -56,7 +56,7 @@ There are multiple Versions of the mod, depending on which DLCs you have install
[img]https://i.imgur.com/jrdGbna.png[/img] [img]https://i.imgur.com/jrdGbna.png[/img]
[url=https://github.com/wofsauge/External-Item-Descriptions/blob/master/CREDITS.md]Check out the credits here[/url] [url=https://github.com/wofsauge/External-Item-Descriptions/blob/master/CREDITS.md]Check out the credits here[/url]
</description> </description>
<version>4.90</version> <version>4.91</version>
<visibility>Public</visibility> <visibility>Public</visibility>
<tag id="Lua"/> <tag id="Lua"/>
<tag id="Items"/> <tag id="Items"/>