From 2792b764d7725dac34541a28a15203f8635e8541 Mon Sep 17 00:00:00 2001 From: Wofsauge Date: Wed, 26 May 2021 21:39:46 +0200 Subject: [PATCH] Added option to toggle off item description in the april fools challenge --- eid_config.lua | 4 ++++ main.lua | 2 +- mod_config_menu.lua | 21 +++++++++++++++++++++ 3 files changed, 26 insertions(+), 1 deletion(-) diff --git a/eid_config.lua b/eid_config.lua index 305d1c84..9da8a376 100644 --- a/eid_config.lua +++ b/eid_config.lua @@ -67,6 +67,9 @@ EID.UserConfig = { -- Disable Item informations for the second Treasure room item on alt paths -- Default = true ["DisableOnAltPath"] = true, + -- Disable Item informations on the April fools challenge + -- Default = true + ["DisableOnAprilFoolsChallenge"] = true, ----------ITEM NAMES----------- @@ -204,6 +207,7 @@ EID.DefaultConfig = { ["DisableObstructionOnFlight"] = true, ["DisableOnCurse"] = true, ["DisableOnAltPath"] = true, + ["DisableOnAprilFoolsChallenge"] = true, ["ShowItemName"] = true, ["ShowItemType"] = true, ["ShowItemIcon"] = true, diff --git a/main.lua b/main.lua index 31ee892c..f56c85f9 100644 --- a/main.lua +++ b/main.lua @@ -635,7 +635,7 @@ local function onRender(t) EID:printDescription(descriptionObj) elseif closest.Variant == PickupVariant.PICKUP_COLLECTIBLE then --Handle Collectibles - if (EID:hasCurseBlind() and EID.Config["DisableOnCurse"]) or (closest:GetData()["EID_IsAltChoise"] and EID.Config["DisableOnAltPath"]) then + if (EID:hasCurseBlind() and EID.Config["DisableOnCurse"]) or (closest:GetData()["EID_IsAltChoise"] and EID.Config["DisableOnAltPath"]) or (game.Challenge == Challenge.CHALLENGE_APRILS_FOOL and EID.Config["DisableOnAprilFoolsChallenge"]) then EID:renderQuestionMark() return end diff --git a/mod_config_menu.lua b/mod_config_menu.lua index 6b535a89..e2a11614 100644 --- a/mod_config_menu.lua +++ b/mod_config_menu.lua @@ -134,6 +134,27 @@ if MCMLoaded then end } ) + -- Disable April Fools + MCM.AddSetting( + "EID", + "General", + { + Type = ModConfigMenu.OptionType.BOOLEAN, + CurrentSetting = function() + return EID.Config["DisableOnAprilFoolsChallenge"] + end, + Display = function() + local onOff = "True" + if EID.Config["DisableOnAprilFoolsChallenge"] then + onOff = "False" + end + return 'Show on April Fools Challenge: ' .. onOff + end, + OnChange = function(currentBool) + EID.Config["DisableOnAprilFoolsChallenge"] = currentBool + end + } + ) -- Disable Alt Item option MCM.AddSetting( "EID",