Skip to content

Commit 000e9ed

Browse files
author
LocalIdentity
committed
Merge branch 'dev'
2 parents e154ceb + efb6b80 commit 000e9ed

File tree

4 files changed

+19
-6
lines changed

4 files changed

+19
-6
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# Changelog
22

3+
## [v2.47.2](https://github.com/PathOfBuildingCommunity/PathOfBuilding/tree/v2.47.2) (2024/07/29)
4+
5+
[Full Changelog](https://github.com/PathOfBuildingCommunity/PathOfBuilding/compare/v2.47.1...v2.47.2)
6+
7+
<!-- Release notes generated using configuration in .github/release.yml at dev -->
8+
9+
## What's Changed
10+
### Fixed Calculations
11+
- Fix Block Chance calculation ([LocalIdentity](https://github.com/LocalIdentity))
12+
313
## [v2.47.1](https://github.com/PathOfBuildingCommunity/PathOfBuilding/tree/v2.47.1) (2024/07/29)
414

515
[Full Changelog](https://github.com/PathOfBuildingCommunity/PathOfBuilding/compare/v2.47.0...v2.47.1)

changelog.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
VERSION[2.47.2][2024/07/29]
2+
3+
--- Fixed Calculations ---
4+
* Fix Block Chance calculation (LocalIdentity)
5+
16
VERSION[2.47.1][2024/07/29]
27

38
--- Fixed Calculations ---

manifest.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<?xml version='1.0' encoding='UTF-8'?>
22
<PoBVersion>
3-
<Version number="2.47.1" />
3+
<Version number="2.47.2" />
44
<Source part="default" url="https://raw.githubusercontent.com/PathOfBuildingCommunity/PathOfBuilding/{branch}/" />
55
<Source part="runtime" platform="win32" url="https://raw.githubusercontent.com/PathOfBuildingCommunity/PathOfBuilding/{branch}/runtime/" />
66
<Source part="program" url="https://raw.githubusercontent.com/PathOfBuildingCommunity/PathOfBuilding/{branch}/src/" />
77
<Source part="tree" url="https://raw.githubusercontent.com/PathOfBuildingCommunity/PathOfBuilding/{branch}/src/" />
8-
<File name="changelog.txt" part="default" sha1="cbe4d72d08b52a419d185be2acf083738b368ab5" />
8+
<File name="changelog.txt" part="default" sha1="40dca850a6652a5a7861b0644359369ebb378697" />
99
<File name="help.txt" part="default" sha1="6840098872cbb19370aacfe47e7b1be4d24e3d52" />
1010
<File name="LICENSE.md" part="default" sha1="c77635aa1ba0a2ffe8eb72f93b3376e3a3d2041a" />
1111
<File name="Assets/ascendants/ascendant.jpeg" part="program" sha1="c9edaa10dad44c5361f873e68fa39a831338e9ec" />
@@ -77,7 +77,7 @@
7777
<File name="Classes/FolderListControl.lua" part="program" sha1="64706fc226b02939112f90735c5d78ddf99b896f" />
7878
<File name="Classes/GemSelectControl.lua" part="program" sha1="6685f12b12144c97456847ebf34119d643d403ae" />
7979
<File name="Classes/ImportTab.lua" part="program" sha1="461bbfe25b2db787336f7d5665ef3e8aac20ecc8" />
80-
<File name="Classes/Item.lua" part="program" sha1="39d78dfff8aa132e4b6a54ef72cc402e6647be7c" />
80+
<File name="Classes/Item.lua" part="program" sha1="86c08a7b78a95f736cda40ec7d6873678c5ac56c" />
8181
<File name="Classes/ItemDBControl.lua" part="program" sha1="ca571d13f4d0bdd8d9c7e1b511cfbde5cda2d95c" />
8282
<File name="Classes/ItemListControl.lua" part="program" sha1="142517eee62e770ad36b363373d613318124b4a3" />
8383
<File name="Classes/ItemSetListControl.lua" part="program" sha1="1a2c3fc18465348ad58fd1391b9660980fd2d5b9" />

src/Classes/Item.lua

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1385,7 +1385,6 @@ function ItemClass:BuildModListForSlotNum(baseList, slotNum)
13851385
local energyShieldVariance = (self.base.armour.EnergyShieldBaseMax or 0) - (self.base.armour.EnergyShieldBaseMin or 0)
13861386
local armourEnergyShieldBase = calcLocal(modList, "ArmourAndEnergyShield", "BASE", 0)
13871387
local wardBase = calcLocal(modList, "Ward", "BASE", 0) + (self.base.armour.WardBaseMin or 0)
1388-
local blockBase = calcLocal(modList, "BlockChance", "BASE", 0)
13891388
local wardVariance = (self.base.armour.WardBaseMax or 0) - (self.base.armour.WardBaseMin or 0)
13901389
local armourInc = calcLocal(modList, "Armour", "INC", 0)
13911390
local armourEvasionInc = calcLocal(modList, "ArmourAndEvasion", "INC", 0)
@@ -1394,7 +1393,6 @@ function ItemClass:BuildModListForSlotNum(baseList, slotNum)
13941393
local energyShieldInc = calcLocal(modList, "EnergyShield", "INC", 0)
13951394
local wardInc = calcLocal(modList, "Ward", "INC", 0)
13961395
local armourEnergyShieldInc = calcLocal(modList, "ArmourAndEnergyShield", "INC", 0)
1397-
local blockInc = calcLocal(modList, "BlockChance", "INC", 0)
13981396
local defencesInc = calcLocal(modList, "Defences", "INC", 0)
13991397
local qualityScalar = self.quality
14001398
if calcLocal(modList, "AlternateQualityArmour", "BASE", 0) > 0 then
@@ -1437,7 +1435,7 @@ function ItemClass:BuildModListForSlotNum(baseList, slotNum)
14371435
end
14381436

14391437
if self.base.armour.BlockChance then
1440-
armourData.BlockChance = m_floor((self.base.armour.BlockChance + blockBase) * (1 + blockInc / 100))
1438+
armourData.BlockChance = m_floor((self.base.armour.BlockChance + calcLocal(modList, "BlockChance", "BASE", 0)) * (1 + calcLocal(modList, "BlockChance", "INC", 0) / 100))
14411439
end
14421440
if self.base.armour.MovementPenalty then
14431441
modList:NewMod("MovementSpeed", "INC", -self.base.armour.MovementPenalty, self.modSource, { type = "Condition", var = "IgnoreMovementPenalties", neg = true })

0 commit comments

Comments
 (0)