Merge pull request #441 from kohashiwakaba/master
Fixed modded cards from EID BoC being considered as runes
This commit is contained in:
2 files changed
+12
-1
No files matched your search
+11
@@ -995,6 +995,17 @@ function EID:PlayersHaveTrinket(trinketID)
|
|||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- Checks if someone playing as certain character, for modifiers
|
||||||
|
function EID:PlayersHaveCharacter(playerType)
|
||||||
|
for i = 0, game:GetNumPlayers() - 1 do
|
||||||
|
local player = Isaac.GetPlayer(i)
|
||||||
|
if player:GetPlayerType() == playerType then
|
||||||
|
return true, player
|
||||||
|
end
|
||||||
|
end
|
||||||
|
return false
|
||||||
|
end
|
||||||
|
|
||||||
-- Obtains information about glitched items from the ItemConfig (hearts added on pickup, cacheflags affected), returns string of info
|
-- Obtains information about glitched items from the ItemConfig (hearts added on pickup, cacheflags affected), returns string of info
|
||||||
local itemConfigItemAttributes = { "AddMaxHearts", "AddHearts", "AddSoulHearts", "AddBlackHearts", "AddBombs", "AddCoins", "AddKeys", "CacheFlags" }
|
local itemConfigItemAttributes = { "AddMaxHearts", "AddHearts", "AddSoulHearts", "AddBlackHearts", "AddBombs", "AddCoins", "AddKeys", "CacheFlags" }
|
||||||
function EID:CheckGlitchedItemConfig(id)
|
function EID:CheckGlitchedItemConfig(id)
|
||||||
|
|||||||
@@ -238,7 +238,7 @@ function EID:getBagOfCraftingID(Variant, SubType)
|
|||||||
elseif Variant == 300 then
|
elseif Variant == 300 then
|
||||||
if SubType == 0 then -- player:GetCard() returned 0
|
if SubType == 0 then -- player:GetCard() returned 0
|
||||||
return nil
|
return nil
|
||||||
elseif SubType > 80 or (SubType >= 32 and SubType <= 41) or SubType == 55 then -- runes
|
elseif EID.runeIDs[SubType] then -- runes
|
||||||
return {23}
|
return {23}
|
||||||
else -- cards
|
else -- cards
|
||||||
return {21}
|
return {21}
|
||||||
|
|||||||
Reference in new issue
Block a user