Renamed BoC Display mode config for global reset. Renamed "No Recipes" setting to "Itempool Percentages"

This commit is contained in:
Wofsauge committed 2022-11-01 23:39:58 +01:00
1 parent 6c1e83abed
commit 610dfe891d
10 files changed
+30 -30

No files matched your search

+1 -1
View File
@@ -1107,7 +1107,7 @@ EID.descriptions[languageCode].AchievementWarningText = "Achievementy jsou zaká
EID.descriptions[languageCode].OldGameVersionWarningText = "Tvoje verze Repentance není aktuální!#Oficiálně je podporována pouze ta nejnovější verze#(Toto varování lze vypnout v konfiguraci)" EID.descriptions[languageCode].OldGameVersionWarningText = "Tvoje verze Repentance není aktuální!#Oficiálně je podporována pouze ta nejnovější verze#(Toto varování lze vypnout v konfiguraci)"
EID.descriptions[languageCode].ModdedRecipesWarningText = "Modované předměty by mohly způsobit nepřesnost výpočtu receptu na výrobu!#Použij režim zobrazení Žádné recepty (No Recipes) nebo vypni zobrazení u Craftovacího Pytlíku, pokud jsou tvé recepty nesprávné#(Toto varování lze deaktivovat v konfiguraci)" EID.descriptions[languageCode].ModdedRecipesWarningText = "Modované předměty by mohly způsobit nepřesnost výpočtu receptu na výrobu!#Použij režim zobrazení Žádné recepty (Itempool Percentages) nebo vypni zobrazení u Craftovacího Pytlíku, pokud jsou tvé recepty nesprávné#(Toto varování lze deaktivovat v konfiguraci)"
-- If Debug enabled, add overwrite tables to the languagepack in order for the language completion script to be able to compare them -- If Debug enabled, add overwrite tables to the languagepack in order for the language completion script to be able to compare them
+1 -1
View File
@@ -1094,7 +1094,7 @@ EID.descriptions[languageCode].AchievementWarningText = "Achievements are disabl
EID.descriptions[languageCode].OldGameVersionWarningText = "Your version of Repentance is not up-to-date!#Only the newest version is officially supported#(This warning can be disabled in the config)" EID.descriptions[languageCode].OldGameVersionWarningText = "Your version of Repentance is not up-to-date!#Only the newest version is officially supported#(This warning can be disabled in the config)"
EID.descriptions[languageCode].ModdedRecipesWarningText = "Modded items could make the crafting recipe calculation inaccurate!#Use the No Recipes display mode or turn off the Bag of Crafting display if your recipes are incorrect#(This warning can be disabled in the config)" EID.descriptions[languageCode].ModdedRecipesWarningText = "Modded items could make the crafting recipe calculation inaccurate!#Use the Itempool Percentages display mode or turn off the Bag of Crafting display if your recipes are incorrect#(This warning can be disabled in the config)"
-- If Debug enabled, add overwrite tables to the languagepack in order for the language completion script to be able to compare them -- If Debug enabled, add overwrite tables to the languagepack in order for the language completion script to be able to compare them
+1 -1
View File
@@ -1098,7 +1098,7 @@ EID.descriptions[languageCode].AchievementWarningText = "実績無効!#実績
EID.descriptions[languageCode].OldGameVersionWarningText = "ゲームがアップデート されていません#最新バージョンのみが サポートされています#この警告は設定で無効に できます" EID.descriptions[languageCode].OldGameVersionWarningText = "ゲームがアップデート されていません#最新バージョンのみが サポートされています#この警告は設定で無効に できます"
EID.descriptions[languageCode].ModdedRecipesWarningText = "MODのアイテムが原因で クラフトレシピの表示が 不正確になる可能性が あります#その場合、No Recipes モードか、非表示にして ください#この警告は設定で無効に できます" EID.descriptions[languageCode].ModdedRecipesWarningText = "MODのアイテムが原因で クラフトレシピの表示が 不正確になる可能性が あります#その場合、Itempool Percentages モードか、非表示にして ください#この警告は設定で無効に できます"
-- If Debug enabled, add overwrite tables to the languagepack in order for the language completion script to be able to compare them -- If Debug enabled, add overwrite tables to the languagepack in order for the language completion script to be able to compare them
+1 -1
View File
@@ -1084,7 +1084,7 @@ EID.descriptions[languageCode].AchievementWarningText = "Достижения о
EID.descriptions[languageCode].OldGameVersionWarningText = "Ваша версия Repentance не обновлена!#Только самая последняя версия официально поддерживается#(Это предупреждение можно выключить в конфиге)" EID.descriptions[languageCode].OldGameVersionWarningText = "Ваша версия Repentance не обновлена!#Только самая последняя версия официально поддерживается#(Это предупреждение можно выключить в конфиге)"
EID.descriptions[languageCode].ModdedRecipesWarningText = "Предметы из модов могут сделать расчёт крафтов неточным!#Используйте режим отображения \"No Recipes\" или отключите отображение Крафт-Мешка, если ваши рецепты неверны#(Это предупреждение можно выключить в конфиге)" EID.descriptions[languageCode].ModdedRecipesWarningText = "Предметы из модов могут сделать расчёт крафтов неточным!#Используйте режим отображения \"Itempool Percentages\" или отключите отображение Крафт-Мешка, если ваши рецепты неверны#(Это предупреждение можно выключить в конфиге)"
-- If Debug enabled, add overwrite tables to the languagepack in order for the language completion script to be able to compare them -- If Debug enabled, add overwrite tables to the languagepack in order for the language completion script to be able to compare them
+1 -1
View File
@@ -1111,7 +1111,7 @@ EID.descriptions[languageCode].AchievementWarningTitle = "{{ColorYellow}}!!! ADV
EID.descriptions[languageCode].AchievementWarningText = "¡Los logros están deshabilitados!#Para poder progresar en el juego, primero debes vencer a Mamá (Depths II) sin mods habilitados.#(Si ya derrotaste a Mamá, este mensaje es un bug, ignóralo)#(Este aviso puede ser desactivado en la configuración)" EID.descriptions[languageCode].AchievementWarningText = "¡Los logros están deshabilitados!#Para poder progresar en el juego, primero debes vencer a Mamá (Depths II) sin mods habilitados.#(Si ya derrotaste a Mamá, este mensaje es un bug, ignóralo)#(Este aviso puede ser desactivado en la configuración)"
EID.descriptions[languageCode].OutdatedModWarningText = "¡Un mod sin actualizar está reduciendo la cantidad de objetos! Esto puede causar crasheos, especialmente al entrar al area de la Pieza del cuchillo 2#Por favor, desinstala los mods con el archivo resources/items.xml desactualizado" EID.descriptions[languageCode].OutdatedModWarningText = "¡Un mod sin actualizar está reduciendo la cantidad de objetos! Esto puede causar crasheos, especialmente al entrar al area de la Pieza del cuchillo 2#Por favor, desinstala los mods con el archivo resources/items.xml desactualizado"
EID.descriptions[languageCode].OldGameVersionWarningText = "Tu versión de Repentance no es la más reciente#La versión más reciente es la única con soporte oficial#(Este aviso puede ser desactivado en la configuración)" EID.descriptions[languageCode].OldGameVersionWarningText = "Tu versión de Repentance no es la más reciente#La versión más reciente es la única con soporte oficial#(Este aviso puede ser desactivado en la configuración)"
EID.descriptions[languageCode].ModdedRecipesWarningText = "Los objetos modeados pueden provocar cálculos incorrectos#Usa el modo No Recipes o desactiva el cálculo de la Bolsa de trabajo si es que los cálculos son incorrectos#(Este aviso puede ser desactivado en la configuración)" EID.descriptions[languageCode].ModdedRecipesWarningText = "Los objetos modeados pueden provocar cálculos incorrectos#Usa el modo Itempool Percentages o desactiva el cálculo de la Bolsa de trabajo si es que los cálculos son incorrectos#(Este aviso puede ser desactivado en la configuración)"
-- Warnings end -- Warnings end
-- False PHD modifier -- False PHD modifier
+9 -9
View File
@@ -184,7 +184,7 @@ local componentShifts = {
{0x00000011, 0x0000000F, 0x0000001A} {0x00000011, 0x0000000F, 0x0000001A}
} }
-- The icon each item pool will use in the No Recipes display -- The icon each item pool will use in the "Itempool Percentages" display
local poolToIcon = { [0]="{{TreasureRoom}}",[1]="{{Shop}}",[2]="{{BossRoom}}",[3]="{{DevilRoom}}",[4]="{{AngelRoom}}", local poolToIcon = { [0]="{{TreasureRoom}}",[1]="{{Shop}}",[2]="{{BossRoom}}",[3]="{{DevilRoom}}",[4]="{{AngelRoom}}",
[5]="{{SecretRoom}}",[7]="{{PoopRoomIcon}}",[8]="{{GoldenChestRoomIcon}}",[9]="{{RedChestRoomIcon}}",[12]="{{CursedRoom}}",[26]="{{Planetarium}}" } [5]="{{SecretRoom}}",[7]="{{PoopRoomIcon}}",[8]="{{GoldenChestRoomIcon}}",[9]="{{RedChestRoomIcon}}",[12]="{{CursedRoom}}",[26]="{{Planetarium}}" }
@@ -269,7 +269,7 @@ function EID:getBagOfCraftingID(Variant, SubType)
return nil return nil
end end
-- NO RECIPES MODE: Get percentages of what quality / item pool a given set of 8 ingredients can yield -- "Itempool Percentages" MODE: Get percentages of what quality / item pool a given set of 8 ingredients can yield
function EID:simulateBagOfCrafting(componentsTable) function EID:simulateBagOfCrafting(componentsTable)
local components = componentsTable local components = componentsTable
local compTotalWeight = 0 local compTotalWeight = 0
@@ -751,7 +751,7 @@ local function getHotkeyString()
hotkeyString = hotkeyString .. (hideKey or hideButton) hotkeyString = hotkeyString .. (hideKey or hideButton)
end end
if #EID.BoC.BagItems >= 8 and EID.Config["BagOfCraftingDisplayMode"] ~= "Preview Only" then if #EID.BoC.BagItems >= 8 and EID.Config["BagOfCraftingDisplayRecipesMode"] ~= "Preview Only" then
if previewKey or previewButton then hotkeyString = hotkeyString .. ", " .. previewDesc .. " " end if previewKey or previewButton then hotkeyString = hotkeyString .. ", " .. previewDesc .. " " end
if previewKey and previewButton then if previewKey and previewButton then
hotkeyString = hotkeyString .. previewKey .. "/" .. previewButton hotkeyString = hotkeyString .. previewKey .. "/" .. previewButton
@@ -986,8 +986,8 @@ function EID:handleBagOfCraftingRendering(ignoreRefreshRate)
local bagItems = EID.BoC.BagItemsOverride or EID.BoC.BagItems local bagItems = EID.BoC.BagItemsOverride or EID.BoC.BagItems
-- Display the result of the 8 items in our bag if applicable -- Display the result of the 8 items in our bag if applicable
if (showCraftingResult or EID.Config["BagOfCraftingDisplayMode"] == "Preview Only") and #bagItems == 8 then if (showCraftingResult or EID.Config["BagOfCraftingDisplayRecipesMode"] == "Preview Only") and #bagItems == 8 then
if EID.Config["BagOfCraftingDisplayMode"] ~= "Recipe List" and EID:hasCurseBlind() and EID.Config["DisableOnCurse"] then if EID.Config["BagOfCraftingDisplayRecipesMode"] ~= "Recipe List" and EID:hasCurseBlind() and EID.Config["DisableOnCurse"] then
showCraftingResult = false showCraftingResult = false
return false return false
end end
@@ -1007,7 +1007,7 @@ function EID:handleBagOfCraftingRendering(ignoreRefreshRate)
return true return true
end end
-- if we're in Preview Only mode, then we have nothing more to do -- if we're in Preview Only mode, then we have nothing more to do
if (EID.Config["BagOfCraftingDisplayMode"] == "Preview Only") then return false end if (EID.Config["BagOfCraftingDisplayRecipesMode"] == "Preview Only") then return false end
-- Check what pickups are available in this room -- Check what pickups are available in this room
local curRoomIndex = game:GetLevel():GetCurrentRoomDesc().ListIndex local curRoomIndex = game:GetLevel():GetCurrentRoomDesc().ListIndex
@@ -1068,13 +1068,13 @@ function EID:handleBagOfCraftingRendering(ignoreRefreshRate)
local tableToCraftingIconsFunc = EID.tableToCraftingIconsMerged local tableToCraftingIconsFunc = EID.tableToCraftingIconsMerged
if EID.Config["BagOfCraftingDisplayIcons"] then tableToCraftingIconsFunc = EID.tableToCraftingIconsFull end if EID.Config["BagOfCraftingDisplayIcons"] then tableToCraftingIconsFunc = EID.tableToCraftingIconsFull end
-- Pickups Only / No Recipes Mode display -- Pickups Only / Itempool Percentages Mode display
if EID.Config["BagOfCraftingDisplayMode"] == "Pickups Only" then if EID.Config["BagOfCraftingDisplayRecipesMode"] == "Pickups Only" then
EID:appendToDescription(customDescObj, getHotkeyString()) EID:appendToDescription(customDescObj, getHotkeyString())
EID:appendToDescription(customDescObj, getFloorItemsString(false, roomItems)) EID:appendToDescription(customDescObj, getFloorItemsString(false, roomItems))
EID:addDescriptionToPrint(customDescObj) EID:addDescriptionToPrint(customDescObj)
return true return true
elseif EID.Config["BagOfCraftingDisplayMode"] == "No Recipes" then elseif EID.Config["BagOfCraftingDisplayRecipesMode"] == "Itempool Percentages" then
if not EID.RefreshBagTextbox and prevDesc ~= "" and not EID.OptionChanged then if not EID.RefreshBagTextbox and prevDesc ~= "" and not EID.OptionChanged then
EID:appendToDescription(customDescObj, prevDesc) EID:appendToDescription(customDescObj, prevDesc)
EID:addDescriptionToPrint(customDescObj) EID:addDescriptionToPrint(customDescObj)
+8 -8
View File
@@ -339,14 +339,14 @@ EID.UserConfig = {
-- Default = "always" -- Default = "always"
["DisplayBagOfCrafting"] = "always", ["DisplayBagOfCrafting"] = "always",
-- Display modes for the Bag of Crafting display -- Display modes for the Bag of Crafting display
-- Options: "Recipe List", "Preview Only", "No Recipes", "Pickups Only" -- Options: "Recipe List", "Preview Only", "Itempool Percentages", "Pickups Only"
-- The recipe list is a detailed calculated list of recipes based on what you have available on the floor -- The "Recipe List" is a detailed calculated list of recipes based on what you have available on the floor
-- Preview Only shows the description of the item you can currently craft in your bag -- "Preview Only" shows the description of the item you can currently craft in your bag
-- No Recipes shows percentages of what item you might get from your bag / best option on the floor, for a more intended experience -- "Itempool Percentages" shows percentages of what item you might get from your bag / best option on the floor, for a more intended experience
-- Pickups Only just shows the room/floor pickup count -- "Pickups Only" just shows the room/floor pickup count
-- (No Recipes is recommended if you have modded items) -- ("Itempool Percentages" is recommended if you have modded items)
-- Default = "Recipe List" -- Default = "Recipe List"
["BagOfCraftingDisplayMode"] = "Recipe List", ["BagOfCraftingDisplayRecipesMode"] = "Recipe List",
-- Hide the recipe list when in battle -- Hide the recipe list when in battle
-- Default = true -- Default = true
["BagOfCraftingHideInBattle"] = true, ["BagOfCraftingHideInBattle"] = true,
@@ -545,7 +545,7 @@ EID.DefaultConfig = {
["BagOfCraftingDisplayIcons"] = false, ["BagOfCraftingDisplayIcons"] = false,
["BagOfCraftingHideInBattle"] = true, ["BagOfCraftingHideInBattle"] = true,
["BagOfCraftingShowControls"] = true, ["BagOfCraftingShowControls"] = true,
["BagOfCraftingDisplayMode"] = "Recipe List", ["BagOfCraftingDisplayRecipesMode"] = "Recipe List",
["BagOfCraftingModdedRecipes"] = true, ["BagOfCraftingModdedRecipes"] = true,
["CraftingHideKey"] = Keyboard.KEY_F3, ["CraftingHideKey"] = Keyboard.KEY_F3,
["CraftingHideButton"] = -1, ["CraftingHideButton"] = -1,
+3 -3
View File
@@ -602,8 +602,8 @@ if MCMLoaded then
EID:AddNumberSetting("Crafting", "DisplayBagOfCrafting", "Show Display", 1, #bagDisplays, { displayingTab = "Crafting", indexOf = bagDisplays, infoText = {"Always = Always show Results", "Hold = Show when holding up bag", "Never = Disable Bag of Crafting feature"}}) EID:AddNumberSetting("Crafting", "DisplayBagOfCrafting", "Show Display", 1, #bagDisplays, { displayingTab = "Crafting", indexOf = bagDisplays, infoText = {"Always = Always show Results", "Hold = Show when holding up bag", "Never = Disable Bag of Crafting feature"}})
-- Bag of Crafting Display Mode -- Bag of Crafting Display Mode
local bagDisplayModes = {"Recipe List","Preview Only","No Recipes","Pickups Only"} local bagDisplayModes = {"Recipe List","Preview Only","Itempool Percentages","Pickups Only"}
EID:AddNumberSetting("Crafting", "BagOfCraftingDisplayMode", "Display Mode", 1, #bagDisplayModes, { indexOf = bagDisplayModes, EID:AddNumberSetting("Crafting", "BagOfCraftingDisplayRecipesMode", "Display Mode", 1, #bagDisplayModes, { indexOf = bagDisplayModes,
infoText = {"Toggle showing a list of recipes, an item preview when bag is full, what item pool/quality you might get, or only the floor pickups"}}) infoText = {"Toggle showing a list of recipes, an item preview when bag is full, what item pool/quality you might get, or only the floor pickups"}})
-- Bag of Crafting Hide in Battle -- Bag of Crafting Hide in Battle
@@ -615,7 +615,7 @@ if MCMLoaded then
-- Bag of Crafting 8 icons toggle -- Bag of Crafting 8 icons toggle
EID:AddBooleanSetting("Crafting", "BagOfCraftingDisplayIcons", "Show Recipes/Best Bag as", {onText = "8 Icons", offText = "Groups", EID:AddBooleanSetting("Crafting", "BagOfCraftingDisplayIcons", "Show Recipes/Best Bag as", {onText = "8 Icons", offText = "Groups",
infoText = "Choose if you want recipes (and the Best Quality bag in No Recipes Mode) shown as 8 icons, or as grouped ingredients"}) infoText = "Choose if you want recipes (and the Best Quality bag in Itempool Percentages Mode) shown as 8 icons, or as grouped ingredients"})
-- Modded Recipes toggle -- Modded Recipes toggle
EID:AddBooleanSetting("Crafting", "BagOfCraftingModdedRecipes", "Load Modded Item Recipes (WIP)", { EID:AddBooleanSetting("Crafting", "BagOfCraftingModdedRecipes", "Load Modded Item Recipes (WIP)", {
infoText = {"Enable or disable basic modded item support", "If you have a lot of modded items, it will slow down game launch"}}) infoText = {"Enable or disable basic modded item support", "If you have a lot of modded items, it will slow down game launch"}})
+4 -4
View File
@@ -209,7 +209,7 @@ if MCMLoaded and MCM and MCM.i18n == "Chinese" then
{"Displayed Recipes","配方显示数量"}, {"Displayed Recipes","配方显示数量"},
{"Hide in Battle","战斗时隐藏"}, {"Hide in Battle","战斗时隐藏"},
{"Pickups Only","仅掉落物"}, {"Pickups Only","仅掉落物"},
{"No Recipes","无配方"}, {"Itempool Percentages","物品池百分比"},
{"Show Recipes/Best Bag as","配方/最佳组合显示方式"}, {"Show Recipes/Best Bag as","配方/最佳组合显示方式"},
{"8 Icons","8图标"}, {"8 Icons","8图标"},
{"Groups","分组"}, {"Groups","分组"},
@@ -402,8 +402,8 @@ if MCMLoaded and MCM and MCM.i18n == "Chinese" then
= "切换显示配方列表,袋满时的道具预览,道具池/品质信息,或地面上的掉落物", = "切换显示配方列表,袋满时的道具预览,道具池/品质信息,或地面上的掉落物",
["Hides the Bag of Crafting info when in a fight"] = "在战斗中隐藏合成宝袋信息", ["Hides the Bag of Crafting info when in a fight"] = "在战斗中隐藏合成宝袋信息",
["Show the text for the Hide/Preview and Recipe List hotkeys"] = "显示切换隐藏/预览和配方列表的热键", ["Show the text for the Hide/Preview and Recipe List hotkeys"] = "显示切换隐藏/预览和配方列表的热键",
["Choose if you want recipes (and the Best Quality bag in No Recipes Mode) shown as 8 icons, or as grouped ingredients"] ["Choose if you want recipes (and the Best Quality bag in Itempool Percentages Mode) shown as 8 icons, or as grouped ingredients"]
= "切换配方显示模式(或无配方模式下的最佳品质)为8个图标,或者分组显示", = "切换配方显示模式(或无配方模式下的最佳品质)为8个图标, 或者分组显示",
["Enable or disable basic modded item support"] = "开关基础的模组道具支持", ["Enable or disable basic modded item support"] = "开关基础的模组道具支持",
["If you have a lot of modded items, it will slow down game launch"] = "如果模组道具太多,游戏会变卡", ["If you have a lot of modded items, it will slow down game launch"] = "如果模组道具太多,游戏会变卡",
["(12 = 500 combinations, 14 = 3,000, 16 = 13,000)"] = "(12=500组合,14=3000,16=13000)", ["(12 = 500 combinations, 14 = 3,000, 16 = 13,000)"] = "(12=500组合,14=3000,16=13000)",
@@ -417,7 +417,7 @@ if MCMLoaded and MCM and MCM.i18n == "Chinese" then
= "如果开启,每个配方会显示两行,第一行是名字,第二行是配方", = "如果开启,每个配方会显示两行,第一行是名字,第二行是配方",
["Press this to clear all currently detected items on the floor"] = "按此键清除所有当前房间中已检测的物品", ["Press this to clear all currently detected items on the floor"] = "按此键清除所有当前房间中已检测的物品",
["Press this to clear all currently detected items on the bag"] = "按此键清除所有当前袋中已检测的物品", ["Press this to clear all currently detected items on the bag"] = "按此键清除所有当前袋中已检测的物品",
["Choose if you want recipes (and the Best Quality bag in No Recipes Mode) shown as 8 icons, or as grouped ingredients"] ["Choose if you want recipes (and the Best Quality bag in Itempool Percentages Mode) shown as 8 icons, or as grouped ingredients"]
= "选择使用八个图标还是分组 显示配方(或无配方模式的最佳组合)", = "选择使用八个图标还是分组 显示配方(或无配方模式的最佳组合)",
["Press this key to toggle the crafting display, allowing you to check descriptions of items/pickups on the floor"] ["Press this key to toggle the crafting display, allowing you to check descriptions of items/pickups on the floor"]
= "按此键切换合成袋的显示,以预览地面上的道具/掉落物描述", = "按此键切换合成袋的显示,以预览地面上的道具/掉落物描述",
+1 -1
View File
@@ -1084,7 +1084,7 @@ local function checkStartOfRunWarnings()
hasShownStartWarning = true hasShownStartWarning = true
-- Bag of Crafting modded items check -- Bag of Crafting modded items check
elseif EID:PlayersHaveCollectible(710) and EID:DetectModdedItems() and EID.Config.DisplayBagOfCrafting ~= "never" and elseif EID:PlayersHaveCollectible(710) and EID:DetectModdedItems() and EID.Config.DisplayBagOfCrafting ~= "never" and
(EID.Config.BagOfCraftingDisplayMode == "Recipe List" or EID.Config.BagOfCraftingDisplayMode == "Preview Only") then (EID.Config.BagOfCraftingDisplayRecipesMode == "Recipe List" or EID.Config.BagOfCraftingDisplayRecipesMode == "Preview Only") then
local demoDescObj = EID:getDescriptionObj(-999, -1, 1) local demoDescObj = EID:getDescriptionObj(-999, -1, 1)
demoDescObj.Name = EID:getDescriptionEntry("AchievementWarningTitle") or "" demoDescObj.Name = EID:getDescriptionEntry("AchievementWarningTitle") or ""
demoDescObj.Description = EID:getDescriptionEntry("ModdedRecipesWarningText") or "" demoDescObj.Description = EID:getDescriptionEntry("ModdedRecipesWarningText") or ""