From 945ebf1dae9c98e58a296e9788a2d386a98ebc9f Mon Sep 17 00:00:00 2001 From: Ryan Date: Thu, 10 Jun 2021 10:25:24 -0500 Subject: [PATCH 1/3] Add files via upload --- eid_bagOfCrafting.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/eid_bagOfCrafting.lua b/eid_bagOfCrafting.lua index ad2adde1..0d78bcac 100644 --- a/eid_bagOfCrafting.lua +++ b/eid_bagOfCrafting.lua @@ -451,8 +451,11 @@ local function trackBagHolding() local animationName = EID.player:GetSprite():GetAnimation() if isCardHold and string.match(animationName, "PickupWalk") and #EID.BagItems>=8 then holdCounter = holdCounter + 1 + if holdCounter < 30 then + EID.icount = EID.player:GetCollectibleCount() + end else - if isCardHold and holdCounter >= 30 and string.match(animationName, "Walk") and not string.match(animationName, "Pickup") then + if isCardHold and holdCounter >= 30 and (string.match(animationName, "Walk") and not string.match(animationName, "Pickup") or (EID.player:GetCollectibleCount() ~= EID.icount)) then EID.BagItems = {} else holdCounter = 0 @@ -487,6 +490,7 @@ EID.bagOfCraftingOffset = 0 EID.bagOfCraftingCurPickupCount = -1 EID.bagOfCraftingLastQuery = {} EID.BagItems = {} +EID.icount = 0 local isControlsBlocked = false From d79e79a4af55f99704eab45cdfeb3d2c6a5f19f9 Mon Sep 17 00:00:00 2001 From: Ryan Date: Thu, 10 Jun 2021 23:38:40 -0500 Subject: [PATCH 2/3] Update eid_bagOfCrafting.lua Blended heart support --- eid_bagOfCrafting.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/eid_bagOfCrafting.lua b/eid_bagOfCrafting.lua index 0d78bcac..71742c60 100644 --- a/eid_bagOfCrafting.lua +++ b/eid_bagOfCrafting.lua @@ -43,6 +43,7 @@ local pickupIDLookup = { ["10.7"] = {5}, -- gold heart ["10.8"] = {2}, -- half soul heart ["10.9"] = {1}, -- scared red heart + ["10.10"] = {1, 2}, -- blended heart ["10.11"] = {6}, -- Bone heart ["10.12"] = {7}, -- Rotten heart ["20.1"] = {8}, -- Penny @@ -635,4 +636,4 @@ Isaac.DebugString("Calculating: {1, 1, 1, 1, 1, 1, 1, 2}") Isaac.DebugString(EID:calculateBagOfCrafting({1, 1, 1, 1, 1, 1, 1, 2})) Isaac.DebugString("Calculating: {1, 1, 1, 1, 1, 1, 1, 3}") Isaac.DebugString(EID:calculateBagOfCrafting({1, 1, 1, 1, 1, 1, 1, 3})) -]]-- \ No newline at end of file +]]-- From 392c34f46ac7d3fb9654b529d5129a989a2df1a8 Mon Sep 17 00:00:00 2001 From: Ryan Date: Thu, 10 Jun 2021 23:47:06 -0500 Subject: [PATCH 3/3] Update eid_bagOfCrafting.lua