Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
LocalIdentity committed Jul 29, 2024
2 parents e154ceb + efb6b80 commit 000e9ed
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 6 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# Changelog

## [v2.47.2](https://github.com/PathOfBuildingCommunity/PathOfBuilding/tree/v2.47.2) (2024/07/29)

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

<!-- Release notes generated using configuration in .github/release.yml at dev -->

## What's Changed
### Fixed Calculations
- Fix Block Chance calculation ([LocalIdentity](https://github.com/LocalIdentity))

## [v2.47.1](https://github.com/PathOfBuildingCommunity/PathOfBuilding/tree/v2.47.1) (2024/07/29)

[Full Changelog](https://github.com/PathOfBuildingCommunity/PathOfBuilding/compare/v2.47.0...v2.47.1)
Expand Down
5 changes: 5 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
VERSION[2.47.2][2024/07/29]

--- Fixed Calculations ---
* Fix Block Chance calculation (LocalIdentity)

VERSION[2.47.1][2024/07/29]

--- Fixed Calculations ---
Expand Down
6 changes: 3 additions & 3 deletions manifest.xml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?xml version='1.0' encoding='UTF-8'?>
<PoBVersion>
<Version number="2.47.1" />
<Version number="2.47.2" />
<Source part="default" url="https://raw.githubusercontent.com/PathOfBuildingCommunity/PathOfBuilding/{branch}/" />
<Source part="runtime" platform="win32" url="https://raw.githubusercontent.com/PathOfBuildingCommunity/PathOfBuilding/{branch}/runtime/" />
<Source part="program" url="https://raw.githubusercontent.com/PathOfBuildingCommunity/PathOfBuilding/{branch}/src/" />
<Source part="tree" url="https://raw.githubusercontent.com/PathOfBuildingCommunity/PathOfBuilding/{branch}/src/" />
<File name="changelog.txt" part="default" sha1="cbe4d72d08b52a419d185be2acf083738b368ab5" />
<File name="changelog.txt" part="default" sha1="40dca850a6652a5a7861b0644359369ebb378697" />
<File name="help.txt" part="default" sha1="6840098872cbb19370aacfe47e7b1be4d24e3d52" />
<File name="LICENSE.md" part="default" sha1="c77635aa1ba0a2ffe8eb72f93b3376e3a3d2041a" />
<File name="Assets/ascendants/ascendant.jpeg" part="program" sha1="c9edaa10dad44c5361f873e68fa39a831338e9ec" />
Expand Down Expand Up @@ -77,7 +77,7 @@
<File name="Classes/FolderListControl.lua" part="program" sha1="64706fc226b02939112f90735c5d78ddf99b896f" />
<File name="Classes/GemSelectControl.lua" part="program" sha1="6685f12b12144c97456847ebf34119d643d403ae" />
<File name="Classes/ImportTab.lua" part="program" sha1="461bbfe25b2db787336f7d5665ef3e8aac20ecc8" />
<File name="Classes/Item.lua" part="program" sha1="39d78dfff8aa132e4b6a54ef72cc402e6647be7c" />
<File name="Classes/Item.lua" part="program" sha1="86c08a7b78a95f736cda40ec7d6873678c5ac56c" />
<File name="Classes/ItemDBControl.lua" part="program" sha1="ca571d13f4d0bdd8d9c7e1b511cfbde5cda2d95c" />
<File name="Classes/ItemListControl.lua" part="program" sha1="142517eee62e770ad36b363373d613318124b4a3" />
<File name="Classes/ItemSetListControl.lua" part="program" sha1="1a2c3fc18465348ad58fd1391b9660980fd2d5b9" />
Expand Down
4 changes: 1 addition & 3 deletions src/Classes/Item.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1385,7 +1385,6 @@ function ItemClass:BuildModListForSlotNum(baseList, slotNum)
local energyShieldVariance = (self.base.armour.EnergyShieldBaseMax or 0) - (self.base.armour.EnergyShieldBaseMin or 0)
local armourEnergyShieldBase = calcLocal(modList, "ArmourAndEnergyShield", "BASE", 0)
local wardBase = calcLocal(modList, "Ward", "BASE", 0) + (self.base.armour.WardBaseMin or 0)
local blockBase = calcLocal(modList, "BlockChance", "BASE", 0)
local wardVariance = (self.base.armour.WardBaseMax or 0) - (self.base.armour.WardBaseMin or 0)
local armourInc = calcLocal(modList, "Armour", "INC", 0)
local armourEvasionInc = calcLocal(modList, "ArmourAndEvasion", "INC", 0)
Expand All @@ -1394,7 +1393,6 @@ function ItemClass:BuildModListForSlotNum(baseList, slotNum)
local energyShieldInc = calcLocal(modList, "EnergyShield", "INC", 0)
local wardInc = calcLocal(modList, "Ward", "INC", 0)
local armourEnergyShieldInc = calcLocal(modList, "ArmourAndEnergyShield", "INC", 0)
local blockInc = calcLocal(modList, "BlockChance", "INC", 0)
local defencesInc = calcLocal(modList, "Defences", "INC", 0)
local qualityScalar = self.quality
if calcLocal(modList, "AlternateQualityArmour", "BASE", 0) > 0 then
Expand Down Expand Up @@ -1437,7 +1435,7 @@ function ItemClass:BuildModListForSlotNum(baseList, slotNum)
end

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

0 comments on commit 000e9ed

Please sign in to comment.