diff --git a/eid_api.lua b/eid_api.lua index c7f704da..4a0b5c5c 100644 --- a/eid_api.lua +++ b/eid_api.lua @@ -491,7 +491,10 @@ function EID:hasDescription(entity) isAllowed = isAllowed or (entity.Variant == PickupVariant.PICKUP_PILL and EID.Config["DisplayPillInfo"]) return isAllowed and entity.SubType > 0 end - isAllowed = isAllowed or (entity.Type == 1000 and entity.Variant == EffectVariant.DICE_FLOOR and EID.Config["DisplayDiceInfo"]) or (entity.Type == 6 and entity.Variant == 16 and (not entity:GetSprite():IsPlaying("Broken") and not entity:GetSprite():IsPlaying("Prize"))) + if entity.Type == 6 and entity.Variant == 16 and EID.Config["DisplayCraneInfo"] and REPENTANCE then + isAllowed = not entity:GetSprite():IsPlaying("Broken") and not entity:GetSprite():IsPlaying("Prize") + end + isAllowed = isAllowed or (entity.Type == 1000 and entity.Variant == EffectVariant.DICE_FLOOR and EID.Config["DisplayDiceInfo"]) return isAllowed end diff --git a/eid_config.lua b/eid_config.lua index 280cd321..4ccc7b68 100644 --- a/eid_config.lua +++ b/eid_config.lua @@ -195,6 +195,13 @@ EID.UserConfig = { -- Default = true ["DisplayDiceInfo"] = true, + --------Crane Game--------- + -- REPENTANCE ONLY!!! + + -- Toggle Display for items inside of a Crane Game + -- Default = true + ["DisplayCraneInfo"] = true, + ---------Bag of Crafting----------- -- REPENTANCE ONLY!!! @@ -355,6 +362,7 @@ EID.DefaultConfig = { ["DisplaySacrificeInfo"] = true, ["DisplayDiceInfo"] = true, ["DisplayBagOfCrafting"] = "always", + ["DisplayCraneInfo"] = true, ["BagOfCraftingResults"] = 7, ["BagOfCraftingCombinationMax"] = 12, ["BagOfCraftingRandomResults"] = 400, diff --git a/mod_config_menu.lua b/mod_config_menu.lua index a1f6c421..7c3c619c 100644 --- a/mod_config_menu.lua +++ b/mod_config_menu.lua @@ -619,9 +619,33 @@ if MCMLoaded then } ) + + local diceSteps = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11} if REPENTANCE then + --------Crane Game--------- + MCM.AddSetting( + "EID", + "Display", + { + Type = ModConfigMenu.OptionType.BOOLEAN, + CurrentSetting = function() + return EID.Config["DisplayCraneInfo"] + end, + Display = function() + local onOff = "False" + if EID.Config["DisplayCraneInfo"] then + onOff = "True" + end + return "Crane Game Infos: " .. onOff + end, + OnChange = function(currentBool) + EID.Config["DisplayCraneInfo"] = currentBool + end + } + ) + MCM.AddSpace("EID", "Display") -- Spindown Dice results