Skip to content

Commit 36f640a

Browse files
author
LocalIdentity
committed
Merge branch 'dev'
2 parents ed210c7 + cfd1302 commit 36f640a

File tree

3 files changed

+44
-15
lines changed

3 files changed

+44
-15
lines changed

CHANGELOG.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
# Changelog
22

3+
## [v2.38.4](https://github.com/PathOfBuildingCommunity/PathOfBuilding/tree/v2.38.4) (2023/12/20)
4+
5+
[Full Changelog](https://github.com/PathOfBuildingCommunity/PathOfBuilding/compare/v2.38.3...v2.38.4)
6+
7+
<!-- Release notes generated using configuration in .github/release.yml at dev -->
8+
9+
## What's Changed
10+
11+
### Fixed Crashes
12+
- Fix occasional crash when loading build on Beta branch [\#7120](https://github.com/PathOfBuildingCommunity/PathOfBuilding/pull/7120) ([Nostrademous](https://github.com/Nostrademous))
13+
14+
15+
316
## [v2.38.3](https://github.com/PathOfBuildingCommunity/PathOfBuilding/tree/v2.38.3) (2023/12/19)
417

518
[Full Changelog](https://github.com/PathOfBuildingCommunity/PathOfBuilding/compare/v2.38.2...v2.38.3)
@@ -20,7 +33,6 @@
2033

2134

2235

23-
2436
## [v2.38.2](https://github.com/PathOfBuildingCommunity/PathOfBuilding/tree/v2.38.2) (2023/12/19)
2537

2638
[Full Changelog](https://github.com/PathOfBuildingCommunity/PathOfBuilding/compare/v2.38.1...v2.38.2)

changelog.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
VERSION[2.38.4][2023/12/20]
2+
3+
--- Fixed Crashes ---
4+
* Fix occasional crash when loading build on Beta branch (Nostrademous)
5+
16
VERSION[2.38.3][2023/12/19]
27

38
--- Fixed Crashes ---

src/Modules/Data.lua

Lines changed: 26 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -857,21 +857,33 @@ local function setupGem(gem, gemId)
857857
gem.naturalMaxLevel = gem.naturalMaxLevel or (#gem.grantedEffect.levels > 20 and #gem.grantedEffect.levels - 20) or (gem.grantedEffect.levels[3][1] and 3) or 1
858858
end
859859

860+
local toAddGems = { }
860861
for gemId, gem in pairs(data.gems) do
861-
gem.name = sanitiseText(gem.name)
862-
setupGem(gem, gemId)
863-
local loc, _ = gemId:find('Vaal')
864-
for _, alt in ipairs{"AltX", "AltY"} do
865-
if loc and data.skills[gem.secondaryGrantedEffectId..alt] then
866-
local newGem = copyTable(gem, true)
867-
newGem.name = "Vaal " .. data.skills[gem.secondaryGrantedEffectId..alt].name
868-
newGem.secondaryGrantedEffectId = gem.secondaryGrantedEffectId..alt
869-
newGem.variantId = gem.variantId..alt
870-
--ConPrintf("Adding Gem: " .. newGem.name .. "\t" .. newGem.secondaryGrantedEffectId)
871-
data.gems[gemId..alt] = newGem
872-
setupGem(newGem, gemId..alt)
873-
end
874-
end
862+
gem.name = sanitiseText(gem.name)
863+
setupGem(gem, gemId)
864+
local loc, _ = gemId:find('Vaal')
865+
for _, alt in ipairs{"AltX", "AltY"} do
866+
if loc and data.skills[gem.secondaryGrantedEffectId..alt] then
867+
local newGem = { name, gameId, variantId, grantedEffectId, secondaryGrantedEffectId, vaalGem, tags = {}, tagString, reqStr, reqDex, reqInt, naturalMaxLevel }
868+
newGem.name = "Vaal " .. data.skills[gem.secondaryGrantedEffectId..alt].name
869+
newGem.gameId = gem.gameId
870+
newGem.variantId = gem.variantId..alt
871+
newGem.grantedEffectId = gem.grantedEffectId
872+
newGem.secondaryGrantedEffectId = gem.secondaryGrantedEffectId..alt
873+
newGem.vaalGem = gem.vaalGem
874+
newGem.tags = copyTable(gem.tags)
875+
newGem.tagString = gem.tagString
876+
newGem.reqStr = gem.reqStr
877+
newGem.reqDex = gem.reqDex
878+
newGem.reqInt = gem.reqInt
879+
newGem.naturalMaxLevel = gem.naturalMaxLevel
880+
setupGem(newGem, gemId..alt)
881+
toAddGems[gemId..alt] = newGem
882+
end
883+
end
884+
end
885+
for id, gem in pairs(toAddGems) do
886+
data.gems[id] = gem
875887
end
876888

877889
-- Load minions

0 commit comments

Comments
 (0)