diff --git a/eid_data.lua b/eid_data.lua index dfc85c1d..f5d4043e 100644 --- a/eid_data.lua +++ b/eid_data.lua @@ -135,7 +135,7 @@ EID.InlineIcons = { ["RoomLBottomLeft"] = {"roomshape", 10, 10, 10}, ["RoomLBottomRight"] = {"roomshape", 11, 10, 10}, -- Transformation Icons - ["CustomTransformation"] = {"TransformationCustom", 0, 16, 16, 0, -1, EID.IconSprite}, + ["CustomTransformation"] = {"TransformationCustom", 0, 16, 16, -5, -1, EID.IconSprite}, ["Guppy"] = {"Transformation1", 0, 16, 16, 0, -1, EID.IconSprite}, ["FunGuy"] = {"Transformation2", 0, 16, 16, 0, -1, EID.IconSprite}, ["LordoftheFlies"] = {"Transformation3", 0, 16, 16, 0, -1, EID.IconSprite}, diff --git a/eid_modifiers.lua b/eid_modifiers.lua index ed627ffa..670a5b39 100644 --- a/eid_modifiers.lua +++ b/eid_modifiers.lua @@ -7,12 +7,14 @@ local game = Game() end local function BirthrightCallback(descObj) descObj.Description = "" + local describedPlayerTypes = {} for i = 0,game:GetNumPlayers() - 1 do local player = Isaac.GetPlayer(i) - if not player:IsSubPlayer() and player:GetMainTwin( ):GetPlayerType() == player:GetPlayerType() then - local playerID = player:GetPlayerType() + 1 + local playerID = player:GetPlayerType() + if not player:IsSubPlayer() and player:GetMainTwin( ):GetPlayerType() == playerID and not describedPlayerTypes[playerID] then + describedPlayerTypes[playerID] = true local translatedDesc = EID.descriptions[EID.Config["Language"]]["birthright"] - local birthrightDesc = (translatedDesc and translatedDesc[playerID]) or EID.descriptions["en_us"]["birthright"][playerID] or nil + local birthrightDesc = (translatedDesc and translatedDesc[playerID+1]) or EID.descriptions["en_us"]["birthright"][playerID+1] or nil if birthrightDesc ~=nil then local playerName = birthrightDesc[1] or player:GetName() descObj.Description = descObj.Description.."{{CustomTransformation}} {{ColorGray}}"..playerName.."{{CR}}#"..birthrightDesc[3].."#"