Config stuff

This commit is contained in:
kittenchilly committed 2021-12-15 17:47:59 -06:00
1 parent 52cbc5781f
commit fd71cb2643
3 files changed
+36 -1

No files matched your search

+4 -1
View File
@@ -491,7 +491,10 @@ function EID:hasDescription(entity)
isAllowed = isAllowed or (entity.Variant == PickupVariant.PICKUP_PILL and EID.Config["DisplayPillInfo"]) isAllowed = isAllowed or (entity.Variant == PickupVariant.PICKUP_PILL and EID.Config["DisplayPillInfo"])
return isAllowed and entity.SubType > 0 return isAllowed and entity.SubType > 0
end 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 return isAllowed
end end
+8
View File
@@ -195,6 +195,13 @@ EID.UserConfig = {
-- Default = true -- Default = true
["DisplayDiceInfo"] = true, ["DisplayDiceInfo"] = true,
--------Crane Game---------
-- REPENTANCE ONLY!!!
-- Toggle Display for items inside of a Crane Game
-- Default = true
["DisplayCraneInfo"] = true,
---------Bag of Crafting----------- ---------Bag of Crafting-----------
-- REPENTANCE ONLY!!! -- REPENTANCE ONLY!!!
@@ -355,6 +362,7 @@ EID.DefaultConfig = {
["DisplaySacrificeInfo"] = true, ["DisplaySacrificeInfo"] = true,
["DisplayDiceInfo"] = true, ["DisplayDiceInfo"] = true,
["DisplayBagOfCrafting"] = "always", ["DisplayBagOfCrafting"] = "always",
["DisplayCraneInfo"] = true,
["BagOfCraftingResults"] = 7, ["BagOfCraftingResults"] = 7,
["BagOfCraftingCombinationMax"] = 12, ["BagOfCraftingCombinationMax"] = 12,
["BagOfCraftingRandomResults"] = 400, ["BagOfCraftingRandomResults"] = 400,
+24
View File
@@ -619,9 +619,33 @@ if MCMLoaded then
} }
) )
local diceSteps = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11} local diceSteps = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11}
if REPENTANCE then 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") MCM.AddSpace("EID", "Display")
-- Spindown Dice results -- Spindown Dice results