Skip to content

Commit 0c996ed

Browse files
committed
Fix some WIP upgrades being randomized into the game, which also made some upgrades completely unobtainable in a run
1 parent 71e17e0 commit 0c996ed

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

Dannyj1-HadesIIRandomizer/boon_randomizer.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,6 @@ function Hades2Randomizer.randomizeBoons()
107107
if traitAmount > 0 then
108108
if data.OffersElementalTrait == nil then
109109
data.OffersElementalTrait = {}
110-
DebugPrint({Text = "Elemental Trait: " .. key .. " -> No Elemental Traits"})
111110
end
112111

113112
local availableElementalTraits = DeepCopyTable(Hades2Randomizer.Data.ElementalTraits)
@@ -127,6 +126,7 @@ function Hades2Randomizer.randomizeBoons()
127126
table.remove(availableElementalTraits, randomIndex)
128127
end
129128
else
129+
DebugPrint({Text = "Elemental Trait: " .. key .. " -> No Elemental Traits"})
130130
data.OffersElementalTrait = nil
131131
end
132132
end

Dannyj1-HadesIIRandomizer/data.lua

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Hades2Randomizer.Data = {
4040
"SatyrRatCatcher_Miniboss", "GoldElemental_MiniBoss"},
4141

4242
IgnoredSets = {"TestEnemies", "AllEliteAttributes", "RangedOnlyEliteAttributes", "ShadeOnlyEliteAttributes",
43-
"EliteAttributesRunBanOptions", "BiomeP"}
43+
"EliteAttributesRunBanOptions", "BiomeP", "ManaUpgrade"}
4444
}
4545

4646
ModUtil.LoadOnce(function()
@@ -79,7 +79,11 @@ ModUtil.LoadOnce(function()
7979
end
8080

8181
-- Load LootTable/Boon data
82-
for _, data in pairs(LootData) do
82+
for key, data in pairs(LootData) do
83+
if Hades2Randomizer.tableContains(Hades2Randomizer.Data.IgnoredSets, key) then
84+
goto continue
85+
end
86+
8387
if data.PriorityUpgrades ~= nil then
8488
for _, upgrade in ipairs(data.PriorityUpgrades) do
8589
if not Hades2Randomizer.tableContains(Hades2Randomizer.Data.PriorityUpgrades, upgrade) then
@@ -119,6 +123,8 @@ ModUtil.LoadOnce(function()
119123
end
120124
end
121125
end
126+
127+
::continue::
122128
end
123129
end)
124130

0 commit comments

Comments
 (0)