Added option to toggle off item description in the april fools challenge
This commit is contained in:
1 parent
ef48ea6880
commit
2792b764d7
3 files changed
+26
-1
No files matched your search
@@ -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,
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in new issue
Block a user