Config stuff
This commit is contained in:
1 parent
52cbc5781f
commit
fd71cb2643
3 files changed
+36
-1
No files matched your search
+4
-1
@@ -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
|
||||
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user