Implemented seperate Birthright descriptions and fixed some bugs in the API

This commit is contained in:
Wofsauge committed 2021-04-15 19:59:06 +02:00
1 parent 2d391cdb1b
commit d89696eae3
6 files changed
+68 -67

No files matched your search

+6 -1
View File
@@ -382,7 +382,12 @@ local function onRender(t)
EID:renderQuestionMark()
return
end
EID:printDescription(EID:getDescriptionObj(closest.Type, closest.Variant, closest.SubType))
local descriptionObj = EID:getDescriptionObj(closest.Type, closest.Variant, closest.SubType)
-- Handle Birthright Character name display
if closest.SubType == 619 then
descriptionObj.Description = "{{CustomTransformation}} {{ColorGray}}"..player:GetName().."{{CR}}#"..descriptionObj.Description
end
EID:printDescription(descriptionObj)
elseif closest.Variant == PickupVariant.PICKUP_TAROTCARD then
--Handle Cards & Runes
if closest:ToPickup():IsShopItem() and not EID.Config["DisplayCardInfoShop"] then