Moved 'ItemPoolType' data to 'descriptionObj' (#834)

* remove last item pool function (for now)

* moved item pool data to DescriptionObj

+ restored last item pool function
This commit is contained in:
리셰 authored and GitHub committed 2025-05-01 18:35:31 +02:00
1 parent ea0c9b0209
commit b8523ed630
2 files changed
+22 -4

No files matched your search

+4 -4
View File
@@ -651,13 +651,13 @@ function EID:printDescription(desc, cachedID)
curName = curName.." - {{Quality"..desc.Quality.."}}"
end
-- Display Last Pool for Collectible for full reroll effects (icon)
if EID.isRepentance and EID.Config["ShowItemPoolIcon"] and (desc.ObjType == 5 and desc.ObjVariant == 100) then
if desc.ItemPoolType and EID.Config["ShowItemPoolIcon"] then
local itemConfig = EID.itemConfig:GetCollectible(desc.ObjSubType)
if itemConfig:IsCollectible() and not itemConfig:HasTags(ItemConfig.TAG_QUEST) then
if not EID.Config["ShowQuality"] then
curName = curName.." - "
end
curName = curName..""..(EID.ItemPoolTypeToMarkup[game:GetItemPool():GetLastPool()] or "{{ItemPoolTreasure}}")
curName = curName..""..(EID.ItemPoolTypeToMarkup[desc.ItemPoolType] or "{{ItemPoolTreasure}}")
end
end
-- Display the mod this item is from
@@ -720,10 +720,10 @@ function EID:printDescription(desc, cachedID)
end
end
-- Display Last Pool for Collectible for full reroll effects (name)
if EID.isRepentance and not EID.InsideItemReminder and EID.Config["ShowItemPoolText"] and (desc.ObjType and desc.ObjType == 5 and desc.ObjVariant and desc.ObjVariant == 100) then
if desc.ItemPoolType and not EID.InsideItemReminder and EID.Config["ShowItemPoolText"] then
local itemConfig = EID.itemConfig:GetCollectible(desc.ObjSubType)
if itemConfig:IsCollectible() and not itemConfig:HasTags(ItemConfig.TAG_QUEST) then
local lastPool = game:GetItemPool():GetLastPool()
local lastPool = desc.ItemPoolType
local poolName = ""
local poolDescPrepend = EID:getDescriptionEntry("itemPoolFor")